Trying to use QT on Clion

Answered

So Im trying to run a simple hello world QT app on clion but every time I run it I get this:
So im trying to run qt on my clion but everytime i try to i get this:
"C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" --build C:\Users\Tvpow\CLionProjects\untitled2\cmake-build-debug --target untitled2 [1/4] Automatic MOC and UIC for target untitled2 [2/4] Building CXX object CMakeFiles/untitled2.dir/untitled2_autogen/mocs_compilation.cpp.obj [3/4] Building CXX object CMakeFiles/untitled2.dir/main.cpp.obj [4/4] Linking CXX executable untitled2.exe FAILED: untitled2.exe cmd.exe /C "cd . && C:\PROGRA~1\JETBRA~1\CLION2~1.3\bin\mingw\bin\G__~1.EXE -g CMakeFiles/untitled2.dir/untitled2_autogen/mocs_compilation.cpp.obj CMakeFiles/untitled2.dir/main.cpp.obj -o untitled2.exe -Wl,--out-implib,libuntitled2.dll.a -Wl,--major-image-version,0,--minor-image-version,0 C:/Qt/6.6.1/mingw_64/lib/libQt6Widgets.a C:/Qt/6.6.1/mingw_64/lib/libQt6Gui.a C:/Qt/6.6.1/mingw_64/lib/libQt6Core.a -lmpr -luserenv -ld3d11 -ldxgi -ldxguid -ld3d12 -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32 && cmd.exe /C "cd /D C:\Users\Tvpow\CLionProjects\untitled2\cmake-build-debug && "C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" -E copy C:/Qt/6.6.1/mingw_64/bin/Qt6Cored.dll C:/Users/Tvpow/CLionProjects/untitled2/cmake-build-debug && cd /D C:\Users\Tvpow\CLionProjects\untitled2\cmake-build-debug && "C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" -E copy C:/Qt/6.6.1/mingw_64/bin/Qt6Guid.dll C:/Users/Tvpow/CLionProjects/untitled2/cmake-build-debug && cd /D C:\Users\Tvpow\CLionProjects\untitled2\cmake-build-debug && "C:\Program Files\JetBrains\CLion 2021.3.3\bin\cmake\win\bin\cmake.exe" -E copy C:/Qt/6.6.1/mingw_64/bin/Qt6Widgetsd.dll C:/Users/Tvpow/CLionProjects/untitled2/cmake-build-debug"" Error copying file "C:/Qt/6.6.1/mingw_64/bin/Qt6Cored.dll" to "C:/Users/Tvpow/CLionProjects/untitled2/cmake-build-debug". ninja: build stopped: subcommand failed.

I tried copy and pasting the missing file but that didnt work so I dont know what to do
 

0
1 comment

Hello!

According to this thread, you might not have installed a debug version of Qt while trying to use the “Debug” profile in CLion. You can either install the debug Qt DLLs or create a “Release” profile in CLion (File | Settings | Build, Execution, Deployment | CMake) and use it for building (https://www.jetbrains.com/help/clion/cmake-profile.html#CMakeProfileSwitcher).

0

Please sign in to leave a comment.