Opened 12 years ago

Closed 11 years ago

#38167 closed defect (fixed)

OpenSceneGraph fails to build on 10.6.8

Reported by: watsodw Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: cooljeanius (Eric Gallager)
Port: OpenSceneGraph

Description

OpenSceneGraph fails to build on 10.6.8

Attachments (1)

main.log (253.1 KB) - added by watsodw 12 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by watsodw

Attachment: main.log added

comment:1 Changed 12 years ago by cooljeanius (Eric Gallager)

Relevant part of the log:

:info:build [ 42%] Building CXX object src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.cpp.o
:info:build In file included from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/cwchar:52,
:info:build                  from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/postypes.h:46,
:info:build                  from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/iosfwd:49,
:info:build                  from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/bits/stl_algobase.h:70,
:info:build                  from /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/algorithm:65,
:info:build                  from /opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_OpenSceneGraph/OpenSceneGraph/work/OpenSceneGraph-3.0.1/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:5:
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:66: error: ‘::clock_t’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:68: error: ‘::tm’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:70: error: ‘::clock’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:71: error: ‘::difftime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:72: error: ‘::mktime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:73: error: ‘::time’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:74: error: ‘::asctime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:75: error: ‘::ctime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:76: error: ‘::gmtime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:77: error: ‘::localtime’ has not been declared
:info:build /Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/ctime:78: error: ‘::strftime’ has not been declared
:info:build make[2]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/FFmpegClocks.cpp.o] Error 1
:info:build make[2]: Leaving directory `/opt/macports/var/macports/build/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_OpenSceneGraph/OpenSceneGraph/work/OpenSceneGraph-3.0.1'
:info:build make[1]: *** [src/osgPlugins/ffmpeg/CMakeFiles/osgdb_ffmpeg.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....

comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The same issue was mentioned for Mountain Lion in comment:ticket:39243:1.

comment:4 Changed 11 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

This problem involves the ffmpeg plugin which is broken in OpenSceneGraph 3.0.1. The plugin has been disabled for now as part of the opportunistic linking fixes from #36306. This allows the port to build but without ffmpeg file format support.

The problem has been fixed upstream in OpenSceneGraph-devel 3.1.7. Use the +ffmpeg variant to enable building of the plugin.

Closing as fixed because the port now builds on 10.6, 10.7, 10.8.

If this doesn't work for you, please submit a new ticket asking for ffmpeg support in OpenSceneGraph 3.0.1 as an enhancement.

Note: See TracTickets for help on using tickets.