Issues Cross Compiling 6.4 for RPI Bullseye
-
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 statusIn the configure output, I see this:
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... yesIs -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?
-
I don't know why, but everything worked fine on a Ubuntu 20.04 (like the guide used).