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 still 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.
如果您的路径中没有Qt库,可能会出现问题,如果您检查环境变量,您应该引用Qt库路径,如果没有,那么您需要自己添加它。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.