Hi,

I am having an issue with osgdb_jp2, libjasper.dylib. in the regular 
./configure, make, make install cycle.

Trying to build osg dev 2.9.11 (although I got the same issue on 2.8.3), on mac 
os x 10.6.6. Below is a paste from the terminal.

I understand what its telling me, but am unsure of how to fix it. Hopefully 
someone in the community has encountered this before. I checked the 
forums/google, but the issues with osgdb_jp2 I found were different.


> 
> [ 85%] Built target osgdb_dot
> [ 85%] Built target osgdb_vtf
> Linking CXX shared module ../../../lib/osgPlugins-2.9.11/osgdb_jp2.so
> ld: warning: in /opt/local/lib/libjasper.dylib, file was built for 
> unsupported file format which is not the architecture being linked (ppc)
> Undefined symbols for architecture ppc:
>   "_jas_image_decode", referenced from:
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_cleanup", referenced from:
>       ReaderWriterJP2::~ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::~ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>   "_jas_stream_flushbuf", referenced from:
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_matrix_destroy", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_writecmpt", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>   "_jas_image_readcmpt", referenced from:
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_strtofmt", referenced from:
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>   "_jas_stream_close", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_image_encode", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_memopen", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_matrix_create", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_destroy", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_image_create", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_fopen", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_image_clearfmts", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_init", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_stream_flush", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_fillbuf", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
> ld: symbol(s) not found for architecture ppc
> collect2: ld returned 1 exit status
> ld: warning: in /opt/local/lib/libjasper.dylib, file was built for 
> unsupported file format which is not the architecture being linked (i386)
> Undefined symbols for architecture i386:
>   "_jas_image_decode", referenced from:
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_cleanup", referenced from:
>       ReaderWriterJP2::~ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::~ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>   "_jas_stream_flushbuf", referenced from:
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_matrix_destroy", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_writecmpt", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>   "_jas_image_readcmpt", referenced from:
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_strtofmt", referenced from:
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>   "_jas_stream_close", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_image_encode", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_memopen", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_matrix_create", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>   "_jas_image_destroy", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_image_create", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_fopen", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_image_clearfmts", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_init", referenced from:
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::ReaderWriterJP2()in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::readImage(std::basic_istream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>   "_jas_stream_flush", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
>       _putdata in ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_ostream<char, 
> std::char_traits<char> >&, osgDB::Options const*) constin 
> ReaderWriterJP2.cpp.o
>       ReaderWriterJP2::writeImage(osg::Image const&, std::basic_string<char, 
> std::char_traits<char>, std::allocator<char> > const&, osgDB::Options const*) 
> constin ReaderWriterJP2.cpp.o
>   "_jas_stream_fillbuf", referenced from:
>       _getdata in ReaderWriterJP2.cpp.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> lipo: can't open input file: 
> /var/folders/u-/u-ZhiJPvF1qvSc-iEATj0k+++TM/-Tmp-//ccxVWKnz.out (No such file 
> or directory)
> make[2]: *** [lib/osgPlugins-2.9.11/osgdb_jp2.so] Error 1
> make[1]: *** [src/osgPlugins/jp2/CMakeFiles/osgdb_jp2.dir/all] Error 2
> make: *** [all] Error 2
> [ ajc@mbp : ~/OpenSceneGraph-2.9.11 ]
> 
> 



Thank you!

Cheers,
Andrew[/quote]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36756#36756





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to