Unsolved Make issues with Qt Creator Plugin
-
I am trying to make a Qt Creator Plugin library using the Qt Creator built from GitHub, but I keep running into issues at the make step of building the project. In the build settings I make with nmake.exe in C:\Users\Admin\Documents\build-myplugin-Unnamed-Debug because that is where the project folder resides. I also set the override to Visual Studio 2017's nmake.exe (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx86\x86\nmake.exe).
This is the compile output:
LINK : fatal error LNK1181: cannot open input file 'Cored4.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\link.EXE"' : return code '0x49d'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.15.26726\bin\Hostx86\x86\nmake.exe"' : return code '0x2'
Stop.For background information, this is occuring for the default code for the Qt Creator Plugin template after configuration. Do I just need to make the appropriate changes in the build settings, or is there a bigger problem here? If the former, what changes do I make?
-
Hi and welcome to devnet,
Something is not completely clear, did you compile Qt Creator yourself ?
If not, are you using the same compiler, architecture and Qt version used to build the Qt Creator you are trying to build your plugin for ?
-
@SGaist Yes, I compiled Qt creator from the source code in the GitHub repository. A already had Qt version 5.12.0 so I just went from there.
-
What version of Qt Creator are you building ?
By the way, Github is merely a mirror. You should download the code from https://code.qt.io
-
@SGaist I built Qt Creator version 4.9.0-beta1 which is based off Qt version 5.12.0
-
Did you check for the presence of the Cored4.lib file in your Qt Creator build ?
-
@SGaist I tried looking for it but I found another file called core4.dll
-
So you have a release build of Qt Creator and you are trying to build a debug version of your plugin.
-
@SGaist So, do I need to make a release version of the plugin instead?
-
That or a debug build of Qt Creator.
-