Code that works with qmake does not work with cmake
-
@JKSH said in Code that works with qmake does not work with cmake:
@serkan_tr You're welcome.
The
d
suffix indicates a Debug DLL.- If you create a Debug build, then your application will link to
Qt5Quickd.dll
- If you create a Release build, then your application will link to
Qt5Quick.dll
If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll
This all means that your original problem was a deployment problem. It was not related to qmake or CMake.
Now I'm starting to understand a little more
but at the end it worked without error when d was deleted. Is it because it was pulled from the qt folder, not directly from the file?@serkan_tr said in Code that works with qmake does not work with cmake:
Is it because it was pulled from the qt folder, not directly from the file?
Yes. As I said in my previous post: If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll
- If you create a Debug build, then your application will link to
-
@serkan_tr said in Code that works with qmake does not work with cmake:
Is it because it was pulled from the qt folder, not directly from the file?
Yes. As I said in my previous post: If your application cannot find C:\Users\emsar\workspace\Qt\build-qgroundcontrol-Debug\Qt5Quickd.dll, then it will look for C:\Qt\5.15.2\msvc2019_64\bin\Qt5Quickd.dll