Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128747

qt_add_library(STATIC) fails on QNX

    XMLWordPrintable

Details

    • QNX
    • f747d2dec (dev), d6402b31f (6.8)

    Description

      qt_add_library fails to generate a library file when attempting to generate a STATIC library.  The same code works fine and builds a static library on desktop builds.  Sample application attached with build directories included showing missing library.  Here is the compiler/linker output:

      17:37:13: Running steps for project untitled5...
      17:37:13: Starting: "C:\Qt\Tools\CMake_64\bin\cmake.exe" --build C:/projects/untitled5/build/Qt_6_7_1_for_QNX_7_1_ARMv8-Debug --target all install
      [1/14 4.8/sec] Automatic MOC and UIC for target appuntitled5
      [2/13 7.7/sec] Running AUTOMOC file extraction for target appuntitled5
      [3/7 10.4/sec] Automatic MOC and UIC for target myClass
      [4/7 10.8/sec] Building CXX object CMakeFiles/myClass.dir/myClass_autogen/mocs_compilation.cpp.o
      [5/7 13.2/sec] Building CXX object CMakeFiles/myClass.dir/myclass.cpp.o
      [6/7 13.8/sec] Linking CXX static library libmyClass.a
      FAILED: libmyClass.a 
      C:\Windows\system32\cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E rm -f libmyClass.a && CMAKE_AR-NOTFOUND qc libmyClass.a  CMakeFiles/myClass.dir/myClass_autogen/mocs_compilation.cpp.o CMakeFiles/myClass.dir/myclass.cpp.o && cd ."
      'CMAKE_AR-NOTFOUND' is not recognized as an internal or external command,
      operable program or batch file.
      ninja: build stopped: subcommand failed.
      17:37:14: The process "C:\Qt\Tools\CMake_64\bin\cmake.exe" exited with code 1.
      Error while building/deploying project untitled5 (kit: Qt 6.7.1 for QNX 7.1 ARMv8)
      When executing step "Build"
      17:37:14: Elapsed time: 00:01.

      Attachments

        1. cmake_output.txt
          3 kB
        2. CMakeCache.txt
          52 kB
        3. qnx-toolchain-aarch64le.cmake
          0.9 kB
        4. untitled5.zip
          1.33 MB
        For Gerrit Dashboard: QTBUG-128747
        # Subject Branch Project Status CR V

        Activity

          People

            qtbuildsystem Qt Build System Team
            tfouts Taylor Fouts
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes