[MacPorts] #26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed ------------------------------------+--------------------------------------- Reporter: huangpeng723@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: osg | Port: OpenSceneGraph ------------------------------------+--------------------------------------- I have tried to install openscenegraph but it fails to build. Does anyone have any idea how to get rid of the error? {{{ 10:~ peng$ sudo port install openscenegraph ---> Computing dependencies for OpenSceneGraph ---> Building OpenSceneGraph Error: Target org.macports.build returned: shell command failed Log for OpenSceneGraph is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} In main.log the key info is some symbols not found (related to ffmpeg?) {{{ ... :info:build "_inflate", referenced from: :info:build _matroska_decode_buffer in libavformat.a(matroskadec.o) :info:build _zlib_decomp in libavcodec.a(lcldec.o) :info:build _decode_frame in libavcodec.a(tiff.o) :info:build _decode_frame in libavcodec.a(zmbv.o) :info:build _decode_frame in libavcodec.a(pngdec.o) :info:build _decode_frame in libavcodec.a(tscc.o) :info:build _flashsv_decode_frame in libavcodec.a(flashsv.o) :info:build _flashsv_decode_frame in libavcodec.a(flashsv.o) :info:build ld: symbol(s) not found :info:build collect2: ld returned 1 exit status :info:build make[2]: *** [lib/osgPlugins-2.8.3/osgdb_ffmpeg.so] Error 1 :info:build make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2 :info:build make[1]: *** Waiting for unfinished jobs.... :info:build [ 93%] Built target osgdb_osgwidget :info:build make: *** [all] Error 2 :info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph-2.8.3" && /usr/bin/make -j2 all " returned error 2 :error:build Target org.macports.build returned: shell command failed :debug:build Backtrace: shell command failed while executing "command_exec build" (procedure "portbuild::build_main" line 8) invoked from within "$procedure $targetname" :info:build Warning: the following items did not execute (for OpenSceneGraph): org.macports.activate org.macports.build org.macports.destroot org.macports.install :notice:build Log for OpenSceneGraph is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/main.log }}} I have attached the main.log file and please let me know if you need any further info. Many thanks! Peng -- Ticket URL: <https://trac.macports.org/ticket/26734> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed ------------------------------------+--------------------------------------- Reporter: huangpeng723@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: OpenSceneGraph ------------------------------------+--------------------------------------- Changes (by macsforever2000@…): * keywords: osg => * cc: huangpeng723@… (removed) * owner: macports-tickets@… => ryandesign@… -- Ticket URL: <https://trac.macports.org/ticket/26734#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed ------------------------------------+--------------------------------------- Reporter: huangpeng723@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: OpenSceneGraph ------------------------------------+--------------------------------------- Comment(by huangpeng723@…): I have worked around this by disable ffmpeg: {{{ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/work/OpenSceneGraph-2.8.3 }}} edit CMakeLists.txt (comment following out) {{{ ... #FIND_PACKAGE(FFmpeg) ... }}} Run make manually {{{ sudo make }}} Finally {{{ cd ~ sudo port install OpenSceneGraph }}} If you meet the same situation with me like follows: {{{ 10:~ peng$ sudo port install openscenegraph ---> Computing dependencies for OpenSceneGraph ---> Activating OpenSceneGraph @2.8.3_0 Error: Target org.macports.activate returned: Image error: /opt/local/lib/libOpenThreads.11.dylib already exists and does not belong to a registered port. Unable to activate port OpenSceneGraph. Use 'port -f activate OpenSceneGraph' to force the activation. Log for OpenSceneGraph is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_OpenSceneGraph/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> }}} delete conflicted files {{{ sudo rm /opt/local/lib/libosg* }}} and run make again {{{ sudo make }}} Done {{{ 10:~ peng$ sudo port install openscenegraph ---> Computing dependencies for OpenSceneGraph ---> Activating OpenSceneGraph @2.8.3_0 ---> Cleaning OpenSceneGraph }}} But I still have no idea how to fix ffmpeg, hopefully, I will not need that when I am using osg.. -- Ticket URL: <https://trac.macports.org/ticket/26734#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed ------------------------------------+--------------------------------------- Reporter: huangpeng723@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: | Port: OpenSceneGraph ------------------------------------+--------------------------------------- Comment(by jmr@…): Does this still happen with 2.8.4? -- Ticket URL: <https://trac.macports.org/ticket/26734#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed -----------------------------+-------------------------------- Reporter: huangpeng723@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: | Keywords: Port: OpenSceneGraph | -----------------------------+-------------------------------- Changes (by ryandesign@…): * owner: ryandesign@… => macports-tickets@… -- Ticket URL: <https://trac.macports.org/ticket/26734#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26734: OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed -----------------------------+-------------------------------- Reporter: huangpeng723@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Resolution: fixed | Keywords: Port: OpenSceneGraph | -----------------------------+-------------------------------- Changes (by devans@…): * status: new => closed * resolution: => fixed Comment: The ffmpeg plugin has been disabled in current OpenSceneGraph 3.0.1 allowing the port to build without ffmpeg support. See #38167 for the current failure mode. The problem has been fixed upstream in OpenSceneGraph-devel 3.1.7. Use the +ffmpeg variant to enable this support. -- Ticket URL: <https://trac.macports.org/ticket/26734#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts