Issue while compiling QT 6.9.1 on Rocky 8.10 at x86_64 platoform
-
Error message just says:
ninja: build stopped: subcommand failed.
I tried to verbose mode (ninja -v) as well to print more messages, but no luck .
Cmake logs during configure says but not showing any information about missing dependencyWARNING: The Clang-based lupdate parser will not be available. Suitable LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.
WARNING: Qt WebEngine And Qt Pdf SBOM generation will be skipped due to missing dependencies.
WARNING: System GBM is disabled. The bundled minigbm supports Intel only, you might need to install libgbm to avoid rendering issues.I am using:
gcc: 10.3.0
python : 3.8.1 (from some alternate path, not the default system installed)
ninja : 1.8.2
cmake: 3.26.5cat build.log2|egrep -i 'warning|error'
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:443 (message):
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3390 (message):
Use the qt_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:443 (message):
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Warning at qtwebengine/cmake/QtConfigureHelpers.cmake:32 (message):
CMake Deprecation Warning at build/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3380 (message):
CMake Warning (dev) at build/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3390 (message):
Use the qt_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
WARNING: No backend for low level audio found.
WARNING: No media backend found
WARNING:
WARNING: The Clang-based lupdate parser will not be available. Suitable LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check.
WARNING: Qt WebEngine And Qt Pdf SBOM generation will be skipped due to missing dependencies.
WARNING: System GBM is disabled. The bundled minigbm supports Intel only, you might need to install libgbm to avoid rendering issues.
CMake Warning: -
Ok When I compiled it using single thread I see some error:
../../../../../../qtwebengine/src/3rdparty/chromium/components/paint_preview/common/subset_font.cc:10:10: fatal error: hb-cplusplus.hh: No such file or directory
10 | #include <hb-cplusplus.hh>
| ^~~~~~~~~~~~~~~~~
compilation terminated.I am using qt-everywhere-src-6.9.1 to build the qt and webengine
-
Then you should install the harfbuzz devel package so the header is available.
-
The packgae is already installed and I am passing it through cmake option -DCMAKE_PREFIX_PATH=/tools/install/rocky8/harfbuzz-4.3.0
-
The above has been fixed, but now getting different error:
/usr/include/nspr4 -isystem/usr/include/libxml2 -isystem/usr/include/libxml2 -Wno-narrowing -Wno-class-memaccess -Wno-attributes -Wno-class-memaccess -Wno-subobject-linkage -Wno-invalid-offsetof -Wno-return-type -Wno-deprecated-copy -Wno-invalid-offsetof -Wno-deprecated-copy -Wno-expansion-to-defined -std=gnu++20 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c gen/third_party/blink/renderer/core/core_jumbo_291.cc -o obj/third_party/blink/renderer/core/core/core_jumbo_291.o
In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_extensions.cc:32,
from gen/third_party/blink/renderer/core/core_jumbo_291.cc:11:
/usr/include/libxslt/xsltutils.h:292:23: error: ‘XSLT_DEBUG_NONE’ conflicts with a previous declaration
292 | XSLT_DEBUG_NONE = 0, /* no debugging allowed /
| ^
In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xsl_style_sheet_libxslt.cc:26,
from gen/third_party/blink/renderer/core/core_jumbo_291.cc:10:
/usr/include/libxslt/xsltutils.h:292:5: note: previous declaration ‘xsltDebugStatusCodes XSLT_DEBUG_NONE’
292 | XSLT_DEBUG_NONE = 0, / no debugging allowed */
| ^~~~~~~~~~~~~~~
In file included from ./../../../../../../qtwebengine/src/3rdparty/chromium/third_party/blink/renderer/core/xml/xslt_extensions.cc:32,
from gen/third_party/blink/renderer/core/core_jumbo_291.cc:11:
/usr/include/libxslt/xsltutils.h:293:5: error: ‘XSLT_DEBUG_INIT’ conflicts with a previous declaration
293 | XSLT_DEBUG_INIT,My configuration options:
/usr/bin/cmake ../ -G Ninja -DCMAKE_INSTALL_PREFIX=/dt/temp_nipandey/qt6.9.1 -DCMAKE_C_COMPILER=/tools/install/gcc-10.3.0-rocky8/bin/gcc -DCMAKE_CXX_COMPILER=/tools/install/gcc-10.3.0-rocky8/bin/g++ -DCMAKE_BUILD_TYPE=Release -DQT_FEATURE_opengles2=ON -DQT_FEATURE_x11_xss=OFF -DQT_BUILD_EXAMPLES=OFF -DQT_BUILD_TESTS=OFF -DQT_FEATURE_webengine=ON -DQT_FEATURE_webengine_core=ON -DQT_FEATURE_webengine_widgets=ON -DQT_FEATURE_webgl=ON -DQT_FEATURE_webchannel=ON -DQT_FEATURE_network=ON -DFEATURE_system_xcb_xinput=OFF -DBUILD_SHARED_LIBS=ON -DFEATURE_opengl=ON -DFEATURE_opengl_desktop=ON -DPython3_EXECUTABLE=/tools/install/python-3.8.1-rh7/bin/python3.8 -DCMAKE_PREFIX_PATH=/nipandey/qt/harfbuzz/ -DFEATURE_webengine_system_libxslt=OFF -DFEATURE_webengine_system_libxml2=OFF -DFEATURE_webengine_system_libpng=OFF -DFEATURE_webengine_proprietary_codecs=ON