I.MX8QMax -- How to Compile QT Cpp code

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I.MX8QMax -- How to Compile QT Cpp code

687 Views
santhosh2
Contributor IV

Hi,

How to cross compile simple QT Cpp code for I.MX8QMax.

Qtcompilation.png

I did below steps

export PATH=/opt/fsl-imx-x11/4.9.51-mx8-beta/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/:$PATH
export CROSS_COMPILE=aarch64-poky-linux-

export ARCH=arm64
export LDFLAGS=""
source /opt/fsl-imx-x11/4.9.51-mx8-beta/environment-setup-aarch64-poky-linux
LDFLAGS="" CC="$CC"
export GCC=$CXX


Buts its getting compiled to x86-64

(Attached the snap )


Regards

Santhosh Kumar S

0 Kudos
2 Replies

625 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello Santosh,

The following links may help you:

Qt5.6.3 Build issue with ARM64 | Qt Forum 

Building Qt Sources | Qt 5.14 

Regards

0 Kudos

625 Views
santhosh2
Contributor IV

No the links didnt help, Can you help me with steps

regards

santhosh

0 Kudos