Hi Everyone,
We have received the x64 eval version of the Qt Enterprise Edition.
The Qt Enterprise Edition allows for generating Boot2Qt images for different embedded boards including NVIDIA Jetson TX1.
Our goal is to create a similar Boot2Qt image for the NVIDIA Jetson TX2 board.
On contacting Qt company, they directed us to the link Qt for Embedded Linux | Qt 5.15 which contains instructions to build Qt manually for a target device.
The directory qtbase/mkspecs/devices after installation of the Qt Enterprise Edition contains configuration and graphics adaptation code for a number of devices. The Qt company advised us to make a copy of the existing Jetson TX1 directory under qtbase/mkspecs/devices, rename it for TX2 and make changes to the contents of qmake.conf specific for TX2, if required.
I created a new directory ‘linux-jetson-tx2-g++’ under qtbase/mkspecs/devices replicating the existing ‘linux-jetson-tx1-g++’ directory under the qtbase/mkspecs/device.
I have the sysroot and the rootfs setup and provided the options below for the ‘configure’ under qtbase.
./configure -release -device linux-jetson-tx2-g++ -device-option CROSS_COMPILE=/64_TX2/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -sysroot /64_TX2/Linux_for_Tegra_tx2/rootfs -prefix /usr/local/qt5
The ‘configure’ command above works fine when we select the ‘o’ for the Open Source Version of the Qt Enterprise version.
But when trying to make using ‘sudo make’, the compilation seem to be failing.
[b]L/64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib -L/64_TX2/Linux_for_Tegra_tx2/rootfs/lib/aarch64-linux-gnu -L/64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib/aarch64-linux-gnu -lpthread -licui18n -licuuc -licudata -lm -lz -L/opt/Qt-backup/5.9.1/Src/qtbase/lib -lqtpcre2 -L/64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib -L/64_TX2/Linux_for_Tegra_tx2/rootfs/lib/aarch64-linux-gnu -L/64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib/aarch64-linux-gnu
a/64_TX2/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: /64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib/aarch64-linux-gnu/libz.a(compress.o): relocation R_AARCH64_ADR_PREL_PG_HI21 against external symbol `__stack_chk_guard@@GLIBC_2.17’ can not be used when making a shared object; recompile with -fPIC
/64_TX2/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/…/lib/gcc/aarch64-linux-gnu/5.4.1/…/…/…/…/aarch64-linux-gnu/bin/ld: /64_TX2/Linux_for_Tegra_tx2/rootfs/usr/lib/aarch64-linux-gnu/libz.a(compress.o)(.text+0xc): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol __stack_chk_guard@@GLIBC_2.17' /64_TX2/gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu/bin/../lib/gcc/aarch64-linux-gnu/5.4.1/../../../../aarch64-linux-gnu/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make[2]: *** [../../lib/libQt5Core.so.5.9.1] Error 1 make[2]: Leaving directory
/opt/Qt-backup/5.9.1/Src/qtbase/src/corelib’
make[1]: *** [sub-corelib-make_first] Error 2
make[1]: Leaving directory `/opt/Qt-backup/5.9.1/Src/qtbase/src’
make: *** [sub-src-make_first] Error 2
v@v-VirtualBox:/opt/Qt-backup/5.9.1/Src/qtbase$
[/b]
Anyone came across this issue while building Qt?
Could this be an issue with my toolchain - gcc-linaro-5.4.1-2017.05-x86_64_aarch64-linux-gnu? I downloaded and installed this toolchain separately and this was not part of the JetPack 3.0 installation.
Thanks
M