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. Issues Cross Compiling 6.4 for RPI Bullseye
Forum Updated to NodeBB v4.3 + New Features

Issues Cross Compiling 6.4 for RPI Bullseye

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

    I'm seeing issues others have reported when trying to cross compile 6.4 for 64 bit Bullseye on an rpi. I'm following these instructions:

    [https://wiki.qt.io/Cross-Compile_Qt_6_for_Raspberry_Pi](link url)

    I didn't see a resolution to issues with openGL, so I'm using -no-opengl in the configure:

    ../qt5/configure -release -no-opengl -DFEATURE_dbus=OFF -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON

    Similarly, there seem to be unresolved issues with dbus, hence the -DFEATURE_dbus=OFF.

    But, I still get what seems to be an issue with dbus:

    /usr/lib/gcc-cross/aarch64-linux-gnu/9/../../../../aarch64-linux-gnu/bin/ld: /home/dave/rpi-sysroot/usr/lib/aarch64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-userdb.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol _dbus_group_info_unref' which may bind externally can not be used when making a shared object; recompile with -fPIC /home/dave/rpi-sysroot/usr/lib/aarch64-linux-gnu/libdbus-1.a(libdbus_1_la-dbus-userdb.o): in function _dbus_user_database_new':
    (.text+0x4e8): dangerous relocation: unsupported relocation
    collect2: error: ld returned 1 exit status

    In the configure output, I see this:
    Qt modules and options:
    Qt Concurrent .......................... yes
    Qt D-Bus ............................... yes
    Qt D-Bus directly linked to libdbus .... yes

    Is -DFEATURE_dbus=OFF not effective in disabling build libdbus? If not, how do I disable?

    Would I be more likely to have success if I started over and tried qt 6.2?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      davethomas_again
      wrote on last edited by
      #2

      I don't know why, but everything worked fine on a Ubuntu 20.04 (like the guide used).

      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