Skip to content

Build UPBGE on Windows

lordloki edited this page Dec 10, 2023 · 19 revisions

Building

The procedure is almost the same as for building blender:

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

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