manually building Dosbox CVS in 32-bit
Dominik Reichardt
domiman at gmail.com
Fri Oct 9 15:16:29 PDT 2009
Hi all,
I'm wondering how to build Dosbox CVS in 32-bit. If I edit the port
file of dosbox by adding
if {$build_arch == "x86_64"} {
configure.build_arch i386
} elseif {$build_arch == "ppc64"} {
configure.build_arch ppc
}
if {[variant_isset universal] && [string match *64* $universal_archs]} {
pre-fetch {
return -code error "$name $version cannot be built for 64-bit
architectures"
}
}
and commenting out
#platform darwin {
# configure.args-append --build=${build_arch}-apple-darwin${os.major}
#}
stopping the port install process in configuring and then overwriting
the 0.73 release source with the CVS and then starting port install
dosbox again, I am able to build a 32-bit Dosbox CVS that is stable
and doesn't crash when switching to dynamic core (like the 64-bit
version properly built by MacPorts does).
So that is working by tricking MacPort but I'm wondering how to do
that manually.
I've tried with configuring dosbox with
./configure -build=i386-apple-darwin10.0.0 --target=i386-apple-
darwin10 --prefix=/opt/local --disable-sdltest --disable-alsatest
but that didn't work and has the same compile errors that the MacPorts
port had before the last patch. So I'm obviously missing something
that MacPorts does right when I use the above trick to build Dosbox in
32-bit.
What is it? Can anyone help me?
Dominik
P.S.: Dosbox CVS still needs the midi_coreaudio.h patch that MacPorts
does and in src/hardware/serialport/libserial.cpp you need to exchange
#include <malloc.h> with #include <stdlib.h> (line 260) - just as an
help to anyone trying their hand on the cvs as well. I've reported
both issues to the Dosbox developers.
More information about the macports-users
mailing list