Skip to content

CMake Linux Setup

fredakilla edited this page Jul 15, 2018 · 17 revisions

Install Linux (64-bit)

  • Tested on Ubuntu 16, Linux Mint 19.
  • Other distributions should works too.

Install Linux dependencies

sudo apt-get install build-essential gcc cmake libglu1-mesa-dev libsndio-dev libpulse-dev

Install submodules dependencies

Some thirdparty libraries are registered as submodules, you need to install them before compiling.

cd GPlayEngine
git submodule init
git submodule update

First step : Building third-party libraries

Third-party libraries are built independently of GPlayEngine and must be builded before anything. This step is also necessary to prepare output directories. Run the following from the top-level directory of your GPlayEngine repository:

cd thirdparty
mkdir BUILD
cd BUILD
cmake ..
make -j12 (X number should be 1.5x the number of cores you have)

Second step : Building GPlayEngine library and samples

Run the following from the top-level directory of your GPlayEngine repository:

mkdir BUILD
cd BUILD
cmake ..
make -j12 (X number should be 1.5x the number of cores you have)

Running a sample (Ex. sample-browser)

Run the following from the top-level directory of your GPlayEngine repository:

cd output/bin
./sample-browser
Clone this wiki locally