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. Build cross Qt library and use in different Desktop
Forum Updated to NodeBB v4.3 + New Features

Build cross Qt library and use in different Desktop

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 242 Views 2 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.
  • J Offline
    J Offline
    Jignesh Patel
    wrote on last edited by
    #1

    Hi,

    We have successfully cross compile qt for imx6 and installed in my desktop. We can able to successfully cross compile qt application in my laptop.

    Now We want to use same cross library in other desktop but we are facing issue for path that has set at configuration time.
    We have checked path of all qt variable using "qmake -query" it shows my local path so i can not use qt cross lib by simple copy,paste and give permission.

    output of qmake -query:

    $ ./qmake -query
    QT_SYSROOT:
    QT_INSTALL_PREFIX:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib
    QT_INSTALL_ARCHDATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib
    QT_INSTALL_DATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib
    QT_INSTALL_DOCS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/doc
    QT_INSTALL_HEADERS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/include
    QT_INSTALL_LIBS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/lib
    QT_INSTALL_LIBEXECS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/libexec
    QT_INSTALL_BINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/bin
    QT_INSTALL_TESTS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/tests
    QT_INSTALL_PLUGINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/plugins
    QT_INSTALL_IMPORTS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/imports
    QT_INSTALL_QML:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/qml
    QT_INSTALL_TRANSLATIONS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/translations
    QT_INSTALL_CONFIGURATION:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/etc/xdg
    QT_INSTALL_EXAMPLES:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/examples
    QT_INSTALL_DEMOS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/examples
    QT_HOST_PREFIX:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib
    QT_HOST_DATA:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib
    QT_HOST_BINS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/bin
    QT_HOST_LIBS:/media/Myqt_crosslib/Qt-5.7.1-master/SmartCalLib/lib
    QMAKE_SPEC:linux-g++
    QMAKE_XSPEC:devices/linux-imx6-g++
    QMAKE_VERSION:3.0
    QT_VERSION:5.7.1
    

    QT is also use this path lot more in lib folder.

    Is there any way we can compile qt library in one Desktop and able to use in different desktop for cross compiling?

    Thank you,
    Jignesh Patel

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

      Hi,

      You need a more recent version of Qt to make it relocatable.

      You really should consider it, Qt 5.7.1 is more than outdated and not even an LTS release.

      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
      2
      • J Offline
        J Offline
        Jignesh Patel
        wrote on last edited by
        #3

        Thank you for reply @SGaist ,

        we are at a stage and can not change the qt revision.
        I got a solution for another way by copying and past the QT library and toolchain on the same path on all desktops.

        Best Regard,
        Jignesh Patel

        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