Problem when compiling on new Qt 5.3.1
-
I start develop on new version a standard application with one label to show. When I compile I receive next error : -lQt5Widgetsd531 missing.
I search the lib in Qt folder and nothing.
Is installed under Windows 8.1 PRO x64.I success compile application after copy and rename Qt5Widgetsd.a to Qt5Widgetsd531.a
This is a general problem or just for windows release?
Another problem is that when I build application seems the QtCreator not see where the libs are and I must load manual. -
add Qt to your windows path.. maybe is a path problem.. where you have installed Qt? ... maybe you need to run it as administrator.. try both...
-
Hi and welcome to devnet,
Before fiddling with your PATH or administrator rights, how did you install Qt ? Since you are using static libraries, you probably compiled it yourself, so which option did you use ? Next thing, did you add this version of Qt to Creator ? Did you setup a kit with ?
-
Hello,
First of all thank you for help and quick answer and sorry for not answering( I was involved other project).
Qt is installed on Windows 8 using windows online setup. I installed almost everything..
Indeed adding qt to PATH solve most of problems but one remains.
Why he request Qt5Widgetsd531? This library doesn't exist in framework. So only solution I found is to create a copy of Qt5Widgetsd.dll and rename it to Qt5Widgetsd531.dll and then everything is ok. -
I would listen to SGaist's advice. It is not a very good idea to add Qt to your path. It will cause you a ton of problems in the future (new versions of qt) and when deploying applications.
What you need to do is set the kit up in Qt Creator like he also suggested. I don't use Qt Creator but I did it once before and remember it being pretty easy. Someone else can walk you through that process if needed.
As for your last question there is nothing in Qt that should request Qt5Widgetsd531.dll. My guess is that is something in your project or in the way you setup Qt. Moving/renaming that file to match that isn't a good solution. If you post your pro file maybe we can see why it is looking for that non-normal file name.
-
Hello,
I came back with more information about this errors:
First I installed qt 5.4 for windows, on win 8.1 pro x64 ( clean install)
I found some strange things:
-
if I add qtserialport when I build project I get error that it can't find Qt5SerialPortd540 library, because in Makefile.Debug he require -llibqt5SerialPortd540 instead of -llibqt5SerialPortd
I tested on win 7 , 8 x64 and get same problem. So is a problem when generating MakeFile with qmake or is from OS? -
I install the mingw 4.9.1 from extra option in installer - After this the debbuger is not recognized. I tried to set manual debugger from Mingw 4.8.1 version - is validate by Qt Creator but he won't use it ( so I setup this for nothing) because the IDE use detected debugger despite fact I set manual the debugger.
Any proposal for how to fix? -
I reinstall qt 4 with ALL PACKAGES from installer because I have all ides on same computer ( VSNET 2013, MSSQL, ADK, etc) and when I compile a project from Qt Creator he does not create MakFiles, but if I run qmake from qt command prompt the files are created .
Any suggestion why he make this?
Thanks a lot.
-
-
Hello,
I came back with more information about this errors:
First I installed qt 5.4 for windows, on win 8.1 pro x64 ( clean install)
I found some strange things:
-
if I add qtserialport when I build project I get error that it can't find Qt5SerialPortd540 library, because in Makefile.Debug he require -llibqt5SerialPortd540 instead of -llibqt5SerialPortd
I tested on win 7 , 8 x64 and get same problem. So is a problem when generating MakeFile with qmake or is from OS? -
I install the mingw 4.9.1 from extra option in installer - After this the debbuger is not recognized. I tried to set manual debugger from Mingw 4.8.1 version - is validate by Qt Creator but he won't use it ( so I setup this for nothing) because the IDE use detected debugger despite fact I set manual the debugger.
Any proposal for how to fix? -
I reinstall qt 4 with ALL PACKAGES from installer because I have all ides on same computer ( VSNET 2013, MSSQL, ADK, etc) and when I compile a project from Qt Creator he does not create MakFiles, but if I run qmake from qt command prompt the files are created .
Any suggestion why he make this?
Thanks a lot.
-