Unsolved Fatal error: .moc: No such file or directory while cross-compiling Qt
-
I am cross-compiling Qt5.12 for an ARM embedder linux device. I am not building inside the source directory, but into a parallel directory. This is my configure, it completes without any apparent error:
../qt-everywhere-src-5.12.11/configure -opensource -confirm-license -xplatform arm-cortex_a8-linux-gnueabi-g++ -prefix test2/ -no-opengl -no-pch -no-evdev -linuxfb -tslib -skip qtserialport -verbose -skip qtimageformats -skip qtsvg
After that, the
make
command fails, giving me the following errors:/home/andrea/Scrivania/installQt/qt-everywhere-src-5.12.11/qtdeclarative/src/qml/util/qqmladaptormodel.cpp:1044:32: fatal error: qqmladaptormodel.moc: No such file or directory #include <qqmladaptormodel.moc> ^ compilation terminated. make[3]: *** [Makefile:16851: .obj/qqmladaptormodel.o] Errore 1 make[3]: uscita dalla directory «/home/andrea/Scrivania/installQt/test-build-1/qtdeclarative/src/qml» make[2]: *** [Makefile:55: sub-qml-make_first-ordered] Errore 2 make[2]: uscita dalla directory «/home/andrea/Scrivania/installQt/test-build-1/qtdeclarative/src» make[1]: *** [Makefile:50: sub-src-make_first] Errore 2 make[1]: uscita dalla directory «/home/andrea/Scrivania/installQt/test-build-1/qtdeclarative» make: *** [Makefile:231: module-qtdeclarative-make_first] Errore 2
Can anyone give me an hint on how to solve the issue, or about where to investigate?
Thanks. -
Hi,
Are you doing a multi-threaded build ?
By the way, you are not building the latest of the 5.12 series.