My application loads jpeg images with Qimage. Things work fine when compiling with both debug and release, however when i move the app to a computer that doesn't have Qt installed the application won't load the image. I tried adding QTPLUGIN += qjpeg to the .pro file and used Q_IMPORT_PLUGIN(qjpeg) in my code. However, when i add this i get the following compiler error:
P:/QT/MinGW-gcc-3.4.2/bin/mingw32-make.exe -f Makefile.Debug
mingw32-make.exe[1]: Entering directory `H:/workspace/prototype/planner'
g++ -c -g -g -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
g++ -DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB
g++ -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include/QtCore"
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include/QtNetwork"
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include/QtGui"
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include/QtXml"
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include" -I"."
g++ -I"P:/QT/qt-win-4.1.4-mingw-20060823/include/ActiveQt" -I"debug"
g++ -I"." -I"p:\QT\qt-win-4.1.4-mingw-20060823\mkspecs\win32-g++" -o
g++ debug\mapdrawwidget.o ..\mapdraw\mapdrawwidget.cpp -mthreads
g++ -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
g++ -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem,windows -o
g++ "debug\planner.exe" object_script.planner.Debug
g++ -L"p:\QT\qt-win-4.1.4-mingw-20060823\lib" -lmingw32 -lqtmaind
g++ -lQtXmld4 -lQtGuid4 -lQtNetworkd4 -lQtCored4
g++ -LP:\QT\qt-win-4.1.4-mingw-20060823\plugins/imageformats/ -lqjpegd
P:\QT\MinGW-20060823\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\ mingw32\bin\ld.exe: cannot find -lqjpegd
collect2: ld returned 1 exit status
mingw32-make.exe[1]: *** [debug\planner.exe] Error 1
mingw32-make.exe[1]: Leaving directory `H:/workspace/prototype/planner'
P:\QT\MinGW-gcc-3.4.2\bin\mingw32-make.exe: *** [debug] Error 2
I'm using mingw32 3.4.2 with Qt 4.1.4 and i've compiled it to use Qt's own jpeg library instead of the hosts native jpeg support.
Thanks in advance!
Bookmarks