Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21175 closed defect (invalid)

OpenSceneGraph Build Error on Mac OS X 10.6 Snow Leopard

Reported by: sam.receive@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: osg Cc: sam.cwyeung@…
Port: OpenSceneGraph

Description (last modified by mf2k (Frank Schima))

sam-yeungs-macbook-pro-82:OpenSceneGraph-2.8.2 Sam$ sudo port install openscenegraph
Password:
--->  Computing dependencies for OpenSceneGraph
--->  Building OpenSceneGraph
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-2.8.2" && /usr/bin/make -j2 all " returned error 2
Command output: [ 58%] Built target osgdb_dds
[ 59%] Built target osgdb_tga
[ 59%] Built target osgdb_hdr
[ 59%] Built target osgdb_dot
[ 59%] Built target osgdb_vtf
[ 60%] Built target osgdb_gdal
[ 60%] Built target osgdb_ogr
ld: warning: in /Library/Frameworks//libz.framework/libz, missing required architecture x86_64 in file
Undefined symbols:
  "_inflate", referenced from:
      ive::DataInputStream::uncompress(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin DataInputStream.cpp.o
  "_inflateEnd", referenced from:
      ive::DataInputStream::uncompress(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin DataInputStream.cpp.o
      ive::DataInputStream::uncompress(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin DataInputStream.cpp.o
  "_inflateInit2_", referenced from:
      ive::DataInputStream::uncompress(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) constin DataInputStream.cpp.o
  "_deflateInit2_", referenced from:
      ive::DataOutputStream::compress(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) constin DataOutputStream.cpp.o
  "_deflate", referenced from:
      ive::DataOutputStream::compress(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) constin DataOutputStream.cpp.o
  "_deflateEnd", referenced from:
      ive::DataOutputStream::compress(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) constin DataOutputStream.cpp.o
      ive::DataOutputStream::compress(std::basic_ostream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) constin DataOutputStream.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [lib/osgPlugins-2.8.2/osgdb_ive.so] Error 1
make[1]: *** [src/osgPlugins/ive/CMakeFiles/osgdb_ive.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 60%] Built target osgdb_3dc
make: *** [all] Error 2

Error: Status 1 encountered during processing.

I have tried to install openscenegraph in my 10.6 SL MBP. But it fails to compile.... Please let me know if any further detail is needed. Thank you.

Change History (5)

comment:1 Changed 15 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: openscenegraph removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 15 years ago by tobypeterson

What is the output of lipo -info /opt/local/lib/libz.dylib ?

comment:3 in reply to:  2 Changed 15 years ago by sam.receive@…

Replying to toby@…:

What is the output of lipo -info /opt/local/lib/libz.dylib ?

lipo -info /opt/local/lib/libz.dylib 
Non-fat file: /opt/local/lib/libz.dylib is architecture: x86_64

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Port: OpenSceneGraph added; openscenegraph removed
Resolution: invalid
Status: newclosed

Where did /Library/Frameworks/libz.framework come from? Please remove it, clean OpenSceneGraph and try again.

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

Oh, and once you fix that, you still won't be able to build 64-bit on Snow Leopard because of #22589.

Note: See TracTickets for help on using tickets.