training project for qt based ui
- download from https://www.xquartz.org/
xquartz -listen tcp &- run the command on terminal
xhost + & - ensure
DISPLAY=host.docker.internal:0is set in teh container via the docker file or.devcontainer.json- Troubleshooting
lsof -i TCP:6000should list Xquartz as listening application- firewall can interfere with the setup
- Troubleshooting
In Terminal on macOS:
defaults write org.xquartz.X11 enable_iglx -bool trueThen restart XQuartz, and try again.
Inside the container (or in code), set the following env variable:
export QT_QUICK_BACKEND=software
sudo apt-get install -y x11-appsxclock
run build steps as
code to root directory of the project
mkdir build && cd buildcmake ..make./your_app