Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. moc gets stuck when running in a docker container
Forum Updated to NodeBB v4.3 + New Features

moc gets stuck when running in a docker container

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 299 Views
  • 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.
  • N Offline
    N Offline
    nicolamori
    wrote on last edited by
    #1

    I am trying to compile a code which uses Qt inside a docker container. The container runs Ubuntu 20.04 with Qt 5.12.5 from official repository, and the host machine CentOS 7. Compilation gets stuck at running moc on on a parameter file:

    /usr/lib/qt5/bin/moc @/HERD/software/source/geant4.10.04.p02.build/source/interfaces/basic/include/moc_G4UIQt.cpp_parameters
    

    which produces no output on screen and remains running forever, and I have to kill moc with ctrl+c. The content of the parameter file is ok: moc runs fine on it outside the container, and also putting the content of the file directly on the moc command line works in the container. So it seems a problem related with file access/processing by moc from inside the container. Indeed, running moc on any other file (also non-parameters one) leads to a halt without any message; the only sign of life appears when passing a non existent file:

    $ /usr/lib/qt5/bin/moc @nonexistent.file
    moc: Cannot open options file specified with @
    

    In this thread on StackOverflow I found that Qt >= 5.10 makes use of statx calls when compiled with kernel >= 4.12, which is the case of the Ubuntu Qt package I installed in my container, while the host CentOS system has kernel 3.10 by default. So I updated the CentOS kernel of the host machine to 5.6.2 vial elrepo, to no avail.

    Does anybody have a clue? Thanks.

    1 Reply Last reply
    0

    • Login

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