[osg-users] COMPILATION ERROR : win32

Andy Skinner Andy.Skinner at mathworks.com
Wed Oct 3 06:51:39 PDT 2007


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/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 <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.or
g 




-- 
********************************************
Adrian Egli 

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


More information about the osg-users mailing list