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

qtdeclarative qml.pro Project ERROR: Library 'libdl' is not defined. xilinx



  • i am trying to build the qt-everwhere. the tool chain is working well as the build is successful until the fail. the configuration i us:
    ./configure
    -confirm-license
    -opensource
    -nomake examples
    -nomake tests
    -xplatform aarch64-xilinx-linux-g++
    -platform linux-g++
    -sysroot $SDKTARGETSYSROOT
    -hostprefix build/
    -reduce-exports
    -no-opengl
    -no-openssl

    i created an mkspecs [aarch64-xilinx-linux-g++] with qmake.conf
    MAKEFILE_GENERATOR = UNIX
    CONFIG += incremental
    QMAKE_INCREMENTAL_STYLE = sublib

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    modifications to g++.conf

    QMAKE_CC = aarch64-xilinx-linux-gcc
    QMAKE_CXX = aarch64-xilinx-linux-g++
    QMAKE_LINK = aarch64-xilinx-linux-g++
    QMAKE_LINK_SHLIB = aarch64-xilinx-linux-g++

    modifications to linux.conf

    QMAKE_AR = aarch64-xilinx-linux-ar cqs
    QMAKE_OBJCOPY = aarch64-xilinx-linux-objcopy
    QMAKE_NM = aarch64-xilinx-linux-nm -P
    QMAKE_STRIP = aarch64-xilinx-linux-strip
    load(qt_config)

    in the toolchain the libdl is locatated in /usr/lib

    is there something i am missing?
    thanks

    Re: [QT 5.12.4](qtdeclarative qml.pro Project ERROR: Library 'libdl' is not defined. linux-beagleboard-g++)


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Do you have that library for your target ?



  • if i am not mistaken i have the library for the build. i have it in the build path and in the sysroot path. one is a file for x86 and the other is arm64. i tried adding to the qmake.cong the QMAKE_LIBS_LIBDL = <path to libdl.so> for both and still i get the same results.
    thanks for the help


  • Lifetime Qt Champion

    Did you check the test logs of the module to see what is happening ?



  • good morning
    i am not sure where the test logs files are located but when i build with verbose i see

    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:14: evaluating test function "defined"
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:14: calling built-in defined(QMAKE_LIBS_LIBDL, var)
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:14: test function returned false
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:14: AND
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:14: evaluating test function "error"
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: calling built-in $$replace(nu, _, -)
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: calling built-in $$lower(LIBDL)
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: calling built-in error("Library 'libdl' is not defined.")
    Project ERROR: Library 'libdl' is not defined.
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: aborting block, function status: error
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: done looping
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: aborting block, status: error
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: done looping
    qt-5.12.4/qt-everywhere-src-5.12.4/qtbase/mkspecs/features/qmake_use.prf:15: aborting block, status: error


  • Lifetime Qt Champion

    @rangg said in qtdeclarative qml.pro Project ERROR: Library &#x27;libdl&#x27; is not defined. xilinx:

    i am not sure where the test logs files are located

    in the directory where you called configure


Log in to reply