Getting LNK2019 error on plugin compilation
-
Greetings,
I just uninstalled qt and compiler then installed it from https://download.qt.io/archive/qt/5.5/5.5.1/
I tried installing "qt-opensource-windows-x86-msvc2013_64-5.5.1.exe" and while installing i selected msvc2013_64 bit and installed Qt5.5 and msvc2013. On the kits panel i can see that Mscv2013_64 bit is installed but compiler shows 32bit version.While building the plugin, I still get the error message i got in the previous version. And i'm not sure the issue is based on using different bit versions. There is no 64bit qt installer on https://download.qt.io/archive/qt/5.5/5.5.1/ and i can see that qt is compiled with
Architecture: x86_64 (the last pic from my previous post).Could you please try to build the plugin by using your own qt and compiler and let me know about the specs? Cause im pretty sure that i installed the 64bit version of msvc2013 and respective sdk.
Apologies for taking your time and thanks a lot.
@wodasdsa
Please show screenshots of you Kits (click on Desktop 5.5.1 ... resp. Desktop (default)) to see how the Kits are set up.
Could you please try to build the plugin by using your own qt and compiler
Unfortunately, no. I neither have Windows nor MSVC :)
-
Here you can see the information about kits,
Do you think these errors are based on using different bit versions? (btw i dont get the error and compile succesfully if i erase getPluginInfo() method from Reaxmpleplugin.cpp file (as i explained in my very first post)
Unfortunately, no. I neither have Windows nor MSVC :)
Oh okey thanks a lot anyways..
-
and the manual desktop (default) panel,
-
any update?
-
Hi,
From the looks of it, you don't export any symbol from your library. This means that, on Windows, the linker won't find them.
-
@SGaist said in Getting LNK2019 error on plugin compilation:
This means that, on Windows, the linker won't find them.
Hello thanks for you answer, to be honest im quite newbie to qt and im not exactly got what you have suggested. You mean the compiler doesnt found qcadcore.lib,qcadgui.lib and qcadecmaapi.lib files in exampleplugin.pro file? And if so how can i solve it?
Thanks a lot for your help -
Did yes, they want to see on them.It's rather that they are not generated because no symbol were exported.
[edit: Something went wrong with the answer SGaist]
-
Sorry what do you mean?
I had .dll files from source code and used this method https://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/ to create .lib files
-
Sorry what do you mean?
I had .dll files from source code and used this method https://adrianhenke.wordpress.com/2008/12/05/create-lib-file-from-dll/ to create .lib files
@wodasdsa You should read http://doc.qt.io/qt-5/sharedlibrary.html
-
i dont think the problem is in libraries i cant compile without them either..
-
Can you show the relevant header(s) content ?
-
Sure,
to see shared.pri you can check the following link,
https://github.com/qcad/qcad/blob/master/shared.priThanks
-
How can i do that? im newbie to qt and didnt understand most the terms used in that documentation..
-
Just follow the indications in the "Using Symbols from Shared Libraries" part.