[Development] CMake && QtCreator cross-compilation for ARM fails
Denis Shienkov
denis.shienkov at gmail.com
Tue Dec 11 21:29:30 CET 2018
Hi guys.
I have the Qt project, based on both QMake and QBS. This project should
be targeted on a Apalis iMX6 board with BSP Linux, generated from Yocto.
Also I have a Yocto SDK which is added to QtCreator (as a configured
Kits). The QMake and QBS doing the ARM cross-compilation from the
QtCreator like a sharm, but the CMake fails on the configure step:
"
The ASM compiler identification is GNU Found assembler:
/mnt/data/Yocto-miatech/sdks/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gccThe
C compiler identification is GNU 6.4.0 The CXX compiler
identification is GNU 6.4.0 Check for working C compiler:
/mnt/data/Yocto-miatech/sdks/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gccCheck
for working C compiler:
/mnt/data/Yocto-miatech/sdks/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc —
broken CMake Error at
/usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
«/mnt/data/Yocto-miatech/sdks/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc»
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
/tmp/QtCreator-iobfII/qtc-cmake-wCnOwxuI/CMakeFiles/CMakeTmp Run
Build
Command:«/mnt/data/Yocto-miatech/sdks/sysroots/cortexa9hf-neon-poky-linux-gnueabi/usr/bin/make»
«cmTC_afb4e/fast» /lib/ld-linux-armhf.so.3: No such file or directory
CMake will not be able to correctly generate this project. Call
Stack (most recent call first): CMakeLists.txt:22 (project)
Configuring incomplete, errors occurred! See also
«/tmp/QtCreator-iobfII/qtc-cmake-wCnOwxuI/CMakeFiles/CMakeOutput.log».
See also
«/tmp/QtCreator-iobfII/qtc-cmake-wCnOwxuI/CMakeFiles/CMakeError.log».
CMake Project parsing failed.
"
I tried even specify the cmake's toolcain file from the QtCreator settings:
"
CMAKE_TOOLCHAIN_FILE =
/mnt/data/Yocto-miatech/sdks/sysroots/x86_64-pokysdk-linux/usr/share/cmake/OEToolchainConfig.cmake
"
PS: WTF? Why the Qt's management choosed the CMake's instead of QBS?
From my point of view, the CMake it is a crap...
I know, that I'm not a CMake expert, but Why I need to spent a lot time
to make the CMake working wich an unknown result,
instead of just using QBS? Cross-compilation with QBS works
immediatelly, but with CMake sucks!
This is my soul cry ... guys, what are you doing?
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20181211/acf49133/attachment.html>
More information about the Development
mailing list