qt-raspberrypi-configuration icon indicating copy to clipboard operation
qt-raspberrypi-configuration copied to clipboard

modify to 5.15.0, but fail

Open watershade opened this issue 4 years ago • 2 comments

When I modify your file to 5.15.0, but when I configure, it fail with error:

g++: error: unrecognized command line option ‘-mfpu=crypto-neon-fp-armv8’

Maybe It shouldn't be "crypto-neon-fp-armv8"? It is Raspberry OS 64 bits

watershade avatar Sep 05 '20 14:09 watershade

See: https://developer.arm.com/documentation/dui0774/e/Compiler-Command-line-Options/-mfpu

"The -mfpu option is ignored with AArch64 targets ..."

Although it is not ignored but throws an error, the solution is to just remove this option from the qmake spec. Then it builds fine for me.

Before installing to the Source Dir, edit file: qt-raspberrypi-configuration/linux-rpi4-v3d-g++/qmake.conf

Replace line: QMAKE_CFLAGS += -march=armv8-a -mtune=cortex-a72 -mfpu=crypto-neon-fp-armv8 With: QMAKE_CFLAGS += -march=armv8-a -mtune=cortex-a72

Then execute:

cd qt-raspberrypi-configuration && make install DESTDIR=../qt-everywhere-src-5.15.0

bit-project-de avatar Nov 01 '20 21:11 bit-project-de

this helped me a bit to understand this issue: https://linaro-toolchain.linaro.narkive.com/7fiKckMa/mfpu-neon-fp-armv8-and-unrecognized-command-line-option

is there anything else needed to adapt this to the 64bit OS except from removing the mfpu option?

mherold1 avatar Jan 18 '21 01:01 mherold1