Skip to content

kaka-lin/network-configuration-tool

Repository files navigation

Network Configuration Tool

Require

  • Qt5.10+
  • CMake & Ninja

Run in Docker (Optional)

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
    

Build and Run

Same as Run in local machine

Run in local machine

1. Run with qmake

  • 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

3. Run with cmake

  • 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

Trobuleshooting

Qt is not found

Opening CMakeLists.txt and modify Qt location in list(APPEND CMAKE_PREFIX_PATH ${Your Qt path})

FullScreen

QT_WAYLAND_SHELL_INTEGRATION=wl-shell ./network-config-tool.pro

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published