- Qt5.10+
- CMake & Ninja
Detail information please reference qt-template
-
Run it on
Ubuntu
$ xhost +local:docker $ docker run --rm -it \ -e DISPLAY=$DISPLAY \ -e QT_X11_NO_MITSHM=1 \ --volume="/tmp:/tmp" \ --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ --volume="$PWD:/home/user/network-configuration-tool" \ --privileged \ kakalin/qt:5.12.0
-
Run it on
macOS
You need to install XQuartz
$ open -a XQuartz $ xhost +localhost $ docker run --rm -it \ -e DISPLAY=host.docker.internal:0\ -e QT_X11_NO_MITSHM=1 \ --volume="/tmp:/tmp" \ --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \ --volume="$PWD:/home/user/network-configuration-tool" \ --privileged \ kakalin/qt:5.12.0
Same as Run in local machine
-
build
# only run this once $ chmod +x build.sh $ ./build.sh
-
run
$ ./network-config-tool # Qt 5.15.1 $ ./network-config-tool.app/Contents/MacOS/network-config-tool
-
clean
# only run this once $ chmod +x clean.sh $ ./clean.sh
-
build
# only run this once $ chmod +x cmake-build.sh $ ./cmake-build.sh
-
run
$ ./build/network-config-tool
-
clean
# only run this once $ chmod +x cmake-clean.sh $ ./cmake-clean.sh
Opening CMakeLists.txt
and modify Qt location in list(APPEND CMAKE_PREFIX_PATH ${Your Qt path})
QT_WAYLAND_SHELL_INTEGRATION=wl-shell ./network-config-tool.pro