Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Building the Qt Framework with x86_64-linux-musl-g++

Building the Qt Framework with x86_64-linux-musl-g++

Scheduled Pinned Locked Moved Unsolved Qt 6
6.3.0 alphalinuxcmakegit
2 Posts 2 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    ben.cottrell
    wrote on 24 Jun 2022, 06:50 last edited by ben.cottrell
    #1

    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

    J 1 Reply Last reply 24 Jun 2022, 07:01
    0
    • B ben.cottrell
      24 Jun 2022, 06:50

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Jun 2022, 07:01 last edited by
      #2

      @ben-cottrell You should check the config.log file - it should give you more information about the issue (probably something is missing).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      24 Jun 2022, 06:50

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved