[osg-users] COMPILATION ERROR : win32

Robert Osfield robert.osfield at gmail.com
Wed Oct 3 07:17:26 PDT 2007


Hi Adrian,

Boy this error is frustrating.  I spent an a day trying to get to the
bottom of this, tried a solution that appeared to work as I got no
negative feedback to all my calls for testing, but clearly no one till
now tested the XCode build.  Still better late than never.

Could you please have a look over the load thread about GLU and see
what you can gleen from it.  In particular the contents of glu.h and
how is defines the tessellator callbacks is what is critical here.

One possibility for this problem is difference between the compile
options between CMake build and XCode project build.  Perhaps there is
some setting that sets gcc off on a wobbly.

Robert.

On 10/3/07, Adrian Egli <3dhelp at gmail.com> wrote:
> 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 at 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
>
>



More information about the osg-users mailing list