Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gfernval opened this issue May 6, 2023 · 2 comments
Open

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

gfernval opened this issue May 6, 2023 · 2 comments
Assignees

Comments

@gfernval
Copy link

gfernval commented May 6, 2023

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
Copy link
Member

koppi commented Jul 8, 2023

@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 koppi self-assigned this Jul 8, 2023
@koppi
Copy link
Member

koppi commented Jul 8, 2023

Screenshot (1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants