VOGONS


First post, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

http://www.dosbox.com/wiki/BuildingDOSBox

Should I start ./autogen.sh inside msys?
Thanks
Jack

Reply 3 of 17, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
lucky7456969 wrote:

Oh yeah, how can msys know about which directories I store various libraries in?

According to the instruction link, MSYS-Installer will ask for the installation directory of MinGW.
After installation, type "export" in your console to see which directory MSYS refers to.

Reply 4 of 17, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

It's referring to C:\mingw\msys\1.0\bin;

I start msys on the command prompt, my system is win7 x64, the path has got 32-bit mingw at the very front.
the msys is pointing to it by checking with mount

checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for GCC -fvisibility=hidden option... yes
checking for sdl-config... no
checking for sdl2-config... no
checking for SDL - version >= 1.2.0... no
*** The sdl-config script installed by SDL could not be found
*** If SDL was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the SDL_CONFIG environment variable to the
*** full path to sdl-config.
configure: error: *** SDL version 1.2.0 not found!

I've set a SDL_CONFIG variable outside of msys (win7 command prompt) and it points to the sdl-config file on my hard drive
I separately put the sdl (mingw) file in another folder.
Thanks
Jack

Reply 7 of 17, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

Why does the configure program stop working but actually I have sdl-mingw win32 development version 1.2.15?
It's obviously above 1.2?
I have set the path for the sdl-config file correctly
http://www.libsdl.org/download-1.2.php

Reply 8 of 17, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie
g++ -DHAVE_CONFIG_H -I. -I../..  -I../../include -I/usr/local/include/SDL -D_GNU
_SOURCE=1 -Dmain=SDL_main -g -O2 -I/c/gtk+-bundle_2.16.6-20100208_win64/bin/..
/include/freetype2 -I/c/gtk+-bundle_2.16.6-20100208_win64/bin/../include -MT dos
_files.o -MD -MP -MF .deps/dos_files.Tpo -c -o dos_files.o dos_files.cpp
dos_files.cpp: In member function 'virtual void DOS_File::LoadState(std::istream
&)':
dos_files.cpp:1382:57: error: 'alloca' was not declared in this scope
dos_files.cpp: In function 'void POD_Save_DOS_Files(std::ostream&)':
dos_files.cpp:1460:45: error: 'alloca' was not declared in this scope
dos_files.cpp: In function 'void POD_Load_DOS_Files(std::istream&)':
dos_files.cpp:1533:45: error: 'alloca' was not declared in this scope
make[3]: *** [dos_files.o] Error 1
make[3]: Leaving directory `/e/ykhwong/src/dos'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/e/ykhwong/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/e/ykhwong'
make: *** [all] Error 2

Jacky@Jacky-PC /e/ykhwong

I've reinstalled everything, then installed SDL, then set the variable for the SDL libs, go to msys, then
typed ./autogen.sh followed by ./configure followed by make, I am getting the above errors

Reply 9 of 17, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
lucky7456969 wrote:
[…]
Show full quote
dos_files.cpp:1382:57: error: 'alloca' was not declared in this scope

There must be the following 'define' somewhere in cross.h

#define alloca _alloca

You may also manually replace alloca with _alloca in dos_files.cpp.

Reply 11 of 17, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
lucky7456969 wrote:

No neither alloca or _alloca was defined.

I confirm that alloca is defined in cross.h. You obtained 20130725 source uploaded on my website?

Downloading clean, vanilla one is recommended because its binary is more stable than svn-daum and it requires very few libraries.
With the clean svn build source, you may easily follow this wiki link: http://www.dosbox.com/wiki/BuildingDOSBox

lucky7456969 wrote:

I just want to know exactly what steps you are taking to build your dosbox?

I am not using MinGW/MSYS which includes a port of the gnu compiler collection and I have no step-by-step instruction right now.
I will summarize what I am doing on Linux that also contains gcc.
My build requires sdl, physfs, zlib, libpng, fluidsynth, libflac, libogg, libvorbis, libpcap, freetype, sdl_net, sdl_sound, and libtbb. Install them in this order.
Get the latest mercurial of sdl_sound which must be copmiled after installing libflac, libogg, and libvorbis. (libogg is also required by libvorbis)
After setting up all of the above dependencies, you can finally build my dosbox without problem. This applies both to gcc and visual c++.

Before building svn-daum dosbox, type these two lines:

export LIBS='-ltbb -lFLAC'
export CXX='/usr/bin/g++ -std=c++11'

I didn't add them to configugre.ac yet AFAIK.

Reply 14 of 17, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie
lucky7456969 wrote:
What is libtbb used for? To my understanding, it is a debian .deb file. Or there is another libtbb existing? Do I need it? Thank […]
Show full quote

What is libtbb used for? To my understanding, it is a debian .deb file.
Or there is another libtbb existing?
Do I need it?
Thanks
Jack

The libtbb is used for speeding up processing xBRZ scaler on modern multi-core CPUs.
http://threadingbuildingblocks.org/

Reply 16 of 17, by lucky7456969

User metadata
Rank Oldbie
Rank
Oldbie

When building libFLAC
Error 89 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6 libFLAC_static

I am getting an error, did you ever encounter this before?

When building sdl sound
BTW, do I need SMPEG, mpglib?

Error 1 error C1083: Cannot open source file: '..\decoders\smpeg.c': No such file or directory E:\Jacky\Downloads\dosbox\mercurial\SDL_sound\VisualC\c1 sdl_sound_dll
Error 2 error C1083: Cannot open include file: 'vorbis/codec.h': No such file or directory e:\jacky\downloads\dosbox\mercurial\sdl_sound\decoders\ogg.c 51 1 sdl_sound_dll
Error 3 error C1083: Cannot open source file: '..\decoders\mpglib.c': No such file or directory E:\Jacky\Downloads\dosbox\mercurial\SDL_sound\VisualC\c1 sdl_sound_dll

Thanks
Jack

Reply 17 of 17, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You don't need SDL_sound. It's good for cue files with mp3 or ogg files, I think. If you think you need it grab a precompiled one.
Or build everything needed which you obviously haven't (ogg/vorbis)

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper