Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2, 6.3
-
None
Description
When using modern QML CMake API and specifying the URI of the QML module that starts with the executable output name this causes an error like:
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot open output file App: Is a directory
This happens because qt6_add_qml_module creates folder structure that uses URI parts and the first part matches the executable name.
This happens on platforms where executable have no extra suffixes. As the minimum we should throw the explicit FATAL_ERROR at configure time about this issue, suggesting to rename the executable.
We should not change the default QML module/application directory layout because that would require people to specify an explicit import path in their application.
Attachments
Issue Links
- relates to
-
QTBUG-99146 URI and VERSION should be optional in qt_add_qml_module
-
- Open
-
-
QTCREATORBUG-26375 [REG 5.0.2 -> 6.0.0] Cannot build Qt Quick Application with CMake and Qt 6.2
-
- Closed
-
-
QTBUG-100206 QML app creation breaks if there are illegal characters in the name
-
- Closed
-