PDA

View Full Version : Adding a new imageformat plugin



dcole
7th June 2011, 20:07
Hello,

I am trying to add the jpeg2000 plugin to the imageformat plugins folder. I have built jasper, and I have built the plugin libqtjp2.so

I added that file libqtjp2.so to that plugins/imageformats folder, but whenever my code reaches the point where it tries to read a jp2 file, I get the following:

symbol lookup error: /usr/lib64/qt4/plugins/imageformats/libqtjp2.so: undefined symbol: jas_init

What do I need to add so that my executable knows where to find jas_init? Do I need to add the jasper lib to my projects makefile too?

ChrisW67
7th June 2011, 23:03
You need to either build the jasper library into your plugin statically, or make sure that the jasper library is on the search path the system uses for libraries (see "man ld.so" on Linux).