Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"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 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.

like image 805
JonathanReez Avatar asked Sep 05 '26 16:09

JonathanReez


1 Answers

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.

like image 105
Nicholas Smith Avatar answered Sep 07 '26 10:09

Nicholas Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!