PDA

View Full Version : Problem with libmng on static link



jlbrd
10th May 2006, 10:48
Hello,
I want to use Qt with static link on Linux. For this if I use :
./configure -static -qt-libmng -qt-libpng
or .configure -static

mng format is not supported. QMovie::supportedFormats() return none and drawPixmap with MNG don't work.

How to make static link with MNG support ?

Thanks

wysota
10th May 2006, 18:48
Do you have a static version of libmng installed on your system? Do you compile mng support directly into Qt library? It won't work as a plugin in a statically compiled lib.

dimitri
10th May 2006, 23:38
A static libmng library is not exactly required, except you'll need to ship the shared libmng library with your program.

Which program outputs "mng format is not supported"? Your program? You need to link it statically with the libmng plugin. Use Q_IMPORT_PLUGIN (http://doc.trolltech.com/4.1/qpluginloader.html#Q_IMPORT_PLUGIN).