Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How can I configure QT source code if it can't detect default installed OpenGl ES?



  • Hi,
    I'm trying to install QT from source on Ubuntu 20.10, but I always get:
    OpenVG ................................. no
    OpenGL:
    Desktop OpenGL ....................... no
    OpenGL ES 2.0 ........................ no
    OpenGL ES 3.0 ........................ no
    OpenGL ES 3.1 ........................ no
    OpenGL ES 3.2 ........................ no
    Vulkan ................................. no

    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.

    What can I do? I followed the instructions found here: https://wiki.qt.io/Building_Qt_5_from_Git, and https://doc.qt.io/qt-5/configure-options.html


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Did you install the corresponding development packages on your system ?



  • @SGaist, yes I did.


  • Lifetime Qt Champion

    Since everything related to OpenGL are marked as no, it means that the detection have all failed. You should check the logs to see what exactly happened.



  • @SGaist, Error log:
    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 ...
      header entry 'config.qtbase_gui.libraries.opengl.headers.0' passed condition.
      GL/gl.h not found in [] and global paths.
      => source produced no result.
      test config.qtbase_gui.libraries.opengl FAILED
      loaded result for library config.qtbase_gui.libraries.opengl_es2
      Trying source 0 (type pkgConfig) of library opengl_es2 ...
    • /usr/bin/pkg-config --exists --silence-errors glesv2
      pkg-config did not find package.
      => source produced no result.
      Trying source 1 (type makeSpec) of library opengl_es2 ...
      header entry 'config.qtbase_gui.libraries.opengl_es2.headers.0' passed condition.
      GLES2/gl2.h not found in [] and global paths.
      => source produced no result.
      test config.qtbase_gui.libraries.opengl_es2 FAILED
      loaded result for library config.qtbase_gui.libraries.drm
      Trying source 0 (type pkgConfig) of library drm ...
    • /usr/bin/pkg-config --exists --silence-errors libdrm
      pkg-config did not find package.
      => source produced no result.
      Trying source 1 (type inline) of library drm ...
      xf86drmMode.h not found in [] and global paths.
      xf86drm.h not found in [] and global paths.
      => source produced no result.
      Trying source 2 (type inline) of library drm ...
      => source failed condition 'config.integrity'.
      test config.qtbase_gui.libraries.drm FAILED
      loaded result for library config.qtbase_gui.libraries.openvg
      Trying source 0 (type pkgConfig) of library openvg ...
    • /usr/bin/pkg-config --exists --silence-errors vg
      pkg-config did not find package.
      => source produced no result.
      Trying source 1 (type makeSpec) of library openvg ...
      VG/openvg.h not found in [] and global paths.
      => source produced no result.
      test config.qtbase_gui.libraries.openvg FAILED

  • Lifetime Qt Champion

    What exact packages did you install for OpenGL development ?



  • @SGaist,
    libgl-dev, freeglut3-dev, mesa-common-dev and another related. Ubuntu build-essential package too...


  • Lifetime Qt Champion

    Did you restart the build from a clean state after you installed the development packages ?



  • How do I do that? I'm new in C++, I came from Java. The "clean state" thing... But did some tests, openGL works well for me in the terminal...


  • Lifetime Qt Champion

    Use an out of source build and nuke it if something goes wrong.

    By the way, why are you trying to build from sources ? You can either use the version provided with your distribution or the pre-built version provided by the Qt Company.



  • The one provided by my distro is outdated, very outdated. I downloaded the "offline installer" because there are times I'm without internet.


  • Lifetime Qt Champion

    The offline installer already provides you with a pre-built Qt.



  • How do I activate it? In tutorial they where explaining how to build from source only... From what I remember. I kinda read the readme file... And the instruction in readme file is:

    ./configure -prefix $PWD/qtbase <license> -nomake tests
        make -j 4
    

  • Lifetime Qt Champion

    Did you actually ran the offline installer ?



  • There is no runnable binary, for what I can see. Or I don't know the name... There are many modules here.


  • Lifetime Qt Champion

    @UltraBurstXD The offline installer is just one file. But offline installers are not available anymore for open source users (without commercial license). So, what exactly did you download?




  • Lifetime Qt Champion

    @UltraBurstXD As I said: offline installer is just one file. Make it executable (chmod u+x OFFLINE_INSTALLER_FILE) and execute it. No need to build anything.



  • @jsulm I don't know name of offline installer... It's my first time using qt... perhaps should I specify qt modules path to qt creator? And configure the environment variables?


  • Lifetime Qt Champion

    @UltraBurstXD Lets do one step after another: you downloaded the offline installer, is that correct? Like http://download.qt.io/official_releases/qt/5.12/5.12.10/qt-opensource-linux-x64-5.12.10.run



  • Yes, I did and extracted the files to home. As seen:Screenshot from 2020-12-15 10-16-28.png

    The archive name is qt-everywhere-src-5.15.2.tar.xz


  • Lifetime Qt Champion

    @UltraBurstXD You did NOT download the offline installer, you downloaded the source code. Can you please post the exact file name you downloaded?



  • It turns out I downloaded Qt 5.15.x Source Packages... My internet data plan... And it can't configure because of OpenGL.


  • Lifetime Qt Champion

    @UltraBurstXD Didn't you want to install Qt using offline installer as @SGaist suggested? So, what do you want to do now? It is much much easier to install prebuild Qt than to build it by yourself. I suggest you use offline or (better) online installer to install prebuild Qt.


  • Lifetime Qt Champion

    Then lets go from scratch:

    cd /somewhere_NOT_in_Qt_source
    mkdir build_Qt
    cd build_Qt
    /path_to_Qt_sources/configure -nomake tests -nomake examples
    

    What do you get now ?



  • You cannot make a shadow build from a source tree containing a previous build.
    Cannot proceed.
    

  • Lifetime Qt Champion

    I guess you kept the original archive, if so, just nuke the sources and extract them again. Then redo the procedure suggested above.



  • New error:

    Info: creating super cache file /home/USER/build_Qt/.qmake.super
    Info: creating cache file /home/USER/build_Qt/.qmake.cache
    ERROR: Unknown command line option '-nomake'.
    

  • Lifetime Qt Champion

    Please show the exact line you use.



  • Which line?

    ~/qt_source/configure -nomake tests -nomake examples
    

    That one?


  • Lifetime Qt Champion

    Wait, are you building from a git clone or from the source archives ?
    Which version exactly are you trying to build ?



  • macOS and Linux source archives. The version is 5.15.2 LTS. I'm trying to follow the instruction above.


  • Lifetime Qt Champion

    Where did you get the sources ?





  • It doesn't accept any 'configure' options... Tried nearly all, the only it accepts is '-help' so far...


  • Lifetime Qt Champion

    And what does it show you in that case ?



  • ~/build_Qt$ ~/qt_source/configure -help
    + cd qtbase
    + /home/[User_Name]/qt_source/qtbase/configure -top-level -help
    Usage:  configure [options] [assignments]
    
    Configure understands variable assignments like VAR=value on the command line.
    Each uppercased library name (obtainable with -list-libraries) supports the
    suffixes _INCDIR, _LIBDIR, _PREFIX (INCDIR=PREFIX/include, LIBDIR=PREFIX/lib),
    _LIBS, and - on Windows and Darwin - _LIBS_DEBUG and _LIBS_RELEASE. E.g.,
    ICU_PREFIX=/opt/icu42 ICU_LIBS="-licui18n -licuuc -licudata".
    
    It is also possible to manipulate any QMAKE_* variable, to amend the values
    from the mkspec for the build of Qt itself, e.g., QMAKE_CXXFLAGS+=-g3.
    
    Note that the *_LIBS* and QMAKE_* assignments manipulate lists, so items
    containing meta characters (spaces in particular) need to be quoted according
    to qmake rules. On top of that, the assignments as a whole need to be quoted
    according to shell rules. It is recommended to use single quotes for the inner
    quoting and double quotes for the outer quoting.
    
    Top-level installation directories:
      -prefix <dir> ...... The deployment directory, as seen on the target device.
                           [/usr/local/Qt-$QT_VERSION; qtbase build directory if
                           -developer-build]
      -extprefix <dir> ... The installation directory, as seen on the host machine.
                           [SYSROOT/PREFIX]
      -hostprefix [dir] .. The installation directory for build tools running on
                           the host machine. If [dir] is not given, the current
                           build directory will be used. [EXTPREFIX]
      -external-hostbindir <path> ... Path to Qt tools built for this machine.
                           Use this when -platform does not match the current
                           system, i.e., to make a Canadian Cross Build.
    
    Fine tuning of installation directory layout. Note that all directories
    except -sysconfdir should be located under -prefix/-hostprefix:
    
      -bindir <dir> ......... Executables [PREFIX/bin]
      -headerdir <dir> ...... Header files [PREFIX/include]
      -libdir <dir> ......... Libraries [PREFIX/lib]
      -archdatadir <dir> .... Arch-dependent data [PREFIX]
      -plugindir <dir> ...... Plugins [ARCHDATADIR/plugins]
      -libexecdir <dir> ..... Helper programs [ARCHDATADIR/bin on Windows,
                              ARCHDATADIR/libexec otherwise]
      -importdir <dir> ...... QML1 imports [ARCHDATADIR/imports]
      -qmldir <dir> ......... QML2 imports [ARCHDATADIR/qml]
      -datadir <dir> ........ Arch-independent data [PREFIX]
      -docdir <dir> ......... Documentation [DATADIR/doc]
      -translationdir <dir> . Translations [DATADIR/translations]
      -sysconfdir <dir> ..... Settings used by Qt programs [PREFIX/etc/xdg]
      -examplesdir <dir> .... Examples [PREFIX/examples]
      -testsdir <dir> ....... Tests [PREFIX/tests]
    
      -hostbindir <dir> ..... Host executables [HOSTPREFIX/bin]
      -hostlibdir <dir> ..... Host libraries [HOSTPREFIX/lib]
      -hostdatadir <dir> .... Data used by qmake [HOSTPREFIX]
    
    Conventions for the remaining options: When an option's description is
    followed by a list of values in brackets, the interpretation is as follows:
    'yes' represents the bare option; all other values are possible prefixes to
    the option, e.g., -no-gui. Alternatively, the value can be assigned, e.g.,
    --gui=yes. Values are listed in the order they are tried if not specified;
    'auto' is a shorthand for 'yes/no'. Solitary 'yes' and 'no' represent binary
    options without auto-detection.
    
    Configure meta:
    
      -help, -h ............ Display this help screen
      -verbose, -v ......... Print verbose messages during configuration
      -continue ............ Continue configure despite errors
      -redo ................ Re-configure with previously used options.
                             Additional options may be passed, but will not be
                             saved for later use by -redo.
      -recheck [test,...] .. Discard cached negative configure test results.
                             Use this after installing missing dependencies.
                             Alternatively, if tests are specified, only their
                             results are discarded.
      -recheck-all ......... Discard all cached configure test results.
    
      -feature-<feature> ... Enable <feature>
      -no-feature-<feature>  Disable <feature> [none]
      -list-features ....... List available features. Note that some features
                             have dedicated command line options as well.
    
      -list-libraries ...... List possible external dependencies.
    
    Build options:
    
      -opensource .......... Build the Open-Source Edition of Qt
      -commercial .......... Build the Commercial Edition of Qt
      -confirm-license ..... Automatically acknowledge the license
    
      -release ............. Build Qt with debugging turned off [yes]
      -debug ............... Build Qt with debugging turned on [no]
      -debug-and-release ... Build two versions of Qt, with and without
                             debugging turned on [yes] (Apple and Windows only)
      -optimize-debug ...... Enable debug-friendly optimizations in debug builds
                             [auto] (Not supported with MSVC or Clang toolchains)
      -optimize-size ....... Optimize release builds for size instead of speed [no]
      -optimized-tools ..... Build optimized host tools even in debug build [no]
      -force-debug-info .... Create symbol files for release builds [no]
      -separate-debug-info . Split off debug information to separate files [no]
      -gdb-index ........... Index the debug info to speed up GDB
                             [no; auto if -developer-build with debug info]
      -strip ............... Strip release binaries of unneeded symbols [yes]
      -gc-binaries ......... Place each function or data item into its own section
                             and enable linker garbage collection of unused
                             sections. [auto for static builds, otherwise no]
      -force-asserts ....... Enable Q_ASSERT even in release builds [no]
      -developer-build ..... Compile and link Qt for developing Qt itself
                             (exports for auto-tests, extra checks, etc.) [no]
    
      -shared .............. Build shared Qt libraries [yes] (no for UIKit)
      -static .............. Build static Qt libraries [no] (yes for UIKit)
      -framework ........... Build Qt framework bundles [yes] (Apple only)
    
      -platform <target> ... Select host mkspec [detected]
      -xplatform <target> .. Select target mkspec when cross-compiling [PLATFORM]
      -device <name> ....... Cross-compile for device <name>
      -device-option <key=value> ... Add option for the device mkspec
    
      -appstore-compliant .. Disable code that is not allowed in platform app stores.
                             This is on by default for platforms which require distribution
                             through an app store by default, in particular Android,
                             iOS, tvOS, watchOS, and Universal Windows Platform. [auto]
    
      -qtnamespace <name> .. Wrap all Qt library code in 'namespace <name> {...}'.
      -qtlibinfix <infix> .. Rename all libQt5*.so to libQt5*<infix>.so.
      -qtlibinfix-plugins .. Rename Qt plugins according to -qtlibinfix [no]
    
      -testcocoon .......... Instrument with the TestCocoon code coverage tool [no]
      -gcov ................ Instrument with the GCov code coverage tool [no]
    
      -trace [backend] ..... Enable instrumentation with tracepoints.
                             Currently supported backends are 'etw' (Windows) and
                             'lttng' (Linux), or 'yes' for auto-detection. [no]
    
      -sanitize {address|thread|memory|fuzzer-no-link|undefined}
                             Instrument with the specified compiler sanitizer.
                             Note that some sanitizers cannot be combined;
                             for example, -sanitize address cannot be combined with
                             -sanitize thread.
    
      -coverage {trace-pc-guard|source-based}
                             Specify the 'trace-pc-guard' coverage instrumentation for
                             sanitizers or generate instrumented code to collect execution
                             counts and enable code coverage analysis, respectively. (Clang only)
    
      -c++std <edition> .... Select C++ standard <edition> [c++2a/c++17/c++14/c++11]
                             (Not supported with MSVC 2015)
    
      -sse2 ................ Use SSE2 instructions [auto]
      -sse3/-ssse3/-sse4.1/-sse4.2/-avx/-avx2/-avx512
                             Enable use of particular x86 instructions [auto]
                             Enabled ones are still subject to runtime detection.
      -mips_dsp/-mips_dspr2  Use MIPS DSP/rev2 instructions [auto]
    
      -qreal <type> ........ typedef qreal to the specified type. [double]
                             Note: this affects binary compatibility.
    
      -R <string> .......... Add an explicit runtime library path to the Qt
                             libraries. Supports paths relative to LIBDIR.
      -rpath ............... Link Qt libraries and executables using the library
                             install path as a runtime library path. Similar to
                             -R LIBDIR. On Apple platforms, disabling this implies
                             using absolute install names (based in LIBDIR) for
                             dynamic libraries and frameworks. [auto]
    
      -reduce-exports ...... Reduce amount of exported symbols [auto]
      -reduce-relocations .. Reduce amount of relocations [auto] (Unix only)
    
      -plugin-manifests .... Embed manifests into plugins [no] (Windows only)
      -static-runtime ...... With -static, use static runtime [no] (Windows only)
    
      -pch ................. Use precompiled headers [auto]
      -ltcg ................ Use Link Time Code Generation [no]
      -linker [bfd,gold,lld] Force use of the GNU ld, GNU gold or LLVM/LLD linker
                             instead of default one (GCC only)
      -incredibuild-xge .... Use the IncrediBuild XGE [no] (Windows only)
      -ccache .............. Use the ccache compiler cache [no] (Unix only)
      -make-tool <tool> .... Use <tool> to build qmake [nmake] (Windows only)
      -mp .................. Use multiple processors for compilation (MSVC only)
    
      -warnings-are-errors . Treat warnings as errors [no; yes if -developer-build]
      -silent .............. Reduce the build output so that warnings and errors
                             can be seen more easily
    
    Build environment:
    
      -sysroot <dir> ....... Set <dir> as the target sysroot
      -gcc-sysroot ......... With -sysroot, pass --sysroot to the compiler [yes]
    
      -pkg-config .......... Use pkg-config [auto] (Unix only)
    
      -D <string> .......... Pass additional preprocessor define
      -I <string> .......... Pass additional include path
      -L <string> .......... Pass additional library path
      -F <string> .......... Pass additional framework path (Apple only)
    
      -sdk <sdk> ........... Build Qt using Apple provided SDK <sdk>. The argument
                             should be one of the available SDKs as listed by
                             'xcodebuild -showsdks'.
                             Note that the argument applies only to Qt libraries
                             and applications built using the target mkspec - not
                             host tools such as qmake, moc, rcc, etc.
    
      -android-sdk path .... Set Android SDK root path [$ANDROID_SDK_ROOT]
      -android-ndk path .... Set Android NDK root path [$ANDROID_NDK_ROOT]
      -android-ndk-platform  Set Android platform
      -android-ndk-host .... Set Android NDK host (linux-x86, linux-x86_64, etc.)
                             [$ANDROID_NDK_HOST]
      -android-abis .......  Comma separated Android abis, default is:
                             armeabi-v7a,arm64-v8a,x86,x86_64
      -android-javac-target  Set the javac build target version [7]
      -android-javac-source  Set the javac build source version [7]
      -android-style-assets  Automatically extract style assets from the device at
                             run time. This option makes the Android style behave
                             correctly, but also makes the Android platform plugin
                             incompatible with the LGPL2.1. [yes]
    
    Component selection:
    
      -skip <repo> ......... Exclude an entire repository from the build.
      -make <part> ......... Add <part> to the list of parts to be built.
                             Specifying this option clears the default list first.
                             [libs and examples, also tools if not cross-building,
                             also tests if -developer-build]
      -nomake <part> ....... Exclude <part> from the list of parts to be built.
      -compile-examples .... When unset, install only the sources of examples
                             [no on WebAssembly, otherwise yes]
      -gui ................. Build the Qt GUI module and dependencies [yes]
      -widgets ............. Build the Qt Widgets module and dependencies [yes]
      -no-dbus ............. Do not build the Qt D-Bus module
                             [default on Android and Windows]
      -dbus-linked ......... Build Qt D-Bus and link to libdbus-1 [auto]
      -dbus-runtime ........ Build Qt D-Bus and dynamically load libdbus-1 [no]
      -accessibility ....... Enable accessibility support [yes]
                             Note: Disabling accessibility is not recommended.
    
    Qt comes with bundled copies of some 3rd party libraries. These are used
    by default if auto-detection of the respective system library fails.
    
    Core options:
    
      -doubleconversion .... Select used double conversion library [system/qt/no]
                             No implies use of sscanf_l and snprintf_l (imprecise).
      -glib ................ Enable Glib support [no; auto on Unix]
      -eventfd ............. Enable eventfd support
      -inotify ............. Enable inotify support
      -iconv ............... Enable iconv(3) support [posix/sun/gnu/no] (Unix only)
      -icu ................. Enable ICU support [auto]
      -pcre ................ Select used libpcre2 [system/qt/no]
      -pps ................. Enable PPS support [auto] (QNX only)
      -zlib ................ Select used zlib [system/qt]
    
      Logging backends:
        -journald .......... Enable journald support [no] (Unix only)
        -syslog ............ Enable syslog support [no] (Unix only)
        -slog2 ............. Enable slog2 support [auto] (QNX only)
    
    Network options:
    
      -ssl ................. Enable either SSL support method [auto]
      -no-openssl .......... Do not use OpenSSL [default on Apple and WinRT]
      -openssl-linked ...... Use OpenSSL and link to libssl [no]
      -openssl-runtime ..... Use OpenSSL and dynamically load libssl [auto]
      -schannel ............ Use Secure Channel [no] (Windows only)
      -securetransport ..... Use SecureTransport [auto] (Apple only)
    
      -sctp ................ Enable SCTP support [no]
    
      -libproxy ............ Enable use of libproxy [no]
      -system-proxies ...... Use system network proxies by default [yes]
    
    Gui, printing, widget options:
    
      -cups ................ Enable CUPS support [auto] (Unix only)
    
      -fontconfig .......... Enable Fontconfig support [auto] (Unix only)
      -freetype ............ Select used FreeType [system/qt/no]
      -harfbuzz ............ Select used HarfBuzz-NG [system/qt/no]
                             (Not auto-detected on Apple and Windows)
    
      -gtk ................. Enable GTK platform theme support [auto]
    
      -lgmon ............... Enable lgmon support [auto] (QNX only)
    
      -no-opengl ........... Disable OpenGL support
      -opengl <api> ........ Enable OpenGL support. Supported APIs:
                             es2 (default on Windows), desktop (default on Unix),
                             dynamic (Windows only)
      -opengles3 ........... Enable OpenGL ES 3.x support instead of ES 2.x [auto]
      -egl ................. Enable EGL support [auto]
      -angle ............... Use bundled ANGLE to support OpenGL ES 2.0 [auto]
                             (Windows only)
      -combined-angle-lib .. Merge LibEGL and LibGLESv2 into LibANGLE (Windows only)
    
      -qpa <name> .......... Select default QPA backend(s) (e.g., xcb, cocoa, windows)
                             A prioritized list separated by semi-colons.
      -xcb-xlib............. Enable Xcb-Xlib support [auto]
    
      Platform backends:
        -direct2d .......... Enable Direct2D support [auto] (Windows only)
        -directfb .......... Enable DirectFB support [no] (Unix only)
        -eglfs ............. Enable EGLFS support [auto; no on Android and Windows]
        -gbm ............... Enable backends for GBM [auto] (Linux only)
        -kms ............... Enable backends for KMS [auto] (Linux only)
        -linuxfb ........... Enable Linux Framebuffer support [auto] (Linux only)
        -xcb ............... Enable X11 support [auto] (Linux only)
    
      Input backends:
        -libudev............ Enable udev support [auto]
        -evdev ............. Enable evdev support [auto]
        -imf ............... Enable IMF support [auto] (QNX only)
        -libinput .......... Enable libinput support [auto]
        -mtdev ............. Enable mtdev support [auto]
        -tslib ............. Enable tslib support [auto]
        -bundled-xcb-xinput  Use bundled XInput2 support [auto]
        -xkbcommon ......... Enable key mapping support [auto]
    
      Image formats:
        -gif ............... Enable reading support for GIF [auto]
        -ico ............... Enable support for ICO [yes]
        -libpng ............ Select used libpng [system/qt/no]
        -libjpeg ........... Select used libjpeg [system/qt/no]
    
    Database options:
    
      -sql-<driver> ........ Enable SQL <driver> plugin. Supported drivers:
                             db2 ibase mysql oci odbc psql sqlite2 sqlite tds
                             [all auto]
      -sqlite .............. Select used sqlite3 [system/qt]
    
    Qt3D options:
    
      -assimp .............. Select used assimp library [system/qt/no]
      -qt3d-profile-jobs ... Enable jobs profiling [no]
      -qt3d-profile-gl ..... Enable OpenGL profiling [no]
      -qt3d-simd ........... Select level of SIMD support [no/sse2/avx2]
      -qt3d-render ......... Enable the Qt3D Render aspect [yes]
      -qt3d-input .......... Enable the Qt3D Input aspect [yes]
      -qt3d-logic .......... Enable the Qt3D Logic aspect [yes]
      -qt3d-extras ......... Enable the Qt3D Extras aspect [yes]
      -qt3d-animation....... Enable the Qt3D Animation aspect [yes]
    
    Further image format options:
    
      -jasper .............. Enable JPEG-2000 support using the JasPer library [no]
      -mng ................. Enable MNG support [no]
      -tiff ................ Enable TIFF support [system/qt/no]
      -webp ................ Enable WEBP support [system/qt/no]
    
    Multimedia options:
    
      -pulseaudio .......... Enable PulseAudio support [auto] (Unix only)
      -alsa ................ Enable ALSA support [auto] (Unix only)
      -no-gstreamer ........ Disable support for GStreamer
      -gstreamer [version] . Enable GStreamer support [auto]
                             With no parameter, 1.0 is tried first, then 0.10.
      -evr ................. Enables EVR in DirectShow and WMF [auto]
    
    QtQuick3D options:
    
      -assimp .............. Select used assimp library [system/qt/no]
    
    TextToSpeech options:
    
      -flite ............... Enable Flite support [auto] (Unix only)
      -flite-alsa .......... Enable Flite with ALSA support [auto] (Unix only)
      -speechd ............. Enable speech dispatcher support [auto] (Unix only)
    
    WebEngine options:
    
      -webengine-alsa ................ Enable ALSA support [auto] (Linux only)
      -webengine-pulseaudio .......... Enable PulseAudio support [auto]
                                       (Linux only)
      -webengine-embedded-build ...... Enable Linux embedded build [auto]
                                       (Linux only)
      -webengine-icu ................. Use system ICU libraries [system/qt]
                                       (Linux only)
      -webengine-ffmpeg .............. Use system FFmpeg libraries [system/qt]
                                       (Linux only)
      -webengine-opus ................ Use system Opus libraries [system/qt]
                                       (Linux only)
      -webengine-webp ................ Use system WebP libraries [system/qt]
                                       (Linux only)
      -webengine-pepper-plugins ...... Enable use of Pepper Flash and Widevine
                                       plugins [auto]
      -webengine-printing-and-pdf .... Enable use of printing and output to PDF
                                       [auto]
      -webengine-proprietary-codecs .. Enable support for proprietary codecs [no]
      -webengine-spellchecker ........ Enable support for spellchecker [yes]
      -webengine-native-spellchecker . Enable support for native spellchecker [no]
                                       (macOS only)
      -webengine-webrtc .............. Enable support for WebRTC [auto]
    

    When I try one, like '-nomake test' it throws Unknown command line option error.


  • Lifetime Qt Champion

    So it's working fine and "-nomake" is listed as well.

    So, if you call the just configure from a new empty folder outside of Qt sources, what do you get ?



  • Wow, now it strangely worked... Now I'm getting:

    Note: Also available for Linux: linux-clang linux-icc
    
    Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.
    
    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
    
    Note: The following modules are not being compiled in this configuration:
        webenginecore
        webengine
        webenginewidgets
        pdf
        pdfwidgets
    
    WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation.
    
    Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm installation.
    On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution.
    On macOS, you can use Homebrew's llvm package.
    On Windows, you must set LLVM_INSTALL_DIR to the installation path.
    
    WARNING: Python version 2 (2.7.5 or later) is required to build QtWebengine.
    
    WARNING: Python version 2 (2.7.5 or later) is required to build QtPdf.
    
    WARNING: QtWebEngine will not be built.
    
    WARNING: QtPdf will not be built.
    
    Qt is now configured for building. Just run 'gmake'.
    Once everything is built, you must run 'gmake install'.
    Qt will be installed into '/usr/local/Qt-5.15.2'.
    
    Prior to reconfiguration, make sure you remove any leftovers from
    the previous build.
    

    Do I need LLVM for this?


  • Lifetime Qt Champion

    Well, it depends on your needs. If you need any of the modules depending on it then yes. Note that you should build only what you need. That will save you time and space.


Log in to reply