Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. qtdeclarative qml.pro Project ERROR: Library 'libdl' is not defined. xilinx

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

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 530 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.
  • R Offline
    R Offline
    rangg
    wrote on last edited by
    #1

    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++)

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

      Hi and welcome to devnet,

      Do you have that library for your 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
      • R Offline
        R Offline
        rangg
        wrote on last edited by
        #3

        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

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

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

          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
          • R Offline
            R Offline
            rangg
            wrote on last edited by
            #5

            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

            jsulmJ 1 Reply Last reply
            0
            • R rangg

              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

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @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

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              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