Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Fatal error: .moc: No such file or directory while cross-compiling Qt
Forum Updated to NodeBB v4.3 + New Features

Fatal error: .moc: No such file or directory while cross-compiling Qt

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 534 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sitti
    wrote on 2 Dec 2021, 10:56 last edited by
    #1

    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.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 Dec 2021, 20:12 last edited by
      #2

      Hi,

      Are you doing a multi-threaded build ?

      By the way, you are not building the latest of the 5.12 series.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      1/2

      2 Dec 2021, 10:56

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved