"License file does not contain proper license key." on configure
-
Thanks for the help. I seem to have gotten things working! Well, some of the projects have compiled successfully with references to QT libraries. I'm having lots of errors (900+) around "WFlags" though (which no one else on the internet seem to have come across) :
Error 771 error C2061: syntax error : identifier 'WFlags'
Error 772 error C2039: 'WFlags' : is not a member of 'Qt'Eg with the line:
BaseWidget (QWidget* parent = 0, Qt::WFlags flags = 0);
According to the documentation it should be still usable though:
http://doc.qt.io/qt-5/qt-obsolete.html -
IIRC, you have to use QT_DISABLE_DEPRECATED_BEFORE to enable it again, however a search replace would probably be a better idea on the long run.
-
Thanks. You are a livesaver. I did a find/replace and went through all the obsolete parts and updated them. Nearly all the projects built successfully I'm just having one more (I hope) problem with the QT build...
It seems it can't find the moc.exe? I'm getting the error:
1> Moc'ing dems_IdIdentifier.h...
1> The system cannot find the path specified.
1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 3.When I have a look at line 151 it appears to be this CustomBuild settings. I can't find any incorect path's to the moc.exe though. I've added it's location "C:\Qt\Qt5.5.0\5.5\msvc2010\bin" to the PATH.
<CustomBuild Sources ="@(CustomBuild)" BuildSuffix ="$(BuildSuffix)" TrackerLogDirectory ="%(CustomBuild.TrackerLogDirectory)" MinimalRebuildFromTracking ="%(CustomBuild.MinimalRebuildFromTracking)" TLogReadFiles ="@(CustomBuildTLogReadFiles)" TLogWriteFiles ="@(CustomBuildTLogWriteFiles)" TrackFileAccess ="$(TrackFileAccess)" ToolArchitecture ="$(CustomBuildToolArchitecture)" TrackerFrameworkPath ="$(CustomBuildTrackerFrameworkPath)" TrackerSdkPath ="$(CustomBuildTrackerSdkPath)" AcceptableNonZeroExitCodes ="%(CustomBuild.AcceptableNonZeroExitCodes)" > </CustomBuild>
-
Argh, 6791 errors! They're all link errors:
Error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall QWidget::setWindowTitle(class QString const &)" (_imp?setWindowTitle@QWidget@@QAEXABVQString@@@Z) C:\Users\MOD_3\Documents\Visual Studio 2010\Projects\Dems\dems\solution\projects\demshmi\dems_Hmi.obj
In here (https://forum.qt.io/topic/28526/qt5-linker-error-for-vs2012-solved/3) you say the solution is to
"include a line like
@
QT += widgets
@"in the "pro" file. I didn't have a pro file so I created one with the extension. The error remains and I do have the line:
QT += core multimedia sql opengl widgets gui
-
I'm pretty sure that's how I've got it set up:
http://i.imgur.com/ulc4zlL.pngI keep reading that I need to run "qmake" does this mean literally run the qmake.exe in the bin directory?
-
It's been a long time since I used the AddIn, I don't remember what would be the equivalent of rerunning qmake. However, doing a full rebuild (maybe nuke the build folder entirely) might do the trick.
-
Tried to do a nuke, didn't seem to work.
Finally tracked it down! I think. I needed to add:
C:\Qt\Qt5.5.0\5.5\msvc2010\lib\Qt5Widgets.lib
to the additional dependencies of the input section of the "linker". I have some library projects that seem to be having issues and there's no "linker" section though.
-
Thought that the plugin would have take care of updating it for you…
Everything is working now ?
-
Almost! Thank you for the help.
I got it to build in release mode, but strangely when I change to debug (there's a runtime error) I 'm back to square one, with it unable to find the QT includes! I checked and the (QTDIR) is the correct path this time:
Error C1083: Cannot open include file: 'QApplication': No such file or directory C:\Users\User\Documents\Visual Studio 2010\Projects\Project\file.cpp
Edit I think I only did all those changes to the release build properties! Will change the debug to match and fingers crossed everything should work.
-
I need to build the IBASE SQL drivers, but I've no idea how to download the source. I created a new post though as this one is getting very long and not much to do with the title.
https://forum.qt.io/topic/58594/where-do-i-actually-get-the-src-files-for-5-5Thanks for the help, I got it to build at last.
-
Indeed, you could even set this one to solved since you have things working :)