-
2011-07-03
- labels: --> Code
- milestone: --> SVN
two issues
1) darwin has "-framework OpenGL" instead of -lGL and -lGLU
to fix, run configure with CXXFLAGS="-framework OpenGL"
2) another thing - default Mac OS X 10.6 gcc c++ compiler (that came with xcode) does not work (something to do with RTTI thing that only available in the newer version), i've installed 4.6 from ports that works (assuming you have ports installed):
sudo port -v install gcc46
greets
s
-------------------------------
for example my configure command:
../configure --enable-debug --prefix=$HOME/games CC=/opt/local/bin/x86_64-apple-darwin10-gcc-mp-4.6 CXX=/opt/local/bin/x86_64-apple-darwin10-g++-mp-4.6 CXXFLAGS="-g -framework OpenGL" CFLAGS=-g