Opened 10 years ago

Closed 7 years ago

#26734 closed defect (fixed)

OpenSceneGraph 2.8.3 installation on Mac OS X 10.6 Snow Leopard - Building Failed

Reported by: huangpeng723@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc: sam.receive@…
Port: OpenSceneGraph

Description

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

Attachments (1)

main.log (50.1 KB) - added by huangpeng723@… 10 years ago.
main.log

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by huangpeng723@…

Attachment: main.log added

main.log

comment:1 Changed 10 years ago by huangpeng723@…

Cc: huangpeng723@… added

Cc Me!

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Cc: huangpeng723@… removed
Keywords: osg removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:3 Changed 10 years ago 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..

comment:4 Changed 9 years ago by jmroot (Joshua Root)

Does this still happen with 2.8.4?

comment:5 Changed 8 years ago by ryandesign (Ryan Schmidt)

Owner: changed from ryandesign@… to macports-tickets@…

comment:6 Changed 7 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.