Hi Dirk,

thanks for the answer.


Yep, they run. But here I just found out a curious thing: If I
compile the tutorials with the provided makefile in the terminal the
05Geometry example (which basicly uses the same functions I am having
trouble with) is running. If I create a project of the 05Geometry.cpp
in xCode it compiles, but crashes with exactly the same NullFC
problem. So I was thinking that maybe I am missing some compile/link
options or a #define? Because in the last case (05Geometry under
xCode) I also had to define OSG_WITH_GLUT to make it at least compile.

Compile is different from link is different from run. ;) Can you compare the actual options passed to the compiler from the Makefile to the ones
passed by xCode? It sounds like you haven't set up some flags that are
needed.

I checked that. xCode is passing all the options that are needed as far as I can see plus a lot of things I don't know where they come from, but if xCode created it I believe it needs it. Unfortunateley I don't see anything missing in the xCode options that are included in the makefile based attempt:

This is all I need to do in the terminal, to get 05Geometry build and running:

c++ -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_PNG -DOSG_WITH_GIF -I/ Users/mschwier/Projects/OpenSG/Builds/powerpc-apple-darwin-g++/ include main.cpp -L/Users/mschwier/Projects/OpenSG/Builds/powerpc- apple-darwin-g++/lib/dbg -lOSGWindowGLUT -lOSGSystem -lOSGBase - framework Cocoa -framework GLUT -framework OpenGL -o main


this is what xCode is doing and it compiles and links, but crashes when running (I know it's a lot but maybe somone with more knowledge than me about these options sees something :-/):

Checking Dependencies
CompileC build/OSGTests.build/Debug/OSGTests.build/Objects-normal/ppc/ main.o /Users/mschwier/Projects/OSGTests/main.cpp normal ppc c++ com.apple.compilers.gcc.4_0
    cd /Users/mschwier/Projects/OSGTests
/usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal- strings -fasm-blocks -g -O0 -Wreturn-type -Wunused-variable -fmessage- length=0 -mtune=G5 -fvisibility=hidden -fvisibility-inlines-hidden - mfix-and-continue -mmacosx-version-min=10.4 -I/Users/mschwier/ Projects/OSGTests/build/OSGTests.build/Debug/OSGTests.build/ OSGTests.hmap -F/Users/mschwier/Projects/OSGTests/build/Debug -F/ Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -F/Developer/ SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -I/Users/mschwier/ Projects/OSGTests/build/Debug/include -I/Users/mschwier/Projects/ OpenSG/Builds/powerpc-apple-darwin-g++/include -I/Users/mschwier/ Projects/OSGTests/build/OSGTests.build/Debug/OSGTests.build/ DerivedSources -DOSG_WITH_GLUT -DOSG_WITH_TIF -DOSG_WITH_PNG - DOSG_WITH_GIF -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/ mschwier/Projects/OSGTests/main.cpp -o /Users/mschwier/Projects/ OSGTests/build/OSGTests.build/Debug/OSGTests.build/Objects-normal/ppc/ main.o

Ld /Users/mschwier/Projects/OSGTests/build/Debug/OSGTests normal ppc
    cd /Users/mschwier/Projects/OSGTests
/usr/bin/g++-4.0 -o /Users/mschwier/Projects/OSGTests/build/ Debug/OSGTests -L/Users/mschwier/Projects/OSGTests/build/Debug -L/ Users/mschwier/Projects/OpenSG/Builds/powerpc-apple-darwin-g++/lib/ dbg -F/Users/mschwier/Projects/OSGTests/build/Debug -F/Developer/SDKs/ MacOSX10.4u.sdk/System/Library/Frameworks -F/Developer/SDKs/ MacOSX10.4u.sdk/System/Library/Frameworks -filelist /Users/mschwier/ Projects/OSGTests/build/OSGTests.build/Debug/OSGTests.build/Objects- normal/ppc/OSGTests.LinkFileList -lOSGBase -lOSGSystem - lOSGWindowGLUT -framework GLUT -framework OpenGL -framework Cocoa - arch ppc -Wl,-Y,1455 -mmacosx-version-min=10.4 -isysroot /Developer/ SDKs/MacOSX10.4u.sdk /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/ MacOSX10.4u.sdk/sw/lib/libtiff.3.dylib referenced from: /Users/ mschwier/Projects/OSGTests/build/Debug/libOSGSystem.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) /usr/bin/ld: warning can't open dynamic library: /Developer/SDKs/ MacOSX10.4u.sdk/sw/lib/libpng.3.dylib referenced from: /Users/ mschwier/Projects/OSGTests/build/Debug/libOSGSystem.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)


If nothing works out I am about to compile it via the command line and use xCode only to write my code ... *sigh*

To all that helped me until here a big thanks!

Michael
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to