Opened 16 years ago
Last modified 14 years ago
#18112 closed defect
OpenSceneGraph build fails; missing symbols in libjasper.a — at Initial Version
Reported by: | e.haasdijk@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.0 |
Keywords: | Cc: | ||
Port: | OpenSceneGraph |
Description
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.