[osg-users] COMPILATION ERROR : win32

Adrian Egli 3dhelp at gmail.com
Wed Oct 3 11:40:11 PDT 2007


I am using XCode 2.4.1



2007/10/3, Andy Skinner <Andy.Skinner at mathworks.com>:
>
>  Our Mac guy asks what version of XCode you have—we are using 2.4.1.
>
>
>
> He says to get the –E in the command line for a specific file, you open
> Get Info on that file, and add the gcc option there in the Build panel.  All
> this should do for you is to generate a .i file which may give some clues as
> to why your situation is different from mine (in what type is expected) and
> from others (who can build with warnings instead of errors).
>
>
>
> andy
>
>
>  ------------------------------
>
> *From:* osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces at lists.openscenegraph.org] *On Behalf Of *Andy Skinner
> *Sent:* Wednesday, October 03, 2007 11:21 AM
> *To:* OpenSceneGraph Users
> *Subject:* Re: [osg-users] COMPILATION ERROR : win32
>
>
>
> 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:* osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces at lists.openscenegraph.org] *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/openscenegraph/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:* osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces at lists.openscenegraph.org] *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 <Andy.Skinner at mathworks.com>:
>
> 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:* osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces at lists.openscenegraph.org] *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/libosgUtil.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/libosgUtil.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 < Andy.Skinner at mathworks.com>:
>
> 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:* osg-users-bounces at lists.openscenegraph.org [mailto:
> osg-users-bounces@ 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
>
> --
> ********************************************
> Adrian Egli
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
>
>
> --
> ********************************************
> Adrian Egli
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071003/6135c375/attachment-0003.htm>


More information about the osg-users mailing list