Online drawboard (final project for Exercise on Operating Systems)
MIT License
Final project for Exercise on Operating Systems
git clone https://github.com/xqq/drawboard.git
cd drawboard
git submodule update --init
pacman -S mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-SDL2
vcpkg install sdl2:x86-windows
vcpkg install sdl2:x64-windows
brew install cmake sdl2
sudo apt-get install cmake libsdl2-dev
mkdir build
cd build
cmake .. -G "Visual Studio 15" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=<PATH_TO_VCPKG>/scripts/buildsystems/vcpkg.cmake
cmake --build .
mkdir build
cd build
cmake .. -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release
make -j8
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
Or using CLion (recommended)
Usage: drawboard [OPTIONS]
--client <host> --port <port>
--server <host> --port <port>
Start a drawboard server
./drawboard -s 0.0.0.0 -p 1919
Connect to a drawboard server
./drawboard -c 127.0.0.1 -p 1919
MIT License
Copyright (c) 2020 xqq <[email protected]>