1.修改.conf.macosx:
#!/bin/sh
# this sets up the compile for MacOS X
## To support plugins on macosx, you must have "dlcompat" installed. You can# get dlcompat by installing the fink package "dlcompat-devel". On the SF
# compile farm, dlcompat is in /sw/include and /sw/lib, so we have added
# those paths to the environment variables.
set echo
CFLAGS="-arch i386 -m32 -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -fal
ign-jumps=16 -falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fpre
fetch-loop-arrays $CFLAGS"
CPATH="/sw/include"
CPPFLAGS=""
CXXFLAGS="$CFLAGS"
LDFLAGS="-arch i386 -m32 -L/sw/lib"
CXX="g++ -arch i386 -m32"
export CFLAGS
export CPATH
export CPPFLAGS
export CXXFLAGS
export LDFLAGS
export CXX
./configure --enable-sb16 /
--enable-ne2000 /
--enable-all-optimizations /
--enable-cpu-level=6 /
--enable-x86-64 /
--enable-pci /
--enable-acpi /
--enable-clgd54xx /
--enable-usb /
--enable-plugins /
--enable-debugger /
--enable-disasm /
${CONFIGURE_ARGS}
2.生成makefile:
sh .conf.macosx
3.编译:
make
4.安装:
sudo make install
至此,安装成功.
5.如何运行peter-bochs:
java -jar peter-bochs-debugger.jar -osdebug ./bochs.app/Contents/MacOS/bochs -f ./.bochsrc