Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Sysroot in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Sysroot in Qt Creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 3.7k 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.
  • B Offline
    B Offline
    bludger
    wrote on last edited by
    #1

    Hi All,

    After succesfully building Qt 5.12.3 for ARM64 I stumbled upon an issue in Qt Creator regarding the sysroot option for kit configurations. Currently I'm trying to cross compile my Qt application against arm64 using the configured kit. At the moment the linker is not able to link against some packages in the sysroot (which are there). I think this may be an issue with Qt Creator / qmake but I'm not sure entirely.

    Within my kit's configuration I've set the sysroot to a mount point where my image is located, for instance: /mnt/device. When I start compilation I note that the passed --sysroot parameter to the cross compiler is empty:

    aarch64-linux-gnu-g++ --sysroot= -Wl,-rpath,/mnt/device/usr/local/Qt-5.12.3/lib -Wl,-rpath-link,/lib/aarch64-linux-gnu -Wl,-rpath-link,/usr/lib/aarch64-linux-gnu
    

    Can someone explain why it is empty and may help me to get the things right?

    jsulmJ 1 Reply Last reply
    1
    • B bludger

      Hi All,

      After succesfully building Qt 5.12.3 for ARM64 I stumbled upon an issue in Qt Creator regarding the sysroot option for kit configurations. Currently I'm trying to cross compile my Qt application against arm64 using the configured kit. At the moment the linker is not able to link against some packages in the sysroot (which are there). I think this may be an issue with Qt Creator / qmake but I'm not sure entirely.

      Within my kit's configuration I've set the sysroot to a mount point where my image is located, for instance: /mnt/device. When I start compilation I note that the passed --sysroot parameter to the cross compiler is empty:

      aarch64-linux-gnu-g++ --sysroot= -Wl,-rpath,/mnt/device/usr/local/Qt-5.12.3/lib -Wl,-rpath-link,/lib/aarch64-linux-gnu -Wl,-rpath-link,/usr/lib/aarch64-linux-gnu
      

      Can someone explain why it is empty and may help me to get the things right?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @bludger said in Sysroot in Qt Creator:

      I've set the sysroot to a mount point where my image is located, for instance: /mnt/device

      Can you show how you set it?

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

      B 1 Reply Last reply
      0
      • jsulmJ jsulm

        @bludger said in Sysroot in Qt Creator:

        I've set the sysroot to a mount point where my image is located, for instance: /mnt/device

        Can you show how you set it?

        B Offline
        B Offline
        bludger
        wrote on last edited by
        #3

        @jsulm Yes sure, see attached screenshot:

        0_1561965953397_Screenshot from 2019-07-01 00-23-04.png

        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