Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Investigating build system errors
Forum Update on Monday, May 27th 2025

Investigating build system errors

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 277 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.
  • S Offline
    S Offline
    SilverCode
    wrote on 25 Feb 2020, 08:30 last edited by
    #1

    When encountering build system errors like the following when running ./configure

    ERROR: The OpenGL functionality tests failed!
    You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
    QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.
    

    Looking in the config.log I see the following

    loaded result for library config.qtbase_gui.libraries.opengl
    Trying source 0 (type pkgConfig) of library opengl ...
    + /usr/bin/pkg-config --exists --silence-errors gl
    pkg-config did not find package.
      => source produced no result.
    Trying source 1 (type makeSpec) of library opengl ...
    None of [libGL.so libGL.a] found in [] and global paths.
      => source produced no result.
    test config.qtbase_gui.libraries.opengl FAILED
    

    If I run the pkg-config check manually as above, the return code is 0, and getting the include and libs folders works

    $ /usr/bin/pkg-config --exists --silence-errors gl
    $ echo $?
    0
    $ pkg-config --libs --cflags gl
    -I/usr/include/libdrm -lGL
    

    So I'm not sure why the configure scripts are failing. I have this problem with other libraries like GStreamer 1.0 as well.

    Where would I look to find the scripts which are testing the result of this output so I can try see why they are failing when the pkg-config command itself is succeeding?

    This is on an Ubuntu 16.04 machine and I'm trying to compile Qt 5.13.0 from git with the command line:

    ~/qt5-build$ ../qt5/configure -opensource -nomake tests -nomake examples -prefix /opt/qt5/5.13.0 -webengine-proprietary-codecs -confirm-license
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 25 Feb 2020, 20:31 last edited by
      #2

      Hi and welcome to devnet,

      Are you targeting your desktop machine ?
      Did you install all the build dependencies ? For example GStreamer development packages ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      25 Feb 2020, 08:30

      • 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