开发者

"Cannot find -lqjpeg" error when compiling static QT application

I am trying to compile a (Windows) QT application in static (release configuration) mode using Nokia's QT Creator. I compiled QT itself statically as per standard instructions here. However, despite running configure.exe with -qt-libjpeg I am s开发者_Go百科till getting the following error:

mingw32/bin/ld.exe: cannot find -lqjpeg

collect2: ld returned 1 exit status

.pro file does contain QTPLUGIN += qjpeg

.cpp file does contain Q_IMPORT_PLUGIN(qjpeg)

The project I am trying to compile is called CutyCapt and can be downloaded here. I am using QT v.4.7.0.


There can be issues if you've not got the Qt libraries in your path, if you check your environment variables you should have a reference to the Qt libraries path, if not then you'll need to add it yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜