Fortunately, podman can be used to run a containerized version of qucs without issue. The Dockerfile below starts from a Debian 10 base image, installs the necessary dependencies for Qucs, downloads the version 0.0.20 source code, and compiles it.
The container can be ran from the command line:
podman run -it \\ -v .:/data \\ -e DISPLAY=:0 \\ -v /tmp/.X11-unix:/tmp/.X11-unix \\ -v /home/user/.Xauthority:/tmp/.XAuthority \\ --env=QT_X11_NO_MITSHM=1 \\ 6fa55ff299d \\ qucs
The launch command is fairly straightforward with some nuances for using an X11 application in the container.
-e DISPLAY=:0 sets the current X11 server within the docker container. The volume mounts of
.Xauthority map the X11 server sockets and authentication into the container.
--env=QT_X11_NO_MITSHM=1 prevents Qt from using MIT-SHM extensions which require access to
This method should extend to any program that requires Qt4, at least as long as Debian continues to provide apt support for buster.
Was this an interesting read? Say thanks and help keep this site ad & analytic free by using my Amazon Affilliate URL. I'll receive a small portion of any purchases made within 24 hours.