bullet-physics-playground / bpp

The Bullet Physics Playground – Bullet Real-Time Physics Simulation.
https://github.com/bullet-physics-playground
Other
35 stars 6 forks source link

how to compile bullet3 and bpp in Windows MSYS2? #49

Open gfernval opened 1 year ago

gfernval commented 1 year ago

In building in Windows with MSYS2:

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 .. ninja

what does "git checkout 3.06"? Can be removed? (last version is 3.24) In the cmake command seems that there are redundant options, should be:

cmake .. --install-prefix /bpp -DBUILD_SHARED_LIBS=OFF?

I´m trying to build bpp with MSYS2 doing:

git clone https://github.com/bullet-physics-playground/bpp cd bpp export QT_SELECT=qt5 qmake CONFIG+=release make

but after doing qmake CONFIG+=release it complains that "ASSIMP developer package not found" I have installed ASSIMP with pacman -S --needed mingw-w64-x86_64-assimp and installs the include files and libraries, don´t know where is the fault.

I´m doing all the compilation with your instructions:

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-lua51 unzip cmake ninja pacman -S --needed mingw-w64-x86_64-qscintilla

Run "MSYS MinGW 64-bit" from Start menu

cmake should be installed using "pacman -S --needed mingw-w64-x86_64-cmake" and not "pacman -S --needed cmake", the same as ninja: "pacman -S --needed mingw-w64-x86_64-ninja"

koppi commented 1 year ago

@gfernval thank you for your feedback.

I just gave a try to build and run bpp with MSYS2 on a freshly installed Windows 10 Pro machine.

I have updated msys2.pri in the top level of bpp and updated the build instructions in the Wiki: https://github.com/bullet-physics-playground/bpp/wiki/Build-on-Windows-with-MSYS2

One thing still missing is a way to figure out howto deploy the bpp app with the needed dlls and qt plugins. I heared that there's a utility called windeployqt. This needs further investigation.

koppi commented 1 year ago

Screenshot (1)