Can't build Webengine from source
-
Getting below output
how to fix it?
Tried all possible variants
/home/j/tmp/qt-everywhere-src-6.9.2/configure \ -DCMAKE_PREFIX_PATH=/usr/lib/llvm-17/cmake \ -DLLVM_INSTALL_DIR=/usr/lib/llvm-17 \ -DFEATURE_clang=ON
-- Configuration summary has been written to /home/j/dev/qt-build/config.summary Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: No backend for low level audio found. WARNING: No media backend found WARNING: QDoc will not be compiled, probably because clang's C and C++ libraries could not be located. This means that you cannot build the Qt documentation. You may need to set the CMake variables CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. Other than clang's libraries, you may need to install another package, such as clang itself, to provide the ClangConfig.cmake file needed to detect your libraries. Once this file is in place, the configure script may be able to detect your system-installed libraries without further environment variables. NOTE: You WILL also need to set the FEATURE_clang CMake variable to ON to re-try finding the dependencies. On macOS, you can use Homebrew's llvm package. Run `brew install llvm` and then configure with `configure LLVM_INSTALL_DIR=/opt/homebrew/opt/llvm FEATURE_clang=ON` for macOS arm64 or `configure LLVM_INSTALL_DIR=/usr/local/opt/llvm FEATURE_clang_ON` for macOS x86_64. On Linux, you can try installing the clang package from your distribution's package manager. On Debian / Ubuntu run `sudo apt install libclang-dev`. On Fedora / RHEL run `sudo dnf install clang-devel`. On ArchLinux run `sudo pacman -S clang llvm`. Alternatively, you can use the prebuilt binaries hosted by Qt. These let you link LLVM/Clang libraries statically, but only support Release builds on Windows. https://download.qt.io/development_releases/prebuilt/libclang/qt/ After installing, reconfigure with `/qt_src/configure FEATURE_clang=ON` for a top-level build that includes the qttools repo or `/qt_build/qt-configure-module /path/to/qttools FEATURE_clang=ON` for a per-submodule build 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. -- Configuring done -- Generating done -- Build files have been written to: /home/j/dev/qt-build
-
Another question, if I built qt libs without webengine, can I link it somehow after using deb files or binaries or anything else?
-
Another question, if I built qt libs without webengine, can I link it somehow after using deb files or binaries or anything else?
@JacobNovitsky If you are talking about mixing self-built Qt binaries with distro Qt ones, no. Though I do not use MacOS.
-
I've tried all possible way, surpressed most errors regarding missing depencies
But these were unbeatable, fixed by setting flags/home/j/Desktop/tmp/qt-everywhere-src-6.2.4/configure -skip qtwebengine -skip qtwebsockets -no-feature-translation
CMAKE_PREFIX_PATH
LLVM_INSTALL_DIR
QDoc