Compiling Bochs on Mac os x Snow Leopard

后端 未结 8 1418
耶瑟儿~
耶瑟儿~ 2021-02-05 23:42

Was someone able to compile the Bochs simulator under Snow Leopard. Leopard worked fine for me but under Snow Leopard I get alot of problems related to the Carbon library...

8条回答
  •  终归单人心
    2021-02-06 00:06

    In addition to James said (adding the -m32 switch), you may need to add "-arch i386" too.

    Here's a modified conf file that I used to build:

    set echo
    CFLAGS="-arch i386 -m32 -pipe -O3 -I/sw/include -fomit-frame-pointer -finline-functions -falign-loops=16 -falign-jumps=16 -falign-functions=16 -falign-labels=16 -falign-loops-max-skip=15 -falign-jumps-max-skip=15 -fprefetch-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-sse=2 \
                --enable-pci \
                --enable-acpi \
                --enable-debugger \
                --enable-clgd54xx \
                --enable-usb \
         --enable-plugins \
         ${CONFIGURE_ARGS}
    

提交回复
热议问题