Since you have your command line printed (in your original mail), can you copy that line and build as XCode would? If so, you could add -E to the command line, and get the preprocessed code.
andy ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Skinner Sent: Wednesday, October 03, 2007 10:58 AM To: OpenSceneGraph Users Subject: Re: [osg-users] COMPILATION ERROR : win32 The makefiles give a rule to create it. I have no idea how (or whether) XCode can. For me, I can build it and look at it with this: cd src/osgUtil gmake Tessellator.i more CMakeFiles/osgUtil.dir/Tessellator.i I don't know if you have the make stuff in your directory, but even if you built it, I'd guess you'd get the make version, not whatever version isn't working for you in XCode. Let me bug our Mac guy again. In the meantime, here is my command line: [ 78%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o /usr/bin/c++ -DosgUtil_EXPORTS -Os -pipe -fno-common -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fPIC -I/private/var/ automount/mathworks/devel/sandbox/askinner/Amake/3p/derived/maci/opensce negraph/include -F/System/Library/Frameworks -DOSGUTIL_LI BRARY -o src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o -c /private/var/automount/mathworks/devel/sandbox/askinner/Amake/3p/deriv ed/maci/openscenegraph/src/osgUtil/Tessellator.cpp andy ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Egli Sent: Wednesday, October 03, 2007 10:01 AM To: OpenSceneGraph Users Subject: Re: [osg-users] COMPILATION ERROR : win32 where can i find this file Tessellator.i ? OsX 2007/10/3, Andy Skinner <[EMAIL PROTECTED]>: This is 2.1.14, right? Looks like you're expecting (...), where I'm expecting (). The former breaks my build, the latter breaks yours. Can you build the preprocessed file? I did a "gmake Tessellator.i " in the src/osgUtil directory and got the preprocessed file, which told me what include files I had, how everything was actually defined, etc. It might be interesting to compare Tessellator.i file and mine, though I don't know if you can make one with XCode. andy ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Egli Sent: Wednesday, October 03, 2007 9:40 AM To: OpenSceneGraph Users Subject: Re: [osg-users] COMPILATION ERROR : win32 XCode , OSX mac book pro cd /Users/PWD/dev/OpenSceneGraphSVN /usr/bin/gcc-4.0 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -DCMAKE_INTDIR=\"Release\" -fmessage-length=0 -mtune=G4 -mmacosx-version-min= 10.4 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -O3 -F/Users/PWD/dev/OpenSceneGraphSVN/lib/Release -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -I/Users/PWD/dev/OpenSceneGraphSVN/lib/Release/include -I/Users/PWD/dev/OpenSceneGraphSVN/include -I/Users/PWD/dev/OpenSceneGraphSVN/lib/OpenSceneGraph.build/Release/libo sgUtil.dylib.build/DerivedSources -mmacosx-version-min= 10.4 -ftree-vectorize -fvisibility-inlines-hidden -DNDEBUG -fPIC -DosgUtil_EXPORTS -DOSGUTIL_LIBRARY -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp -o /Users/PWD/dev/OpenSceneGraphSVN/lib/OpenSceneGraph.build/Release/libosg Util.dylib.build/Objects-normal/ppc/Tessellator- 62A7363A.o /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp: In member function 'void osgUtil::Tessellator::beginTessellation()': /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:44: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:45: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:45: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:46: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:46: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:47: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:47: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:48: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:48: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:44: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:45: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:45: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:46: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:46: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:47: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:47: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:48: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' /Users/PWD/dev/OpenSceneGraphSVN/src/osgUtil/Tessellator.cpp:48: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' 2007/10/3, Andy Skinner < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >: Our Mac build (and running osgversion) worked, as did a linux build. I had the same Windows build failure as below, with "return" repeated in two different lines in Registry.cpp. andy ________________________________ From: [EMAIL PROTECTED] [mailto:osg-users-bounces@ lists.openscenegraph.org <http://lists.openscenegraph.org> ] On Behalf Of Adrian Egli Sent: Wednesday, October 03, 2007 9:07 AM To: OpenSceneGraph Users Subject: [osg-users] COMPILATION ERROR : win32 return return error in Registry.cpp line 614 std::string Registry::createLibraryNameForNodeKit(const std::string& name) { #if defined(__CYGWIN__) return "cyg"+name+".dll"; #elif defined(__MINGW32__) return "lib"+name+".dll"; #elif defined(WIN32) #ifdef _DEBUG return return name+"d.dll"; // <= ERROR (*) #else return return name+".dll"; // <= ERROR #endif #elif macintosh return name; #elif defined(__hpux__) // why don't we use PLUGIN_EXT from the makefiles here? return "lib"+name+".sl"; #else return "lib"+name+".so"; #endif } (*) => return return name+"d.dll"; -- ******************************************** Adrian Egli _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g -- ******************************************** Adrian Egli _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g -- ******************************************** Adrian Egli
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

