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. Build Qt 5.14.2 on Ubuntu 18.04
Forum Updated to NodeBB v4.3 + New Features

Build Qt 5.14.2 on Ubuntu 18.04

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 1.7k 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.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    I try to build Qt 5.14.2 on Ubuntu 18.04

    The packages:

    sudo apt install gcc
    sudo apt install build-essential
    sudo apt install freeglut3-dev
    sudo apt install mesa-utils
    sudo apt install mesa-common-dev
    sudo apt libgl1-mesa-dev
    sudo apt libglu1-mesa-dev

    Already installed and upgraded.

    QT configured with:
    ./configure -prefix $PWD/qtbase -opensource -skip qtwebengine -skip qtquickcontrols -skip qtconnectivity -no-icu -skip qtwebglplugin -skip qtlocation -no-sql-odbc -no-sql-sqlite -nomake examples -nomake tests -opengl desktop -platform linux-g++-64

    Nonetheless:
    ERROR: Feature 'opengl-desktop' was enabled, but the pre-condition '(config.win32 && !config.winrt && !features.opengles2 && (config.msvc || libs.opengl))
    || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)' failed.

    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.

    How to fix that?

    1 Reply Last reply
    0
    • N Offline
      N Offline
      nen777w
      wrote on last edited by nen777w
      #2

      Fixed it with:

      #QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64
      QMAKE_LIBDIR_OPENGL = /usr/lib

      in

      /qtbase/mkspecs/linux-g++-64/qmake.conf

      then run

      ./configure -recheck-all

      1 Reply Last reply
      0

      • Login

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