Git Product home page Git Product logo

tec's Introduction

Trillek Engine C

GNU/Linux (Gcc and CLang) Windows (VStudio 2015)
Build Status Build status

Building

TEC requires cmake 3.1 and a few libraries like GLEW, Lua, Bullet and OpenAL. Our CMake script can handle compiling and installing Bullet and OpenAL, but GLEW and Lua is necesary to be installed on your computer to build the engine properly.

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:

  1. (cd /tmp && wget http://www.cmake.org/files/v3.1/cmake-3.1.3.tar.gz && tar zxf cmake-3.1.3.tar.gz)
  2. (cd /tmp/cmake-3.1.3 && cmake . && make && sudo make install)
  3. 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.

  1. git submodule update --init in the root directory.
  2. mkdir build/ in to root directory
  3. cd build/
  4. Follow platform specific instructions
  5. Linux (G++ 5 or CLang 3.8)
    • If you have Bullet, GLEW and OpenAL dev libs installed :
      1. cmake .. in the build directory
      2. make TEC in the build directory
    • If you do not have Bullet or OpenAL dev libs installed :
      1. cmake .. in the build directory
      2. make in the build directory
      3. sudo make install in the build directory (Warning! This will install Bullet and/or OpenAL on your /usr/local/)
      4. rm CMakeCache.txt in the build directory
      5. cmake .. in the build directory
      6. make TEC in the build directory
  6. Windows (Visual Studio 2013)
    1. Install Lua include files and library file. (For example on /lib )
    2. Set LUA_DIR enviroment variable to the path were you download Lua.
    3. Run cmake-gui setting the source line to the root directory and the build line to the build directory.
    4. Configure and Generate using non-x64 as the target, with native compiles selected.
    5. Build the solution
    6. Return to cmake-gui and rerun configure and generate.
    7. OPTIONAL If you see "All dependencies found now building tec.", you can delete your cache and rerun to clean up the cmake-gui window.
    8. In the project properties for TEC change the Debugging->Working Directory to $(SolutionDir)..\.
    9. Download and install oalinst.zip (OpenAL installer) http://openal.org/downloads/ and install it.
  7. Run it from tec/

Dependencies download (Windows)

Unit tests

To generate the unit tests, follow the same instructions that before, but set to true the flag BUILD_TESTS_TEC

tec's People

Contributors

adam4813 avatar zardoz89 avatar milesrout avatar taneb avatar jmf avatar devaukz avatar shiroy avatar ralian avatar

Watchers

James Cloos avatar Noah Schultz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.