Pdores
Posts: 2
Joined: Tue May 11, 2021 8:46 am

Help on setup Qt5 and pi3b crosscompile

Tue May 11, 2021 8:57 am

Hello,
Trying to follow a tuturial and got stuck on one command to install Qt5

O have a pi3 and a Windows PC using a VirtualBox with Ubuntu.

Trying to install Qt5 on vbox ubuntu to compile and install directly on pi3

Hi, im using pi3b instead of pi0 and changed folder to pi3 so modified the comand to:

sudo ../qt5/configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/pdores/rpi3/toolchain/toolchain/bin/arm-linux-gnueabihf- -opensource -confirm-license -nomake tests -no-pch -eglfs -xcb -skip qtwayland -skip qtwinextras -skip qt3d -skip qtandroidextras -skip qtcharts -skip qtdatavis3d -skip qtmacextras -skip qtpurchasing -skip qtquick3d -skip qtscript -skip qtpim -skip qtcanvas3d -skip qtqa -skip qtquicktimeline -skip qtrepotools -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtdocgallery -skip qtactiveqt -skip qtdoc -make libs -sysroot /home/pdores/rpi3/sysroot -prefix /usr/local/qt/5.15.0 -extprefix /opt/qt/5.15.0/raspbian/sysroot -hostprefix /opt/qt/5.15.0/raspbian -v 2>&1 | tee ../configure.log

Getting this error:
config.log ->Fatal error: invalid -march= option: `armv8-a'

This the command and the log output:

sudo ../qt5/configure -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/pdores/rpi3/toolchain/toolchain/bin/arm-linux-gnueabihf- -opensource -confirm-license -nomake tests -no-pch -eglfs -xcb -skip qtwayland -skip qtwinextras -skip qt3d -skip qtandroidextras -skip qtcharts -skip qtdatavis3d -skip qtmacextras -skip qtpurchasing -skip qtquick3d -skip qtscript -skip qtpim -skip qtcanvas3d -skip qtqa -skip qtquicktimeline -skip qtrepotools -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtdocgallery -skip qtactiveqt -skip qtdoc -make libs -sysroot /home/pdores/rpi3/sysroot -prefix /usr/local/qt/5.15.0 -extprefix /opt/qt/5.15.0/raspbian/sysroot -hostprefix /opt/qt/5.15.0/raspbian -v 2>&1 | tee ../configure.log


and the result on config.log ->Fatal error: invalid -march= option: `armv8-a'

Command line: -release -opengl es2 -device linux-rasp-pi3-g++ -device-option CROSS_COMPILE=/home/pdores/rpi3/toolchain/toolchain/bin/arm-linux-gnueabihf- -opensource -confirm-license -nomake tests -no-pch -eglfs -xcb -skip qtwayland -skip qtwinextras -skip qt3d -skip qtandroidextras -skip qtcharts -skip qtdatavis3d -skip qtmacextras -skip qtpurchasing -skip qtquick3d -skip qtscript -skip qtpim -skip qtcanvas3d -skip qtqa -skip qtquicktimeline -skip qtrepotools -skip qtwebchannel -skip qtwebengine -skip qtwebglplugin -skip qtdocgallery -skip qtactiveqt -skip qtdoc -make libs -sysroot /home/pdores/rpi3/sysroot -prefix /usr/local/qt/5.15.0 -extprefix /opt/qt/5.15.0/raspbian/sysroot -hostprefix /opt/qt/5.15.0/raspbian -v

executing config test machineTuple

+ /home/pdores/rpi3/toolchain/toolchain/bin/arm-linux-gnueabihf-g++ -dumpmachine

> arm-linux-gnueabihf

test config.qtbase.tests.machineTuple succeeded

executing config test verifyspec

+ cd /home/pdores/rpi3/qt5/build5.15.0/config.tests/verifyspec && /home/pdores/rpi3/qt5/build5.15.0/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" "QMAKE_CFLAGS += --sysroot=/home/pdores/rpi3/sysroot" "QMAKE_CXXFLAGS += --sysroot=/home/pdores/rpi3/sysroot" "QMAKE_LFLAGS += --sysroot=/home/pdores/rpi3/sysroot" -early "CONFIG += cross_compile" /home/pdores/rpi3/qt5/qt5/qtbase/config.tests/verifyspec

+ cd /home/pdores/rpi3/qt5/build5.15.0/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make

> /home/pdores/rpi3/toolchain/toolchain/bin/arm-linux-gnueabihf-g++ -c -march=armv8-a -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8 -mfloat-abi=hard --sysroot=/home/pdores/rpi3/sysroot -O2 -w -fPIC  -I/home/pdores/rpi3/qt5/qt5/qtbase/config.tests/verifyspec -I. -I/home/pdores/rpi3/qt5/qt5/qtbase/mkspecs/devices/linux-rasp-pi3-g++ -o verifyspec.o /home/pdores/rpi3/qt5/qt5/qtbase/config.tests/verifyspec/verifyspec.cpp

> Assembler messages:

> Fatal error: invalid -march= option: `armv8-a'

> make: *** [Makefile:180: verifyspec.o] Error 1


any help? :(

RootKiiit
Posts: 15
Joined: Wed Nov 20, 2013 6:52 pm

Re: Help on setup Qt5 and pi3b crosscompile

Tue May 11, 2021 3:29 pm

Select somthing one: --march= or --mtune=

Pdores
Posts: 2
Joined: Tue May 11, 2021 8:46 am

Re: Help on setup Qt5 and pi3b crosscompile

Wed May 12, 2021 8:41 pm

RootKiiit wrote:
Tue May 11, 2021 3:29 pm
Select somthing one: --march= or --mtune=
? Did not understand

RootKiiit
Posts: 15
Joined: Wed Nov 20, 2013 6:52 pm

Re: Help on setup Qt5 and pi3b crosscompile

Wed May 12, 2021 11:51 pm

Options -mtune= and -march= do not use together. Select one item only

Return to “The MagPi”