Skip to content

Build UPBGE on Linux

youle31 edited this page Nov 27, 2024 · 30 revisions

Building

The procedure is almost the same as for building blender:

https://wiki.blender.org/wiki/Building_Blender/Linux

You just need to replace blender url with upbge url: https://github.com/UPBGE/upbge.git

For upbge specific addons, you can download it from https://github.com/UPBGE/blender-addons and manually add it in addons_core

DEPRECATED:

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/scripts
git clone https://github.com/UPBGE/blender-addons.git addons
git submodule sync
git submodule update --init --recursive --remote
git submodule foreach git checkout master
git submodule foreach git pull --rebase origin master
git clone https://projects.blender.org/blender/blender-addons-contrib.git addons_contrib

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_x86_64_glibc_228

Update the sources, libraries and compiling

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

EDIT: If you encounter any troubles in building process, try to follow Blender official guide instead:

https://wiki.blender.org/wiki/Building_Blender/Linux

except that instead of cloning blender sources, you'll need to clone upbge sources:

git clone https://github.com/UPBGE/upbge.git

For addons, ask help on discord.

Clone this wiki locally