[MacPorts] #18112: OpenSceneGraph build fails; missing symbols in libjasper.a

MacPorts noreply at macports.org
Tue Jan 20 00:47:02 PST 2009


#18112: OpenSceneGraph build fails; missing symbols in libjasper.a
----------------------------------+-----------------------------------------
 Reporter:  e.haasdijk@…          |       Owner:  macports-tickets@…                   
     Type:  defect                |      Status:  new                                  
 Priority:  Normal                |   Milestone:  Port Bugs                            
Component:  ports                 |     Version:  1.7.0                                
 Keywords:                        |        Port:                                       
----------------------------------+-----------------------------------------
 installing openscengraph, I got these errors:

 Linking CXX shared module ../../../lib/osgPlugins-2.6.1/osgdb_jp2.so
 Undefined symbols:
   "_jpeg_stdio_dest", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_default_colorspace", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_write_scanlines", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_start_compress", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_CreateCompress", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_destroy_compress", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_set_defaults", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_set_quality", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_read_scanlines", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_destroy_decompress", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_read_header", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_CreateDecompress", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_finish_decompress", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_stdio_src", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_start_decompress", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
   "_jpeg_std_error", referenced from:
       _jpg_decode in libjasper.a(jpg_dec.o)
       _jpg_encode in libjasper.a(jpg_enc.o)
   "_jpeg_finish_compress", referenced from:
       _jpg_encode in libjasper.a(jpg_enc.o)
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make[2]: *** [lib/osgPlugins-2.6.1/osgdb_jp2.so] Error 1
 make[1]: *** [src/osgPlugins/jp2/CMakeFiles/osgdb_jp2.dir/all] Error 2
 make: *** [all] Error 2

 I edited src/osgPlugins/jp2/CMakeFiles/osgdb_jp2.dir/link.txt and added
 "-l jpeg" to the command line in there and that fixed it.

-- 
Ticket URL: <http://trac.macports.org/ticket/18112>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list