Skip to content

Build on Windows with MSYS2

Jakob Flierl edited this page Jun 17, 2022 · 26 revisions

Install MSYS2 from https://www.msys2.org/ .

Next, run:

pacman -Syu
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-qt-creator
pacman -S --needed mingw-w64-x86_64-qt5 mingw-w64-x86_64-assimp mingw-w64-x86_64-freeglut mingw-w64-x86_64-glew mingw-w64-x86_64-SDL2
pacman -S --needed mingw-w64-x86_64-boost mingw-w64-x86_64-bullet mingw-w64-x86_64-lua51 unzip cmake ninja

Run "MSYS MinGW 64-bit" from Start menu

Download and compile lua5.4.4:

curl -R -O https://www.lua.org/ftp/lua-5.4.4.tar.gz
tar xvf lua-5.4.4.tar.gz
cd lua-5.4.4/src
make mingw && cd .. && make install

Download and compile luabind fork:

git clone https://github.com/bullet-physics-playground/luabind
cd luabind && mkdir build && cd build
cmake ..
ninja

Download and compile bullet3.06:

git clone https://github.com/bullet-physics-playground/bullet3
git checkout 3.06
mkdir build && cd build
cmake -DBUILD_CPU_DEMOS=OFF -DBUILD_DEMOS=OFF -DBUILD_EXTRAS=OFF -DBUILD_MULTITHREADING=ON -DBUILD_UNIT_TESTS=OFF -DUSE_CUSTOM_VECOR_MATH=OFF -DUSE_DOUBLE_PRECISION=OFF -DUSE_GLUT=OFF -DUSE_GRAPHICAL_BENCHMARK=OFF -DBUILD_SHARED_LIBS=on               -DBUILD_EXTRAS=on -DBUILD_BULLET2_DEMOS=off -DBUILD_OPENGL3_DEMOS=off -DBUILD_CPU_DEMOS=off -DBUILD_UNIT_TESTS=off -DINSTALL_LIBS=on -DINSTALL_EXTRA_LIBS=on -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
ninja

WIP..