Skip to content

Build UPBGE on Linux

lordloki edited this page Aug 20, 2022 · 30 revisions

Get the sources

Note: If you are having troubles with the repository and submodules, just delete the folder and start fresh again.
Beware: Deleting a git folder will also remove any branch/work you made inside, act carefully.

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

Download Libraries

For Intel and AMD Linux systems, we recommend using precompiled libraries. These are the quickest way to get a feature complete Blender build and can be downloaded as follows.

These libraries are built on CentOS 7 for compatibility, but they work fine on other Linux distributions.

mkdir ~/sources/lib cd ~/sources/lib svn checkout https://svn.blender.org/svnroot/bf-blender/trunk/lib/linux_centos7_x86_64

Update the sources and libraries

The rest of the procedure to get libraries or dependencies and to update the sources is similar to the exposed in Blender doc: https://wiki.blender.org/wiki/Building_Blender/Linux

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.sh --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