The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project "projectName" (kit: Desktop Qt 6.0.3 MSVC2019 64bit) When executing step "Build"
-
Hi all,
I have this issue since yesterday, I tried everything and checked every issue in the Qt Forum but nothing helped to solve this error!
So this problem is occurs ONLY when I use:
target_link_libraries (projectName Qt6::Widgets)All other projects are working with the same settings! I tried to reopen/update Qt Creator but not helped....
This is my configuration:
Qt 6.0.3 MSVC2019 64bit
CMake 3.19.4
No Qml is used only CMake...Thx!
-
This is the complete massage that I got:
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\fileapi.h(1069,1): message : see declaration of 'RemoveDirectoryW' [C:\projectName\build\main\projectName.vcxproj]
Generating Code...
23:12:44: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1.
Error while building/deploying project projectName(kit: Desktop Qt 6.0.3 MSVC2019 64bit)
When executing step "Build"
PS: the same application (projectName) is running on linux error free.
-
@lutfia95 said in The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project "projectName" (kit: Desktop Qt 6.0.3 MSVC2019 64bit) When executing step "Build":
This is the complete massage that I got
Are you sure? It does not look like complete error message.
-
The other errors are from my tool, so the tool is running without target_link_libraries (projectName Qt6::Widgets) error free. And when I link Qt the errors occur. Only on Windows 10. I can run my tool on Ubuntu 20 with QtCreator without any errors!
I don't think that the tool's errors will help but here are they:C:\projectName\build\seqan\seqan2\seqan2-src\include\seqan/basic/debug_test_system.h(790,35): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast [C:\projectName\build\main\projectName.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\fileapi.h(146,1): message : see declaration of 'DeleteFileW' [C:\projectName\build\main\projectName.vcxproj]
C:\projectName\build\seqan\seqan2\seqan2-src\include\seqan/basic/debug_test_system.h(796,8): error C2664: 'BOOL RemoveDirectoryW(LPCWSTR)': cannot convert argument 1 from 'const _Elem *' to 'LPCWSTR' [C:\projectName\build\main\projectName.vcxproj]
with
[
_Elem=char
]
C:\projectName\build\seqan\seqan2\seqan2-src\include\seqan/basic/debug_test_system.h(796,44): message : Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast [C:\projectName\build\main\projectName.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.17763.0\um\fileapi.h(1069,1): message : see declaration of 'RemoveDirectoryW' [C:\projectName\build\main\projectName.vcxproj]
13:41:41: The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1.
Error while building/deploying project projectName(kit: Desktop Qt 6.0.3 MSVC2019 64bit)
When executing step "Build" -
@lutfia95 said in The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project "projectName" (kit: Desktop Qt 6.0.3 MSVC2019 64bit) When executing step "Build":
C:\projectName\build\seqan\seqan2\seqan2-src\include\seqan/basic/debug_test_system.h(796,8): error C2664: 'BOOL RemoveDirectoryW(LPCWSTR)': cannot convert argument 1 from 'const _Elem *' to 'LPCWSTR' [C:\projectName\build\main\projectName.vcxproj]
with
[
_Elem=char
]This seems to be the error failing your build. You should check debug_test_system.h line 796.
-
@jsulm said in The process "C:\Program Files\CMake\bin\cmake.exe" exited with code 1. Error while building/deploying project "projectName" (kit: Desktop Qt 6.0.3 MSVC2019 64bit) When executing step "Build":
ebug_test_system.h line 796
Do you have any Idea, why this error only occur when I add target_link_libraries (projectName Qt6::Widgets)? And on Linux error free?