Hi Mike, Very curious... you comment about it working sometimes and not others suggest that either the compiler is playing tricks or the include path is changing between different builds.
This observation reminds me when I had Martin Lavery working here alongside me - in the CMake build on his Mac he'd see the problem problem, we never get to the bottom of it. It always built fine under Xcode build. It didn't used to have problems under the old GNUmakfile system either, which suggest to me a problem somewhere on the CMake side. Perhaps the CMake community might have something to suggest. Robert. On 9/14/07, Mike Logan <[EMAIL PROTECTED]> wrote: > > > In my now broken mac build: > > > [ 21%] Building CXX object > src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o > /usr/bin/c++ -DosgUtil_EXPORTS -arch ppc -arch i386 -isysroot > /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 > -ftree-vectorize -fvisibility-inlines-hidden -O3 -DNDEBUG -fPIC > -I/Volumes/viz/OpenSceneGraph/include > -F/System/Library/Frameworks -DOSGUTIL_LIBRARY -o > src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o -c > /Volumes/viz/OpenSceneGraph/src/osgUtil/Tessellator.cpp > /Volumes/viz/OpenSceneGraph/src/osgUtil/Tessellator.cpp: In > member function 'void > osgUtil::Tessellator::beginTessellation()': > /Volumes/viz/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: invalid conversion from 'GLvoid (*)(...)' to 'GLvoid (*)()' > > > from CMakeCache.txt: > > //Include for OpenGL on OSX > OPENGL_INCLUDE_DIR:PATH=/System/Library/Frameworks/OpenGL.framework > > //OpenGL lib for OSX > OPENGL_gl_LIBRARY:FILEPATH=/System/Library/Frameworks/OpenGL.framework > > //AGL lib for OSX > OPENGL_glu_LIBRARY:FILEPATH=/System/Library/Frameworks/AGL.framework > > > very confusing why sometimes it builds, other times not... > environment vars messed up? > > OSG_DIR=/Volumes/viz//OpenSceneGraph/osg-darwinIntel > GDAL_DIR=/Volumes/viz//gdal-1.4.2/RELEASES/darwinIntel > > > ml > > > > > > > On Sep 14, 2007, at 2:14 AM, Robert Osfield wrote: > > On 9/14/07, Mike Logan <[EMAIL PROTECTED]> wrote: > Ok, so its seems to be just macs then. > Linux dependencies seem fine. > > > Maybe my problem is related to the previous thread > on Tessellator and Mac builds.. > > CMake must be picking up on the OpenGL framework rather the GLX > version of gl.h, or perhaps its the other way around, its assume the > OpenGL framework version bit getting the GLX gl.h version. > > /Volumes/viz/OpenSceneGraph/src/osgUtil/Tessellator.cpp: In > member > function 'void osgUtil::Tessellator::beginTessellation()': > /Volumes/viz/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: > error: > invalid conversion from 'GLvoid (*)(...)' to 'GLvoid (*)()' > > > From this I can't work out which way around it it your case. > > In ccmake .. could you have a look at which verision of OpenGL it's using? > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > Michael Logan > > Perot Systems Govt. Services / NASA Ames Res. Ctr. > > Task Lead / Visual Cueing & Simulation > > Visualization Engineer / Adaptive Control Technologies > > MS 269-1, Moffett Field, CA, 94035 (650)-604-4494 > "If you want to start a revolution, don't pick up a gun. > Do it with science and technology." - Stanford R. Ovshinsky > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

