Can't compile project using CLion and CMake
-
@nagesh said in Can't compile project using CLion and CMake:
@mingvv mingw bin directory is having both release and debug version (with d suffix) of dlls.
Thank you for the answer!
Did you install them separately (I mean, there is a separate item in the installer? If so, what is it called?)? -
@mingvv said in Can't compile project using CLion and CMake:
Did you install them separately
Do you mean release and debug? No, those are both installed by default.
-
@jsulm said in Can't compile project using CLion and CMake:
@mingvv said in Can't compile project using CLion and CMake:
Did you install them separately
Do you mean release and debug? No, those are both installed by default.
Yes. I reinstalled Qt, but debug files never appeared for MinGW (with MSVC all OK). "Qt Debug Information" is not that?
-
@mingvv said in Can't compile project using CLion and CMake:
but debug files never appeared for MinGW
That's strange. On my machine I have both. How did you install Qt and what version?
-
@jsulm said in Can't compile project using CLion and CMake:
@mingvv said in Can't compile project using CLion and CMake:
but debug files never appeared for MinGW
That's strange. On my machine I have both. How did you install Qt and what version?
Using Qt Online Installer for Windows I installed the default set for Qt 6 as well as an additional component for MSVC.
What I have now (as it looks in MaintenanceTool):
*) Qt -> Qt 6.0.2 -> MSVC 2019 64-bit
*) Qt -> Qt 6.0.2 -> MinGW 8.1.0 64-bit
*) Qt -> Developer and Designer Tool -> Qt Creator 4.14.1 CDB Debugger Support
*) Qt -> Developer and Designer Tool -> Debugging Tools for Windows
*) Qt -> Developer and Designer Tool -> MinGW 8.1.0 64-bit
*) Qt -> Developer and Designer Tool -> CMake 3.19.2 64-bit
*) Qt -> Developer and Designer Tool -> Ninja 1.10.0 -
@jsulm said in Can't compile project using CLion and CMake:
@mingvv I did not yet install Qt6, maybe something is different there.
You’re using version 5? Honestly, I don’t know why I put 6. I decided that the new and apparently more active development of it. Are there any significant differences? Otherwise, I would have reassigned to 5.
-
@mingvv said in Can't compile project using CLion and CMake:
Are there any significant differences?
Yes, currently not all Qt modules are available in Qt6 and will be added in later Qt6 releases. It is save to stay with Qt5 for now.
-
@jsulm said in Can't compile project using CLion and CMake:
@mingvv said in Can't compile project using CLion and CMake:
Are there any significant differences?
Yes, currently not all Qt modules are available in Qt6 and will be added in later Qt6 releases. It is save to stay with Qt5 for now.
I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.
-
@mingvv said in Can't compile project using CLion and CMake:
I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.
We don't ship pure debug libraries anymore for MinGW, since Qt 5.15.0 (IIRC). Instead, there's a package with additional debug information for the release binaries. This is the same approach we're actually using also on macOS and Linux; it's only Windows MSVC where you need completely different builds (due to the different MSVC runtimes used for debug and release builds).
-
@kkoehne said in Can't compile project using CLion and CMake:
@mingvv said in Can't compile project using CLion and CMake:
I reinstalled to version 5. Still debug dlls are only for MSVC... Are you sure there’s no need to add an extra component in installer or something else? Otherwise I don’t know what it is and why it don't install debug libraries for MinGW.
We don't ship pure debug libraries anymore for MinGW, since Qt 5.15.0 (IIRC). Instead, there's a package with additional debug information for the release binaries. This is the same approach we're actually using also on macOS and Linux; it's only Windows MSVC where you need completely different builds (due to the different MSVC runtimes used for debug and release builds).
What is the package?
-