#17294 closed defect (fixed)
OpenSceneGraph Build Error on Mac OS X 10.5 Leopard
Reported by: | chicagotripp (Altoine Barker) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ||
Port: | OpenSceneGraph |
Description (last modified by dbevans (David B. Evans))
I am running the most current macport 1.600 port (Binary install) on a PPC G4 Mac OSX 10.4.11 and a PPC G4 Mac OSX 10.5.5 and I get the following error message on building OpenSceneGraph port:
<snip> make[2]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o] Error 1 make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error 2 make: *** [all] Error 2 Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph" && make all " returned error 2 Command output: [ 21%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Optimizer.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/PlaneIntersector.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/PolytopeIntersector.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/PositionalStateContainer.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/RenderBin.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/RenderLeaf.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/RenderStage.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/ReversePrimitiveFunctor.o [ 22%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/SceneView.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Simplifier.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/SmoothingVisitor.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/SceneGraphBuilder.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/StateGraph.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Statistics.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/TangentSpaceGenerator.o [ 23%] Building CXX object src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp: In member function 'void osgUtil::Tessellator::beginTessellation()': /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:45: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:46: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:47: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph/src/osgUtil/Tessellator.cpp:48: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' make[2]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/Tessellator.o] Error 1 make[1]: *** [src/osgUtil/CMakeFiles/osgUtil.dir/all] Error 2 make: *** [all] Error 2 Warning: the following items did not execute (for OpenSceneGraph): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: The following dependencies failed to build: OpenSceneGraph Error: Status 1 encountered during processing. </snip>
Change History (8)
comment:1 Changed 16 years ago by dbevans (David B. Evans)
Description: | modified (diff) |
---|---|
Owner: | changed from macports-tickets@… to ryandesign@… |
comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
comment:3 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | OpenSceneGraph Build Error → OpenSceneGraph Build Error on Mac OS X 10.5 Leopard |
---|
comment:4 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
OpenSceneGraph 2.4.0 builds on Tiger but on Leopard it fails with:
[...]/src/osgUtil/Tessellator.cpp: In member function 'void osgUtil::Tessellator::beginTessellation()': [...]/src/osgUtil/Tessellator.cpp:44: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' [...]/src/osgUtil/Tessellator.cpp:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' [...]/src/osgUtil/Tessellator.cpp:45: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' [...]/src/osgUtil/Tessellator.cpp:45: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' [...]/src/osgUtil/Tessellator.cpp:46: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' [...]/src/osgUtil/Tessellator.cpp:46: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' [...]/src/osgUtil/Tessellator.cpp:47: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' [...]/src/osgUtil/Tessellator.cpp:47: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())' [...]/src/osgUtil/Tessellator.cpp:48: error: invalid conversion from 'void (*)(...)' to 'GLvoid (*)()' [...]/src/osgUtil/Tessellator.cpp:48: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)())'
OpenSceneGraph 2.6.1 builds on Leopard but on Tiger it fails with:
[...]/src/osgUtil/Tessellator.cpp: In member function 'void osgUtil::Tessellator::beginTessellation()': [...]/src/osgUtil/Tessellator.cpp:44: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' [...]/src/osgUtil/Tessellator.cpp:44: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' [...]/src/osgUtil/Tessellator.cpp:45: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' [...]/src/osgUtil/Tessellator.cpp:45: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' [...]/src/osgUtil/Tessellator.cpp:46: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' [...]/src/osgUtil/Tessellator.cpp:46: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' [...]/src/osgUtil/Tessellator.cpp:47: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' [...]/src/osgUtil/Tessellator.cpp:47: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))' [...]/src/osgUtil/Tessellator.cpp:48: error: invalid conversion from 'void (*)()' to 'GLvoid (*)(...)' [...]/src/osgUtil/Tessellator.cpp:48: error: initializing argument 3 of 'void gluTessCallback(GLUtesselator*, GLenum, GLvoid (*)(...))'
I expect this entry from the ChangeLog is relevant:
2008-05-08 12:55 +0000 [r8283] robert: * From Philip Lowman, "Attached is a patch to the toplevel CMakeLists.txt which adds an automated test for OSG_GLU_TESS_CALLBACK_TRIPLEDOT. This should help ease initial configuration on OS X systems."
Need to check whether the newest development version already fixes this. If so, we can try to get a patch. If not, we need to report the problem upstream.
comment:5 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
2.7.5 offers no improvement for this problem on Tiger.
comment:6 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Status: | new → assigned |
---|
This message provides a hint: define DEFAULT_GLU_TESS_CALLBACK_TRIPLEDOT
ourselves on the configure command line (for Tiger and earlier, I assume).
comment:7 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in r42288!
OpenSceneGraph 2.4.0_0 builds fine on Mac OS X 10.4.11 Intel. I can confirm the above error on Mac OS X 10.5.5 Intel. I have not tried on PowerPC.
I see OpenSceneGraph 2.6.1 has been released. I'll try updating the port to that version, and hope that it still works with VirtualPlanetBuilder 0.9.1 (its latest stable release).