Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
-
linux ubuntu 12.04, ARM (targetting panda board)
-
77196b9dc3caa7dda1072a64ed953bf7231b1af3
Description
Qt 5 doesn't compile for ARM targets with the default configuration, because the make rule for .S files is the same as for .c files.
This is normally not a problem, but the precompiled header is not valid for .S files.
When using gcc, the compilation command looks like this:
gcc -c -include .pch/release-shared/Qt5Gui .... qdrawhelper_neon_asm.S
And that results in a compile error as .pch/release-shared/Qt5Gui does not exist.
The file .pch/release-shared/Qt5Gui.gch does exist but is only valid for c/c++ source files.
Possibly qmake requires a different section rather than SOURCES to put assembly files.
Or it can split them out with different CFLAGS used as it does for .c vs .cpp files.
Workaround:
configure -no-pch