Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7.1
-
None
-
-
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
For Gerrit Dashboard: QTBUG-128747 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
589284,4 | Add the missing archiving tool to QNX toolchain files | dev | qt/qt5 | Status: MERGED | +2 | 0 |
598542,2 | Add the missing archiving tool to QNX toolchain files | 6.8 | qt/qt5 | Status: MERGED | +2 | 0 |