QProcess not working in docker container on Apple M1
-
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 - When using QProcess::start, the exitCode() is always
-
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 ?