Skip to content

Build UPBGE on Windows

youle31 edited this page Nov 27, 2024 · 20 revisions

Building

The procedure is almost the same as for building blender:

https://wiki.blender.org/index.php/Dev:Doc/Building_Blender/Windows

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:

Getting the Sources for UPBGE 0.3 Alpha

cd C:\blender-git
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

Update Sources and Libraries

For Windows 64 bits:

cd lib\win64_vc15  
svn update  
cd ..\\..\upbge  
git pull --rebase
git submodule update --recursive --remote
git submodule foreach git pull --rebase origin master  

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

Building

For now, the best is to build UPBGE with MSVC 2019.

Once you created the cmake files to build UPBGE, go into build folder, open blender.sln

Configure Visual Studio in Release mode (instead of Debug mode - default mode)
In the solution explorer, right click on INSTALL, then build.

Troubleshooting

Always ensure your libraries are up to date.
Always ensure that your sources are up to date.
Sometimes, you have to run CMake again (configure, configure, then generate) before you build.
Some AntiVirus programs can prevent compilation. Add an exception in you AntiVirus in the folder where you build UPBGE

Clone this wiki locally