Opened 15 years ago
Closed 14 years ago
#24300 closed defect (wontfix)
OpenSceneGraph-devel 2.9.7 build error
Reported by: | yves@… | Owned by: | nox@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.8.2 |
Keywords: | Cc: | ryandesign (Ryan Carsten Schmidt) | |
Port: | OpenSceneGraph-devel |
Description (last modified by mf2k (Frank Schima))
---> Building OpenSceneGraph-devel 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-devel/work/OpenSceneGraph-2.9.7" && /usr/bin/make -j2 all " returned error 2 Command output: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:484: error: 'JAS_CLRSPC_CHANIND_RGB_G' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:485: error: 'JAS_CLRSPC_CHANIND_RGB_B' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:489: error: 'JAS_CLRSPC_SRGB' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:489: error: 'jas_image_setclrspc' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:490: error: 'JAS_CLRSPC_CHANIND_RGB_R' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:490: error: 'JAS_IMAGE_CT_COLOR' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:490: error: 'jas_image_setcmpttype' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:491: error: 'JAS_CLRSPC_CHANIND_RGB_G' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:492: error: 'JAS_CLRSPC_CHANIND_RGB_B' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:493: error: 'JAS_IMAGE_CT_OPACITY' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:496: error: 'getdata' cannot be used as a function /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:498: error: 'out' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:510: error: 'jas_image_encode' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:513: error: 'jas_stream_flush' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:516: error: 'jas_stream_memobj_t' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:516: error: 'obj' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:516: error: expected primary-expression before ')' token /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:516: error: expected `;' before 'out' /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:522: error: 'jas_stream_close' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:524: error: 'jas_image_destroy' was not declared in this scope /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/jp2/ReaderWriterJP2.cpp:525: error: 'jas_image_clearfmts' was not declared in this scope make[2]: *** [src/osgPlugins/jp2/CMakeFiles/osgdb_jp2.dir/ReaderWriterJP2.cpp.o] Error 1 make[1]: *** [src/osgPlugins/jp2/CMakeFiles/osgdb_jp2.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... Linking CXX shared module ../../../lib/osgPlugins-2.9.7/osgdb_exr.so cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/src/osgPlugins/exr && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/osgdb_exr.dir/link.txt --verbose=1 /usr/bin/g++-4.0 -O2 -arch i386 -O3 -DNDEBUG -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5 -bundle -headerpad_max_install_names -L/opt/local/lib -o ../../../lib/osgPlugins-2.9.7/osgdb_exr.so CMakeFiles/osgdb_exr.dir/ReaderWriterEXR.cpp.o ../../../lib/libOpenThreads.2.5.0.dylib ../../../lib/libosg.2.9.7.dylib ../../../lib/libosgDB.2.9.7.dylib ../../../lib/libosgUtil.2.9.7.dylib /opt/local/lib/libIlmImf.dylib /opt/local/lib/libHalf.dylib -framework Carbon /opt/local/lib/libz.dylib ../../../lib/libosg.2.9.7.dylib ../../../lib/libOpenThreads.2.5.0.dylib -lpthread /usr/lib/libm.dylib /usr/lib/libdl.dylib -framework AGL -framework OpenGL /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph-devel/work/OpenSceneGraph-2.9.7/CMakeFiles [ 59%] Built target osgdb_exr make: *** [all] Error 2 Error: Status 1 encountered during processing.
Attachments (1)
Change History (7)
comment:1 Changed 15 years ago by mf2k (Frank Schima)
Cc: | nox@… removed |
---|---|
Description: | modified (diff) |
Keywords: | OpenSceneGraph removed |
Owner: | changed from macports-tickets@… to nox@… |
comment:2 follow-up: 3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
Changed 15 years ago by yves@…
Attachment: | OpenSceneGraph-devel.txt.bz2 added |
---|
comment:3 Changed 14 years ago by yves@…
Looks like it works also fine on Leopard if I put jasper.h to /usr/local/include/jasper/. This works with osg 2.9.7 svn trunk/cmake and maybe also with this port? I can not check if this needs a patch for this port for Leopard or not. <jasper/jasper.h> --> osgPlugins/jp2/ReaderWriterJP2.cpp
comment:4 follow-up: 5 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Ok, relevant the error in the log you attached is
ReaderWriterJP2.cpp:20:31: error: jasper/jasper.h: No such file or directory
It couldn't find jasper/jasper.h, which should have been provided by the jasper port, on which OpenSceneGraph-devel does depend and which your log shows you do have installed and active.
Putting files manually in /usr/local is not supported, and you should remove the file you put there.
The log also shows that it thinks Jasper is installed in /Library/Frameworks/UnixImageIO.framework/Headers/jasper. UnixImageIO.framework is not a standard part of Mac OS X; something else you installed must have installed this framework, and it is interfering with OpenSceneGraph-devel. You should remove this framework, clean OpenSceneGraph-devel, and try again.
comment:5 Changed 14 years ago by yves@…
Replying to ryandesign@…:
Ok, relevant the error in the log you attached is
ReaderWriterJP2.cpp:20:31: error: jasper/jasper.h: No such file or directoryIt couldn't find jasper/jasper.h, which should have been provided by the jasper port, on which OpenSceneGraph-devel does depend and which your log shows you do have installed and active.
Putting files manually in /usr/local is not supported, and you should remove the file you put there.
The log also shows that it thinks Jasper is installed in /Library/Frameworks/UnixImageIO.framework/Headers/jasper. UnixImageIO.framework is not a standard part of Mac OS X; something else you installed must have installed this framework, and it is interfering with OpenSceneGraph-devel. You should remove this framework, clean OpenSceneGraph-devel, and try again.
I can not remove the UnixImageIO framework of course. But you can close/move or delete this ticket because I have compiled OpenSceneGraph 2.9.7 now and it looks like a non-standard-osx-installation-problem and has nothing to do with your port. The not-supported-manually-putting of jasper.h was the only and quick way to get OpenSceneGraph 2.9.7 compiling with cmake on my 10.5. Thank you anyway for looking to my report!
comment:6 Changed 14 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Ok. For future reference, having third-party frameworks in /Library/Frameworks can interfere with the installation of MacPorts ports.
It works fine for me on Snow Leopard. Please clean and try again with the debug switch and with only one build job.
If it fails again, attach OpenSceneGraph-devel.txt.bz2 from your desktop to this ticket so we can see what's actually going on.