Building the Qt Framework with x86_64-linux-musl-g++
-
Hi,
I've been trying to build all of Qt 6.3 using the said compiler, but I cannot get past the configuration stage, specifically, not past the generation of build system files by CMake, with an error message stating that the "OpenGL functionality tests failed":ERROR: The OpenGL functionality tests failed! You might need to modify the OpenGL package search path by setting the OpenGL_DIR CMake variable to the OpenGL library's installation directory.
This is my command line:
PATH=$PATH:/home/ben/Downloads/musl-cross-make/output/bin ../configure -bundled-xcb-xinput -opensource -confirm-license -nomake tests -nomake examples -static -prefix "/opt/Qt-6.3-static-gcc64-linux/" -- -DCMAKE_CXX_COMPILER=/home/ben/Downloads/musl-cross-make/output/bin/x86_64-linux-musl-g++ -DCMAKE_CXX_FLAGS_INIT="-static" -DCMAKE_C_COMPILER=/home/ben/Downloads/musl-cross-make/output/bin/x86_64-linux-musl-gcc -DCMAKE_C_FLAGS_INIT="-static"
I am using Ubuntu 22.04, and have built the compiler using the instructions from this repository: https://github.com/richfelker/musl-cross-make. The compiler tests for CMake all pass successfully.
I've tried deleting the directory, re-cloning, trying to build in a separate directory, but to no success. I've also looked into the cmake scripts, but I cannot understand how package or dependancy resolution works.
I've already installed the prerequisites through packages for Ubuntu, what can I do to ensure that the OpenGL package is found? Have I missed something with one of the scripts?
Here's my full console output from configure: https://gist.github.com/ben-cottrell-nz/349b313cc5bc01d9d536bbba3889eb06
-
@ben-cottrell You should check the config.log file - it should give you more information about the issue (probably something is missing).