Unable to cross compile Qt5.15.13 for Armv7
-
I am trying to cross-compile Qt Application for armv7 and getting below error:
/usr/include/x86_64-linux-gnu/bits/floatn.h:75:70: error: unknown machine mode ‘__TC__’ 75 | typedef _Complex float __cfloat128 __attribute__ ((__mode__ (__TC__)));
I have included /user/include in the INCPATH in Makefile. Looks like the compiler is trying to use this instead of cross compiler folder( /home/user/gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/bits/floatn.h).
Please let me know if I am missing on anything here.
-
@Marolif said in Unable to cross compile Qt5.15.13 for Armv7:
I have included /user/include in the INCPATH in Makefile
You should not change anything in makefiles.
Please explain how exactly you're cross compiling. Do you hvae a sysroot? -
I am working with @Marolif on same project. I do not have a sysroot. I have only the cross compiler gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-g++ installed and Qt5.15.7 on my system.
Note: I am trying to compile an existing code that was written on Qt5.3.0. -
-
I have copied the sysroots directory into my system where Qt compilation environment is set up. Below is the only file available in the sysroots directory.
tisdk/build/arago-tmp-default-glibc/sysroots/am335x-evm/imgdata/tisdk-default-image.env
Note: I am using a am335x-evm custom board.
Please suggest how to include the sysroots directory into the compilation process through command line arguments. Also, let me know what the contents of the sysroots directory should look like.