Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Make install: "File format not recognized"
I try to install qt 4.8.1,
the make command was done OK with no errors/warnings, but in "make install"
the strip command fails with " File format not recognized"....
What should I do ?
arm-none-linux-gnueabi-strip:/usr/local/Trolltech/QtEmbedded-4.8.1-arm/include/Qt/qatomic_alpha.h: File format not recognized
make: [install_flat_headers] Error 1 (ignored)
install -m 755 -p /media/sdb/qt/qt-everywhere-opensource-src-4.8.1/src/corelib/arch/qatomic_arch.h /usr/local/Trolltech/QtEmbedded-4.8.1-arm/include/Qt/
arm-none-linux-gnueabi-strip:/usr/local/Trolltech/QtEmbedded-4.8.1-arm/include/Qt/qatomic_arch.h: File format not recognized
Pretty strange error, what configure line did you use ?
This is the configure I use:
It is being used with QT 4.8.1.
Do you get the same if you only use:
@/configure -embedded arm -xplatform qws/linux-TIarmv7-g++@
On doing it all again from new it works:
- extracting opensource4.8.1..tar.gz
- using same configure as before
- make & make install
BUT, I still wonder why doing the following sequence did not clean it as expected:
- make confclean
- make clean
Does anyone knows ?
I don't know but it's been years since I've done an in-source build. I rather do out-of-source builds so if something goes wrong I only have to delete the build tree and start again from a clean state.
Thanks, how can I compile qt as "out of source" build instead of in source ? Regards, Ran
Just create a folder outside the sources and call configure/make/make install from it:
make -j (number of core + 1)
And you should be good