Windows (VStudio 2019) | Semaphore (GCC) |
---|---|
TEC requires cmake 3.9 and a few libraries GLFW3, GLM, ASIO, Protobuf, GLEW, Lua, Bullet, Dear ImGui, Spdlog and OpenAL which can be installed most easily via vcpkg
git clone https://github.com/Microsoft/vcpkg.git
(If you already have VCPKG, go to building)- Navigate to the
vcpkg/
directory.- Windows:
./bootstrap-vcpkg.bat
or Others:./bootstrap-vcpkg..sh
- MacOS MAYBE
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
ifbootstrap-vcpkg
fails see here for more help - Linux
apt-get install libgl1-mesa-dev xorg-dev libglu1-mesa-dev libxinerama-dev libxcursor-dev
- OPTIONAL
./vcpkg integrate install
./vcpkg install asio bullet3 glew glfw3 glm lua openal-soft protobuf zlib spdlog imgui sol2
- Windows:
git submodule update --init
in the root directory.mkdir build/
in to root directorycd build/
- Follow platform specific instructions
- Linux (G++ 7 or CLang 4) Unsupported at this moment due to have cmake is setup
- INSTALL REQUIRED LIBS bullet, glew, glfw3, glm, asio, lua, openal-soft, spdlog, Dear ImGui, sol2, and protobuf. Some of these will need versions not in your distribution (just ask for help in the IRC.)
- If you are on Ubuntu/Debian/etc. (something with
apt
):- Run
apt-get install libglew-dev libglfw3 libglm-dev libasio-dev
- Run
apt-get install liblua5.2-dev libopenal-dev libbullet-dev
- Run
apt-get install libprotobuf-dev protobuf-compiler libspdlog-dev
- Run
- If you are on Fedora/RHEL/etc. (something with
rpm
):- instructions coming soon to a README near you
- If you are on Arch/etc. (something with
pacman
):- Run
pacman -S glew glfw-x11 glm asio lua52 openal bullet protobuf spdlog
- Run
- If you are on Ubuntu/Debian/etc. (something with
cmake ..
in the build directorymake tec
in the build directory
- INSTALL REQUIRED LIBS bullet, glew, glfw3, glm, asio, lua, openal-soft, spdlog, Dear ImGui, sol2, and protobuf. Some of these will need versions not in your distribution (just ask for help in the IRC.)
- Linux VCPKG (G++ 7 or CLang 4)
cmake -DCMAKE_TOOLCHAIN_FILE=**VCPKG_DIR**/scripts/buildsystems/vcpkg.cmake ..
in the build directorymake
in the build directory
- Windows (Visual Studio 2019)
- Run cmake-gui setting the source line to the root directory and the build line to the build directory.
- Hit configure and select
Specify toolchain file for cross-compiling
using**VCPKG_DIR**/scripts/buildsystems/vcpkg.cmake
. - Click generate; then open and build the solution in Visual Studio.
- In the project properties for
trillek-client
change theDebugging
->Working Directory
to$(SolutionDir)..\
. - Potentially Download and install oalinst.zip (OpenAL installer) http://openal.org/downloads/ and install it.
- MaxOS X 10.15 (10.14 should work, following the instructions above)
brew install bullet
cmake -DCMAKE_TOOLCHAIN_FILE=**VCPKG_DIR**/scripts/buildsystems/vcpkg.cmake ..
in the build directorymake
in the build directory
- Linux (G++ 7 or CLang 4) Unsupported at this moment due to have cmake is setup
- Run it from
tec/
To generate the unit tests, follow the same instructions that before, but set to true the flag BUILD_TESTS_TEC