fix: toolchain — add QML include paths, QML headers now found

redox-toolchain.cmake CMAKE_CXX_FLAGS now includes:
 -I${COOKBOOK_SYSROOT}/usr/include/QtQml
 -I${COOKBOOK_SYSROOT}/usr/include/QtQuick

Previous attempts (CMAKE_CXX_FLAGS override, env CXXFLAGS) failed
because toolchain uses CACHE STRING "" FORCE which overrides all.

Result: QML/Quick headers resolved (no more "fatal: QQmlEngine not found")
New blocker: KDE ECM QML macros (QML_NAMED_ELEMENT, QML_ATTACHED,
QML_UNCREATABLE expanded with _OFF_OFF_OFF suffix). This is upstream
KDE build infrastructure, not a Red Bear include issue.

QML gate status: include layer resolved, KDE ECM macro layer next.
This commit is contained in:
2026-05-01 07:33:45 +01:00
parent 08df4a1b3c
commit 92d5f4424e
+1 -1
View File
@@ -43,7 +43,7 @@ set(CMAKE_SYSTEM_VERSION 1)
# Redox userspace currently must not emit CET/IBT entry instructions (endbr64),
# because they trap as invalid opcode in the current runtime stack.
set(CMAKE_C_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h -I${COOKBOOK_SYSROOT}/usr/include/QtQml -I${COOKBOOK_SYSROOT}/usr/include/QtQuick" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)