VOGONS


Compilation help

Topic actions

First post, by TommyGun

User metadata
Rank Newbie
Rank
Newbie

I'm on Mac OS X and I managed to compile DOSBox 0.74 from sources but I only get it built in x86_64 arch. As you know on Mac platform there is still a transition between arch types and for extra support apps are Universal Binary or fat binaries of any kind.

Can someone help me to configure the compilation to get it compiled for x86_64, i386 & ppc? If tried a lot of tweaks and flags but the result is always the same. Thanks in advance! 😉

Reply 1 of 1, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Search the forum, I wrote how to compile it for 32bit. This can be altered to compile ppc.
You need a prefix with ppc though (all the libs needed by dosbox in ppc).
The cleanest way to do this is to build all libs for every arch in a different prefix and use that when you build dosbox in that arch and after you built all arches use lipo to make a threeway binary. This is what I do for building universal snapshot builts of Exult.

One remark though, 0.74 is broken in 64bit on OS X (dynamic core crashes - test by "core dynamic" in dosbox).
I think this is fixed in SVN.

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