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. QProcess not working in docker container on Apple M1
Qt 6.11 is out! See what's new in the release blog

QProcess not working in docker container on Apple M1

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 350 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.
  • D Offline
    D Offline
    dorianim
    wrote on last edited by
    #1

    Hello everyone,

    In the university, we need to run the Qt-based IDE SASM to do exercises in Assembly.
    This GUI uses QProcess to execute the assembler (nasm), the compiler/linker (gcc) and the debugger (gdb). It only works on 32-bit Linux though, because we need to write, compile and debug 32bit x86 assembly. Because of this, I built a simple docker container, based on i386 alpine, for it together with a friend of mine (you can find it here). It works flawlessly on most systems, but on Apple M1 chips, there is some strange issue with QProcess:

    • When using QProcess::start, the exitCode() is always QProcess::CrashExit
    • Qprocess::execute always returns -1
    • Nothing is actually executed

    I know, this is a rather strange use case, but I would appreciate any idea on how to debug this further :)
    I've been using Qt for about three years now, so I kind of know what I'm doing, but I'm stuck at this point.

    Regards,
    Dorian

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Even if it's not your current target architecture, did you try to run a 64 bit image of your setup ?

      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

      • Login

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