Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Configure failing due to OpenSSL and OpenGL errors
Forum Updated to NodeBB v4.3 + New Features

Configure failing due to OpenSSL and OpenGL errors

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 2 Posters 781 Views 1 Watching
  • 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.
  • D Offline
    D Offline
    Dharmik.Mehta
    wrote on last edited by
    #1

    I am trying to run the configure script using the following options
    qt-everywhere-src-5.15.0/qtbase/configure -top-level -prefix /mnt/drivers -device-option PLATFORM_DIR=5.15.0/platform -verbose -static -no-use-gold-linker -no-sse2 -no -sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2 -no-linuxfb -no-xcb -system-sqlite -no-sql- db2 -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-sql-ibase -no-kms -no-reduce-relocatio ns -no-cups -no-iconv -no-dbus -no-glib -no-widgets -nomake tools -nomake examples -nomake tests -skip qtactiveqt -skip qtandr oidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtscript -skip qtsensors -skip qtserialpor t -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -openssl -no-gtk -skip qtmultimedia -no-feature-clipboard -no-featur e-concurrent -no-feature-cssparser -no-feature-draganddrop -no-feature-effects -no-feature-sessionmanager -no-feature-sharedme mory -no-feature-systemsemaphore -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-xmlstreamwriter -no-feature- dom -no-feature-filesystemwatcher -no-feature-process -no-feature-buttongroup -no-feature-calendarwidget -no-feature-combobox -no-feature-contextmenu -no-feature-datetimeedit -no-feature-dial -no-feature-dockwidget -no-feature-fontcombobox -no-feature- graphicseffect -no-feature-graphicsview -no-feature-groupbox -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-lin eedit -no-feature-listwidget -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-printpreviewwidget -no-fe ature-progressbar -no-feature-resizehandler -no-feature-rubberband -no-feature-scrollarea -no-feature-scrollbar -no-feature-si zegrip -no-feature-slider -no-feature-spinbox -no-feature-splashscreen -no-feature-splitter -no-feature-stackedwidget -no-feat ure-statusbar -no-feature-statustip -no-feature-syntaxhighlighter -no-feature-tabbar -no-feature-tablewidget -no-feature-tabwi dget -no-feature-textbrowser -no-feature-textedit -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-t ooltip -no-feature-treewidget -no-feature-whatsthis -no-feature-colordialog -no-feature-errormessage -no-feature-filedialog -n o-feature-fontdialog -no-feature-inputdialog -no-feature-messagebox -no-feature-printdialog -no-feature-printpreviewdialog -no -feature-progressdialog -no-feature-wizard -no-feature-columnview -no-feature-datawidgetmapper -no-feature-dirmodel -no-featur e-identityproxymodel -no-feature-itemviews -no-feature-listview -no-feature-proxymodel -no-feature-sortfilterproxymodel -no-fe ature-standarditemmodel -no-feature-stringlistmodel -no-feature-tableview -no-feature-treeview -no-feature-style-stylesheet -n o-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imag eformat_xbm -no-feature-imageformat_xpm -DQT_NO_SVGGENERATOR -no-feature-cups -no-feature-pdf -no-feature-picture -no-feature- printer -no-feature-big_codecs -no-feature-codecs -no-feature-iconv -no-feature-bearermanagement -no-feature-ftp -no-feature-u dpsocket -no-feature-completer -no-feature-desktopservices -no-feature-fscompleter -no-feature-gestures -no-feature-systemtray icon -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-dbus -xplatform devi ces/linux-arm-broadcom-g++ -device-option COMPILE_OPTIMIZATION=-Os -device-option PLATFORM_OPENGL_LIBS=-lFakeOpenGL -no-egl -skip qtgraphicaleffects -directfb -qpa directfb -commercial -confirm-license

    Below are the last few lines of the output.

    Note: Also available for Linux: linux-clang linux-icc
    Note: Using static linking will disable the use of dynamically
    loaded plugins. Make sure to import all needed static plugins,
    or compile needed modules into the library.

    Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

    Note: The following modules are not being compiled in this configuration:
    3dcore
    3drender
    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 do

    Either ensure that llvm-config is in your PATH environment variable, or set LLVM_INSTALL_DIR to the location of your llvm inst
    On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on y
    On macOS, you can use Homebrew's llvm package.
    On Windows, you must set LLVM_INSTALL_DIR to the installation path.

    *WARNING: QtWebEngine requires QtGui.

    WARNING: QtWebEngine will not be built.

    WARNING: QtPdf will not be built.

    ERROR: Feature 'openssl-runtime' was enabled, but the pre-condition '!features.securetransport && !features.schannel && libs.o

    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.
    Makefile:212: recipe for target 'build/COPROC_V1/5.15.0/.configured-stamp' failed
    make: *** [build/COPROC_V1/5.15.0/.configured-stamp] Error 3

    I can't figure out what is going on with the OpenSSL and OpenGL errors. Can someone please help me with the OpenSSL and OpenGL errors that I am seeing?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dharmik.Mehta
      wrote on last edited by
      #2

      I ran configure with the -v option and here is what prints for the OpenSSL and OpenGL errors

      OPENSSL
      Checking for OpenSSL Headers...
      Trying source 0 (type inline) of library openssl_headers ...
      openssl/ssl.h not found in [] and global paths.
      openssl/opensslv.h not found in [] and global paths.
      => source produced no result.
      test config.qtbase_network.libraries.openssl_headers FAILED
      Trying source 0 (type makeSpec) of library network ...
      => source accepted.

      OPENGL
      Checking for Desktop OpenGL...
      Trying source 0 (type pkgConfig) of library opengl ...

      • PKG_CONFIG_SYSROOT_DIR=/vobs/vendor/digia/qt/build/COPROC_V1/5.15.0/platform PKG_CONFIG_LIBDIR=/vobs/vendor/digia/qt/build/Cerrors 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 [/vobs/vendor/digia/qt/build/COPROC_V1/5.15.0/platform/include] and global paths.
        => source produced no result.
        test config.qtbase_gui.libraries.opengl FAILED
        Checking for OpenGL ES 2.0...
        Trying source 0 (type pkgConfig) of library opengl_es2 ...
      • PKG_CONFIG_SYSROOT_DIR=/vobs/vendor/digia/qt/build/COPROC_V1/5.15.0/platform PKG_CONFIG_LIBDIR=/vobs/vendor/digia/qt/build/Cerrors 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
      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        Do you have the required libraries in your sysroot ? From the correct version ?

        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
        • D Offline
          D Offline
          Dharmik.Mehta
          wrote on last edited by
          #4

          I think I do. How do I verify that?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dharmik.Mehta
            wrote on last edited by
            #5

            I pass in the above values with the configure script.

            PKG_CONFIG_SYSROOT_DIR=5.15.0/platform PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR=5.15.0/platform/lib/pkgconfig PKG_CONFIG_PATH=5.15.0/platform/lib/pkgconfig PKG_CONFIG="/opensource/packages/WORK/tools/bin/pkg-config"

            And, I have a directory named "openssl" within 5.15.0/platform/include/ and that directory has a bunch of header files.

            Similarly, for OpenGL, I have a directory named "GLES2" within 5.15.10/platform/include and that directory has three header files.

            Is that enough? Or am I missing something?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              As I already wrote, you do not provide the needed libraries in your sysroot.

              The sysroot is usually a copy of your target device filesystem loaded with the development packages of the dependencies coming from the distribution your run on said target.

              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
              • D Offline
                D Offline
                Dharmik.Mehta
                wrote on last edited by
                #7

                @SGaist Are you suggesting that I remove the libraries from sysroot? Or add them?

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Since they are not there, add them.

                  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
                  • D Offline
                    D Offline
                    Dharmik.Mehta
                    wrote on last edited by Dharmik.Mehta
                    #9

                    Was able to resolve both the errors by adding these two options (in bold) in my configure script. Thanks @SGaist

                    qt-everywhere-src-5.15.0/qtbase/configure -top-level -prefix /mnt/drivers -device-option PLATFORM_DIR=5.15.0/platform -I 5.15.0/platform/include -L 5.15.0/platform/lib -verbose -static -no-use-gold-linker -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-avx2 -no-mips_dsp -no-mips_dspr2 -no-linuxfb -no-xcb -system-sqlite -no-sql-db2 -no-sql-mysql -no-sql-oci -no-sql-odbc -no-sql-psql -no-sql-sqlite2 -no-sql-tds -no-sql-ibase -no-kms -no-reduce-relocations -no-cups -no-iconv -no-dbus -no-glib -no-widgets -nomake tools -nomake examples -nomake tests -skip qtactiveqt -skip qtandroidextras -skip qtconnectivity -skip qtdoc -skip qtlocation -skip qtmacextras -skip qtscript -skip qtsensors -skip qtserialport -skip qtwinextras -skip qtx11extras -skip qtxmlpatterns -openssl -no-gtk -skip qtmultimedia -no-feature-clipboard -no-feature-concurrent -no-feature-cssparser -no-feature-draganddrop -no-feature-effects -no-feature-sessionmanager -no-feature-sharedmemory -no-feature-systemsemaphore -no-feature-texthtmlparser -no-feature-textodfwriter -no-feature-xmlstreamwriter -no-feature-dom -no-feature-filesystemwatcher -no-feature-process -no-feature-buttongroup -no-feature-calendarwidget -no-feature-combobox -no-feature-contextmenu -no-feature-datetimeedit -no-feature-dial -no-feature-dockwidget -no-feature-fontcombobox -no-feature-graphicseffect -no-feature-graphicsview -no-feature-groupbox -no-feature-keysequenceedit -no-feature-lcdnumber -no-feature-lineedit -no-feature-listwidget -no-feature-mainwindow -no-feature-mdiarea -no-feature-menu -no-feature-printpreviewwidget -no-feature-progressbar -no-feature-resizehandler -no-feature-rubberband -no-feature-scrollarea -no-feature-scrollbar -no-feature-sizegrip -no-feature-slider -no-feature-spinbox -no-feature-splashscreen -no-feature-splitter -no-feature-stackedwidget -no-feature-statusbar -no-feature-statustip -no-feature-syntaxhighlighter -no-feature-tabbar -no-feature-tablewidget -no-feature-tabwidget -no-feature-textbrowser -no-feature-textedit -no-feature-toolbar -no-feature-toolbox -no-feature-toolbutton -no-feature-tooltip -no-feature-treewidget -no-feature-whatsthis -no-feature-colordialog -no-feature-errormessage -no-feature-filedialog -no-feature-fontdialog -no-feature-inputdialog -no-feature-messagebox -no-feature-printdialog -no-feature-printpreviewdialog -no-feature-progressdialog -no-feature-wizard -no-feature-columnview -no-feature-datawidgetmapper -no-feature-dirmodel -no-feature-identityproxymodel -no-feature-itemviews -no-feature-listview -no-feature-proxymodel -no-feature-sortfilterproxymodel -no-feature-standarditemmodel -no-feature-stringlistmodel -no-feature-tableview -no-feature-treeview -no-feature-style-stylesheet -no-feature-image_heuristic_mask -no-feature-image_text -no-feature-imageformat_bmp -no-feature-imageformat_ppm -no-feature-imageformat_xbm -no-feature-imageformat_xpm -DQT_NO_SVGGENERATOR -no-feature-cups -no-feature-pdf -no-feature-picture -no-feature-printer -no-feature-big_codecs -no-feature-codecs -no-feature-iconv -no-feature-bearermanagement -no-feature-ftp -no-feature-udpsocket -no-feature-completer -no-feature-desktopservices -no-feature-fscompleter -no-feature-gestures -no-feature-systemtrayicon -no-feature-undocommand -no-feature-undogroup -no-feature-undostack -no-feature-undoview -no-feature-dbus -xplatform devices/linux-arm-broadcom-g++ -device-option COMPILE_OPTIMIZATION=-Os -device-option PLATFORM_OPENGL_LIBS=-lFakeOpenGL -no-egl -skip qtgraphicaleffects -directfb -qpa directfb -commercial -confirm-license

                    1 Reply Last reply
                    1

                    • Login

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