Skip to content

Build UPBGE on Windows

youle31 edited this page Feb 16, 2017 · 20 revisions

The procedure is almost the same as for building blender:

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

To Get the sources, execute the following commands:

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

To Update the sources:

For Windows 32 bits:

cd lib\windows_vc12
svn update
cd ....\blender
git pull --rebase
git submodule foreach git pull --rebase origin master

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

To Build:

For now, the better is to build UPBGE with MSVC 2013 update 5.

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.

Clone this wiki locally