Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. pkg-config use disabled globally
Forum Updated to NodeBB v4.3 + New Features

pkg-config use disabled globally

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
1 Posts 1 Posters 683 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.
  • I Offline
    I Offline
    Iyaps
    wrote on last edited by
    #1

    Hi All,

    Currently I am cross-compiling the Qt into aarch64 system.
    OS: Ubuntu 20.04
    Qt version: 5.15.2

    I have followed the below steps.

    1. petalinux-build --sdk
    2. petalinux-package --sysroot
    3. Download qt-everywhere-src-5.15.2.tar.xz and extracted into a folder called ZYNQ_QT_INSTALL.
    4. Executed below export commands.
      $ export CROSS_COMPILE=/home/<username>/ZYNQ_QT_INSTALL/Qtbuild/qt-everywhere-src-5.15.2/qtbase/mkspecs/linux-aarch64-gnu-g++
      $ export ZYNQ_QT_BUILD=/home/<username>/ZYNQ_QT_INSTALL/Qtbuild
      $ export ZYNQ_QT_INSTALL=/home/<username>/ZYNQ_QT_INSTALL/Qtinstall
      $ export PATH=$ZYNQ_QT_INSTALL/bin:$PATH
    5. $ cd ZYNQ_QT_INSTALL/Qtbuild/qt-everywhere-src-5.15.2/
    6. ./configure -xplatform linux-aarch64-gnu-g++ -opensource -release -opengl es2 -confirm-license -nomake examples -sysroot /home/quest/crashavoidance/zcu104/crashavoidance/images/linux/sdk/sysroots/cortexa72-cortexa53-xilinx-linux -skip qtwebchannel -skip qtactiveqt -skip qtandroidextras -skip qtdeclarative -skip qtimageformats -skip qtmacextras -skip qtserialport -skip qtx11extras -skip qtxmlpatterns -skip qtconnectivity -skip qtdoc -skip qtgraphicaleffects -skip qtlocation -skip qtmultimedia -skip qtsensors -skip qttools -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwinextras -verbose -no-gif -no-libjpeg -no-mtdev -no-sql-db2 -no-sql-ibase -no-sql-mysql -no-sql-sqlite -qt-freetype -no-fontconfig -no-harfbuzz -no-cups -no-iconv -no-icu -no-eglfs -no-openssl -strip -hostprefix $ZYNQ_QT_INSTALL -extprefix $ZYNQ_QT_INSTALL/Qt5

    At this step I am getting following errors.
    Error 1:

    main.cpp:(.text.startup+0x10): undefined reference to dlopen' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: main.cpp:(.text.startup+0x14): undefined reference to dlclose'
    /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: main.cpp:(.text.startup+0x20): undefined reference to dlsym' /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: main.cpp:(.text.startup+0x24): undefined reference to dlerror'
    collect2: error: ld returned 1 exit status
    make: *** [Makefile:67: libdl] Error 1
    => source failed verification.

    Error 2:

    main.cpp:7:8: error: #error Intel CET not available
    7 | # error Intel CET not available
    | ^~~~~
    make: *** [Makefile:167: main.o] Error 1

    Error 3:

    main.cpp:3:4: error: #error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129).
    3 | # error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129).
    | ^~~~~
    make: *** [Makefile:187: main.o] Error 1

    Error 4:

    main.cpp:2:10: fatal error: zstd.h: No such file or directory
    2 | #include <zstd.h>
    | ^~~~~~~~
    compilation terminated.
    make: *** [Makefile:167: main.o] Error 1

    Error 5:

    main.cpp:8:12: fatal error: gssapi/gssapi.h: No such file or directory
    8 | # include <gssapi/gssapi.h>
    | ^~~~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 6:

    main.cpp:2:10: fatal error: sybfront.h: No such file or directory
    2 | #include <sybfront.h>
    | ^~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 7:

    /home/quest/CrashAvoidance/Reference/Qt/Qtbuild/qt-everywhere-src-5.15.2/qtgamepad/config.tests/sdl/main.cpp:37:10: fatal error: SDL.h: No such file or directory
    37 | #include <SDL.h>
    | ^~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 8:

    /home/quest/CrashAvoidance/Reference/Qt/Qtbuild/qt-everywhere-src-5.15.2/qt3d/config.tests/fbx/main.cpp:29:10: fatal error: fbxsdk.h: No such file or directory
    29 | #include <fbxsdk.h>
    | ^~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 9:

    main.cpp:2:10: fatal error: flite/flite.h: No such file or directory
    2 | #include <flite/flite.h>
    | ^~~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 10:

    main.cpp:2:10: fatal error: libspeechd.h: No such file or directory
    2 | #include <libspeechd.h>
    | ^~~~~~~~~~~~~~
    compilation terminated.
    make: *** [Makefile:169: main.o] Error 1

    Error 11:

    Note: The following modules are not being compiled in this configuration:
    3dcore
    3drender

    ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' 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.

    While analysing the log i got below informations:
    1. pkg-config use disabled globally. (Having doubt whether this is causing the issues)
    => source produced no result.

    This is the configuration listed after getting error:
    Configuration: cross_compile compile_examples enable_new_dtags largefile neon precompile_header shared shared rpath release c++11 c++14 c++17 c++1z concurrent dbus no-pkg-config reduce_exports stl
    Build options:
    Mode ................................... release
    Optimize release build for size ........ no
    Building shared libraries .............. yes
    Using C standard ....................... C11
    Using C++ standard ..................... C++17
    Using ccache ........................... no
    Using new DTAGS ........................ yes
    Relocatable ............................ yes
    Using precompiled headers .............. yes
    Using LTCG ............................. no
    Target compiler supports:
    NEON ................................. yes
    Build parts ............................ libs
    Qt modules and options:
    Qt Concurrent .......................... yes
    Qt D-Bus ............................... yes
    Qt D-Bus directly linked to libdbus .... no
    Qt Gui ................................. yes
    Qt Network ............................. yes
    Qt Sql ................................. yes
    Qt Testlib ............................. yes
    Qt Widgets ............................. yes
    Qt Xml ................................. yes
    Support enabled for:
    Using pkg-config ....................... no
    udev ................................... no
    Using system zlib ...................... no
    Zstandard support ...................... no
    Qt Core:
    DoubleConversion ....................... yes
    Using system DoubleConversion ........ no
    GLib ................................... no
    iconv .................................. no
    ICU .................................... no
    Built-in copy of the MIME database ..... yes
    Tracing backend ........................ <none>
    Logging backends:
    journald ............................. no
    syslog ............................... no
    slog2 ................................ no
    PCRE2 .................................. yes
    Using system PCRE2 ................... no
    Qt Network:
    getifaddrs() ........................... yes
    IPv6 ifname ............................ yes
    libproxy ............................... no
    Linux AF_NETLINK ....................... yes
    OpenSSL ................................ no
    Qt directly linked to OpenSSL ........ no
    OpenSSL 1.1 ............................ no
    DTLS ................................... no
    OCSP-stapling .......................... no
    SCTP ................................... no
    Use system proxies ..................... yes
    GSSAPI ................................. no
    Qt Gui:
    Accessibility .......................... yes
    FreeType ............................... yes
    Using system FreeType ................ no
    HarfBuzz ............................... no
    Using system HarfBuzz ................ no
    Fontconfig ............................. no
    Image formats:
    GIF .................................. no
    ICO .................................. yes
    JPEG ................................. no
    Using system libjpeg ............... no
    PNG .................................. yes
    Using system libpng ................ no
    Text formats:
    HtmlParser ........................... yes
    CssParser ............................ yes
    OdfWriter ............................ yes
    MarkdownReader ....................... yes
    Using system libmd4c ............... no
    MarkdownWriter ....................... yes
    EGL .................................... no
    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
    Session Management ..................... yes
    Features used by QPA backends:
    evdev .................................. yes
    libinput ............................... no
    INTEGRITY HID .......................... no
    mtdev .................................. no
    tslib .................................. no
    xkbcommon .............................. no
    X11 specific:
    XLib ................................. no
    XCB Xlib ............................. no
    EGL on X11 ........................... no
    xkbcommon-x11 ........................ no
    QPA backends:
    DirectFB ............................... no
    EGLFS .................................. no
    LinuxFB ................................ yes
    VNC .................................... yes
    Qt Sql:
    SQL item models ........................ yes
    Qt Widgets:
    GTK+ ................................... no
    Styles ................................. Fusion Windows
    Qt PrintSupport:
    CUPS ................................... no
    Qt Sql Drivers:
    DB2 (IBM) .............................. no
    InterBase .............................. no
    MySql .................................. no
    OCI (Oracle) ........................... no
    ODBC ................................... no
    PostgreSQL ............................. no
    SQLite2 ................................ no
    SQLite ................................. no
    Using system provided SQLite ......... no
    TDS (Sybase) ........................... no
    Qt Testlib:
    Tester for item models ................. yes
    Qt SerialBus:
    Socket CAN ............................. yes
    Socket CAN FD .......................... yes
    SerialPort Support ..................... no
    Qt Gamepad:
    SDL2 ................................... no
    Qt 3D GeometryLoaders:
    Autodesk FBX ........................... no
    Qt TextToSpeech:
    Flite .................................. no
    Flite with ALSA ........................ no
    Speech Dispatcher ...................... no

    Note: Also available for Linux: linux-clang linux-icc

    Note: The following modules are not being compiled in this configuration:
    3dcore
    3drender

    ERROR: Feature 'opengles2' was enabled, but the pre-condition '(config.win32 && !features.opengl-dynamic) || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' 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.

    I am suspecting that due to pkg-config disabled globally it is not working. But I don't have any idea how to enable to pkg-config for build.
    I am new to this Qt and Linux.
    Hope someone will help me to resolve this problem.

    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