Skip to content

Build UPBGE on Linux

youle31 edited this page Feb 16, 2017 · 30 revisions

The procedure is almost the same as for building blender:

https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Linux/Ubuntu/CMake (For Ubuntu or Linux Mint)

To Get the sources, execute the following commands:

mkdir ~/blender-git
cd ~/blender-git
git clone https://github.com/UPBGE/blender.git
cd blender
git submodule sync
git submodule update --init --recursive
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master

To Update the sources and the librairies:

git pull --rebase
git submodule foreach git pull --rebase origin master
cd build_files/build_environment
./install_deps.sh
cd ..
cd ..

These commands can be automated in a .sh (executable) file.

To Build:

In Cmake, advanced options, check with CXX11. Once you have configured and generate your cmake files, go into the build folder, open a terminal and type the following commands:

make -j5 (5 if you have a quad cores CPU, 9 for 8 cores, 3 for 2 cores)
make install

Troubleshooting:

When running install_deps script, some issues were already reported related to Open Image IO and Open Shading Language.

To skip installation of these librairies run install_deps with options:

./install_deps --skip-osl --skip-oiio

To know what options can be skipped, open install_deps script with a text editor. All the options are listed.

Clone this wiki locally