Opened 16 years ago

Last modified 14 years ago

#18112 closed defect

OpenSceneGraph build fails; missing symbols in libjasper.a — at Version 4

Reported by: e.haasdijk@… Owned by: ryandesign@…
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: Cc: e.haasdijk@…
Port: OpenSceneGraph

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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.

Change History (4)

comment:1 Changed 16 years ago by e.haasdijk@…

Cc: e.haasdijk@… added

Cc Me!

comment:2 Changed 16 years ago by blb@…

Owner: changed from macports-tickets@… to ryandesign@…
Port: OpenSceneGraph added

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

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

Description: modified (diff)

Please try 2.8.3 which I just committed in r66204. It builds fine for me.

Note: See TracTickets for help on using tickets.