[osg-users] COMPILATION ERROR : win32

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


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071003/ea946e80/attachment-0003.htm>


More information about the osg-users mailing list