To Compile on Mac OSX
Posted: Wed Dec 26, 2012 8:51 pm
I've done three things so far. I've used macports to install ffmpeg and py26-gtk. I don't have Ogre3D installed on my computer as of yet, (I could, if need be). I opened up the CMakeLists.txt file that cmake uses and I commented out the piece that searches for Ogre. When I run cmake, the Makefile is generated without a problem. Then I run make; this is where things start to get interesting...
It compiles up to 8% and crashes with the error below:
That is not a crash from a Ogre3D meshing issue, I'm fairly certain. What in the sam-hoots is happening here?
Help, please?
------------------------------------
[ 8%] Built target OPcollide
[ 8%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/ai/aggressive.o
In file included from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/gfx/vec.h:18,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/order.h:26,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/comm_ai.h:4,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/fire.h:3,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.h:3,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:2:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘float VSSwapHostFloatToLittle(float)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:74: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:74: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘unsigned int VSSwapHostIntToLittle(unsigned int)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:85: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:85: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘short unsigned int VSSwapHostShortToLittle(short unsigned int)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:90: warning: ‘NXSwapHostShortToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:331)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:90: warning: ‘NXSwapHostShortToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:331)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘double DONTUSE__NXSwapBigDoubleToLittleEndian(double)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:102: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:102: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:103: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:103: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
In file included from /opt/local/include/zconf.h:401,
from /opt/local/include/zlib.h:34,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/pk3.h:43,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/vsfilesystem.h:13,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/easydom.h:35,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/configxml.h:32,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/config_xml.h:33,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:8:
/usr/include/sys/types.h: At global scope:
/usr/include/sys/types.h:126: error: declaration does not declare anything
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp: In member function ‘bool Orders::AggressiveAI::ProcessCurrentFgDirective(Flightgroup*)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:760: warning: unused variable ‘callme’
make[2]: *** [CMakeFiles/engine_com.dir/src/cmd/ai/aggressive.o] Error 1
make[1]: *** [CMakeFiles/engine_com.dir/all] Error 2
make: *** [all] Error 2
It compiles up to 8% and crashes with the error below:
That is not a crash from a Ogre3D meshing issue, I'm fairly certain. What in the sam-hoots is happening here?
Help, please?
------------------------------------
[ 8%] Built target OPcollide
[ 8%] Building CXX object CMakeFiles/engine_com.dir/src/cmd/ai/aggressive.o
In file included from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/gfx/vec.h:18,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/order.h:26,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/comm_ai.h:4,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/fire.h:3,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.h:3,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:2:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘float VSSwapHostFloatToLittle(float)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:74: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:74: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘unsigned int VSSwapHostIntToLittle(unsigned int)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:85: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:85: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘short unsigned int VSSwapHostShortToLittle(short unsigned int)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:90: warning: ‘NXSwapHostShortToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:331)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:90: warning: ‘NXSwapHostShortToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:331)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h: In function ‘double DONTUSE__NXSwapBigDoubleToLittleEndian(double)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:102: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:102: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:103: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/endianness.h:103: warning: ‘NXSwapHostLongToLittle’ is deprecated (declared at /usr/include/architecture/byte_order.h:349)
In file included from /opt/local/include/zconf.h:401,
from /opt/local/include/zlib.h:34,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/pk3.h:43,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/vsfilesystem.h:13,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/easydom.h:35,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/configxml.h:32,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/config_xml.h:33,
from /Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:8:
/usr/include/sys/types.h: At global scope:
/usr/include/sys/types.h:126: error: declaration does not declare anything
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp: In member function ‘bool Orders::AggressiveAI::ProcessCurrentFgDirective(Flightgroup*)’:
/Users/jonn/Downloads/vegastrike-src-0.5.1.r1/src/cmd/ai/aggressive.cpp:760: warning: unused variable ‘callme’
make[2]: *** [CMakeFiles/engine_com.dir/src/cmd/ai/aggressive.o] Error 1
make[1]: *** [CMakeFiles/engine_com.dir/all] Error 2
make: *** [all] Error 2