Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. 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"

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"

Scheduled Pinned Locked Moved Solved Qt 6
10 Posts 2 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lutfia95
    wrote on last edited by
    #1

    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!

    jsulmJ 1 Reply Last reply
    0
    • L lutfia95

      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!

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @lutfia95 Please search for the actual error (compiler or linker error) and post it. What you posted is just a follow up from CMake.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        lutfia95
        wrote on last edited by
        #3

        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.

        jsulmJ 1 Reply Last reply
        0
        • L lutfia95

          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.

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @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.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • L Offline
            L Offline
            lutfia95
            wrote on last edited by
            #5

            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"

            jsulmJ 1 Reply Last reply
            0
            • L lutfia95

              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"

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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.

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • L Offline
                L Offline
                lutfia95
                wrote on last edited by
                #7

                @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?

                jsulmJ 1 Reply Last reply
                0
                • L lutfia95

                  @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?

                  jsulmJ Online
                  jsulmJ Online
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @lutfia95 BOOL RemoveDirectoryW(LPCWSTR) - this is Windows API I guess which is not used on Linux.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • L Offline
                    L Offline
                    lutfia95
                    wrote on last edited by
                    #9

                    I am trying to fix this error! I am not sure if I understand the reason well! Because without adding any Qt libs no error occurs..... I will try to find it out.

                    1 Reply Last reply
                    0
                    • L Offline
                      L Offline
                      lutfia95
                      wrote on last edited by
                      #10

                      Using Qt 5.15.0 MSVC2019 64bit solved the problem, so as I was using seqAn2 libs, that couldn't worked with Qt6 and also because of some windows libs....

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved