VOGONS


First post, by Great Hierophant

User metadata
Rank l33t
Rank
l33t

I am trying to compile the latest SVN of DOSBox, and after following the instructions in the wiki, http://www.dosbox.com/wiki/BuildingDOSBox I have hit a brick wall.

1. I downloaded the latest DOSBox SVN source from here : http://source.dosbox.com/dosboxsvn.tgz

2. I downloaded SDL.DLL from here : http://www.libsdl.org/download-1.2.php Since I am using Windows 7 64-bit, I downloaded this : http://www.libsdl.org/release/SDL-1.2.15-win32-x64.zip

I grabbed SDL_net.DLL from here : http://www.libsdl.org/projects/SDL_net/

Again I selected the x64 Windows build http://www.libsdl.org/projects/SDL_net/releas … 8-win32-x64.zip

3. I downloaded the latest release of MinGW from here : http://sourceforge.net/projects/mingw/files/ using this link
http://sourceforge.net/projects/mingw/files/l … ad?source=files

This also includes MSYS and when I installed it I updated all the libraries.

4. Skipped as I downloaded the pre-built binaries in step 2.

5. I extracted the DOSBox source and moved it to \MinGW\msys\1.0\home\dosbox

I started the MinGW Shell and entered the following commands :

cd ..
cd dosbox
./autogen.sh
./configure

the checking stops at "checking for SDL - version >= 1.2.0... no"
I get the error message "The sdl-config script installed by SDL could not be found"

The guide states "After compiling you'll need to adjust the PATH variable to point at the directory where the freshly built SDL-Library can be found." I thought I did that when I added the directory I put the SDL and SDL_net DLLs to the Windows 7 Environment Variable PATH. When I type set in the command line prompt of MSYS, I see the PATH variable and it includes that directory, so what am I doing wrong?

Second, where do the .diff files go when compiling with custom patches?

http://nerdlypleasures.blogspot.com/ - Nerdly Pleasures - My Retro Gaming, Computing & Tech Blog

Reply 1 of 11, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

The (environment) path of mingw/msys, not your windows environment.

Water flows down the stream
How to ask questions the smart way!

Reply 3 of 11, by NY00123

User metadata
Rank Member
Rank
Member

Hmm, just one minor thing: Try the 32-bit SDL files (e.g. DLLs). These are required for a proper setup of DOSBox as a 32-bit executable. I have some feeling that DOSBox is currently not tested as a 64-bit executable for Windows.

Reply 4 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

you need the sources of SDL too, not just the binary. I'm not entirely sure why the guide does say the dll is enough - this is wrong as far as I can tell from my experiences with mingw/msys. The development libraries for mingw at http://www.libsdl.org/download-1.2.php might be enough though.

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

Reply 5 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Second, where do the .diff files go when compiling with custom patches?

it's not important where the diffs are located, you just need to know where they are so you can point the patch command at the diffs (diffs/patch files are just text files that tell the program patch which files to change or to make and what changes it needs to make to the original files).

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

Reply 6 of 11, by Great Hierophant

User metadata
Rank l33t
Rank
l33t

Okay, I have downloaded and extracted the Win32 development libraries for MinGW, 32-bit. Now where do I put them and how do I tell MinGW and MSYS that they are available for ./configure?

http://nerdlypleasures.blogspot.com/ - Nerdly Pleasures - My Retro Gaming, Computing & Tech Blog

Reply 7 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

put them in the msys folder, I think or the mingw if you have them seperate (I found them to be okay to be in one folder). Once you extracted the SDL devel stuff you will notice that it has the same folder structure as msys (/bin, /include, /lib...) so you know where to put the stuff 😀

This might help
http://legesmotus.endrift.com/index.php/Building_with_MinGW

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

Reply 8 of 11, by Great Hierophant

User metadata
Rank l33t
Rank
l33t

I was having no luck and I was extremely frustrated, so I tried and I did it successfully using Visual C++ 2008 Express! The wiki here is excellent :

http://www.dosbox.com/wiki/Building_DOSBox_wi … _C_2008_Express

I followed the instructions exactly and it worked. However I will have to point out three things :

1. You can find the appropriate download here :
http://www.microsoft.com/visualstudio/en-us/p … ditions/express

2. The first time I tried building the solution, I failed. Thanks to NY00123 I figured out why, SDL 1.2.15 has libs for x64 and x86, and once I indicated the x86 subdirectory in setting up the environment, it finished building successfully.

3. The resulting DOSBOX.EXE is to be found in dosbox\visualc_net subdirectory.

Now, I have built a clean SVN r3779 without the screenshot, Modem or IPX functionality and debug features.

Now to apply a patch...

http://nerdlypleasures.blogspot.com/ - Nerdly Pleasures - My Retro Gaming, Computing & Tech Blog

Reply 9 of 11, by Great Hierophant

User metadata
Rank l33t
Rank
l33t

Using the patch program in MinGW, I successfully patched the DOSBox SVN with the latest CGA composite color patch and it worked. The attached file does not need additional DLLs. It does seem like one may have better success compiling and patching when additional libraries are used with MinGW/MSYS.

http://nerdlypleasures.blogspot.com/ - Nerdly Pleasures - My Retro Gaming, Computing & Tech Blog

Reply 10 of 11, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Good that you finally managed to compile it 😉
But yes, a working msys/mingw environment is often much more useful if you want to compile more software that makes use of autotools (autogen, configure...)
At some point I will have to try and set this environment up myself and fix the wiki. Unfortunately when I was still using windows it always was time consuming and frustrating ;as you found out yourself 😉)

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

Reply 11 of 11, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie
Dominus wrote:

you need the sources of SDL too, not just the binary. I'm not entirely sure why the guide does say the dll is enough - this is wrong as far as I can tell from my experiences with mingw/msys. The development libraries for mingw at http://www.libsdl.org/download-1.2.php might be enough though.

You are right, you need the header files...not just a binary dll.