View Full Version : Problem with libmng on static link

10th May 2006, 09:48
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 ?


10th May 2006, 17: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.

10th May 2006, 22: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).