VOGONS


Compiling DOSBox

Topic actions

First post, by Miki Maus

User metadata
Rank Member
Rank
Member

What environment is used to compile official DOSBox releases?
I ask because I would like to setup similar if not the same environment to compile my own DOSBox from CVS, test out patches, make hacks and such.

Thank you in advance. 😁

Reply 1 of 8, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

mingw crosscompile from linux, maybe you even find more information
about the actual settings on the forum

Reply 2 of 8, by Miki Maus

User metadata
Rank Member
Rank
Member

You mean this?

wd wrote:
Mine: install mingw (MinGW-3.1.0-1.exe) install msys (MSYS-1.0.10.exe), point it to the mingw directory if asked install msysDTK […]
Show full quote

Mine:
install mingw (MinGW-3.1.0-1.exe)
install msys (MSYS-1.0.10.exe), point it to the mingw directory if asked
install msysDTK (msysDTK-1.0.1.exe)

download sdl sources (SDL-1.2.11.zip) and extract somewhere
goto sdl directory:
./configure
make
make install

download dosbox sources (clean cvs here)
goto dosbox directory:
./autogen.sh
./configure --prefix=/what/ever/you/like
make
make install

Works just smooth. Simply works, ever did.

Does it also provide ddraw output in DOSBox?

Reply 3 of 8, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Does it also provide ddraw output in DOSBox?

kind of 😀
I think for ddraw I needed to change the SDL sources, so ddraw comes before windib or so, can't remember correcly right now.

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 4 of 8, by ripsaw8080

User metadata
Rank DOSBox Author
Rank
DOSBox Author

For DDraw output, I only needed to put the ddraw.h header file from the DirectX SDK in an include folder where MinGW can find it. When you run the ./configure, you should see messages like "checking for ddraw.h... yes" if it can be found.

Reply 5 of 8, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

As dominus says when compiling sdl you should modify the sources so the
ordering of windib and ddraw is changed, or use the sdl.dll from the 0.72 release.

Reply 6 of 8, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author
Miki Maus wrote:

You mean this?

wd wrote:
Mine: install mingw (MinGW-3.1.0-1.exe) install msys (MSYS-1.0.10.exe), point it to the mingw directory if asked install msysDTK […]
Show full quote

Mine:
install mingw (MinGW-3.1.0-1.exe)
install msys (MSYS-1.0.10.exe), point it to the mingw directory if asked
install msysDTK (msysDTK-1.0.1.exe)

download sdl sources (SDL-1.2.11.zip) and extract somewhere
goto sdl directory:
./configure
make
make install

download dosbox sources (clean cvs here)
goto dosbox directory:
./autogen.sh
./configure --prefix=/what/ever/you/like
make
make install

Works just smooth. Simply works, ever did.

Does it also provide ddraw output in DOSBox?

No, wd meant that a linux pc compiles the windows executable using cross-compilation.

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

Reply 7 of 8, by Miki Maus

User metadata
Rank Member
Rank
Member

I understood that, I was referring to his remark about more information about the actual settings.

Reply 8 of 8, by wd

User metadata
Rank DOSBox Author
Rank
DOSBox Author

I was more thinking about the actual compile flags that Qbix uses for the releases,
think he posted them somewhere.

Anyways the files you posted seem to make up a good start (plain mingw
installation mostly) so it should get you an executable hopefully 😉