GNU/Linux (Gcc and CLang) | Windows (VStudio 2015) |
---|---|
TEC requires cmake 3.1 and a few libraries GLFW3, GLM, ASIO, Protobuf, GLEW, Lua, Bullet and OpenAL.
If you do not have cmake 3.1 (try cmake -version
), to install on Linux, use the same procedure that we do on Travis CI:
(cd /tmp && wget http://www.cmake.org/files/v3.1/cmake-3.1.3.tar.gz && tar zxf cmake-3.1.3.tar.gz)
(cd /tmp/cmake-3.1.3 && cmake . && make && sudo make install)
- Close your terminal emulator and open a new instance. Now, you should get version 3.1.3 when you run
cmake -version
Building takes a few steps to get everything set up for the first build.
git submodule update --init
in the root directory.mkdir build/
in to root directorycd build/
- Follow platform specific instructions
- Linux (G++ 5 or CLang 3.8)
- INSTALL REQUIRED LIBS bullet, glew, glfw3, glm, lua, openal-soft, 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
- Run
# apt-get install liblua5.2-dev libopenal-dev libbullet-dev
- Run `# apt-get install
- Run
- If you are on Fedora/RHEL/etc. (something with
rpm
): - If you are on Arch/etc. (something with
pacman
):
- 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, lua, openal-soft, and protobuf. Some of these will need versions not in your distribution (just ask for help in the IRC.)
- Windows (Visual Studio 2015)
- Check out VCPKG from https://github.com/Microsoft/vcpkg (If you already have VCPKG, go to step 5)
- Navigate to the
vcpkg/
directory. - Run
powershell -exec bypass scripts\bootstrap.ps1
- Run
.\vcpkg integrate install
- Run
.\vcpkg install asio bullet3 glew glfw3 glm lua openal-soft protobuf zlib
- 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
usingvcpkg/scripts/buildsystems/vcpkg.cmake
from where you checked out VCPKG - 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.
- Linux (G++ 5 or CLang 3.8)
- Run it from
tec/
To generate the unit tests, follow the same instructions that before, but set to true the flag BUILD_TESTS_TEC
Is this looking to be pretty final?