bulletphysics / bullet3

Bullet Physics SDK: real-time collision detection and multi-physics simulation for VR, games, visual effects, robotics, machine learning etc.

Home Page:http://bulletphysics.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

duplicate for Can't build Pybullet for C++ usage via Cmake (Unix Makefiles) #4303

MikTur opened this issue · comments

Hi all, I understand that you do not support mingw - your choice.
The fix for the builing with mingw is very simple, there are two examples that are not linking against what it shoudl be.
Opengl32Window:
CMakeLists.txt - line 62 to be added:

elseif (WIN32 OR MINGW)
  target_link_libraries(OpenGLWindow ${OPENGL_gl_LIBRARY})

TwoJoint:
CMakeLists.txt - line 93 to be adjusted:

IF(WIN32 OR MINGW)
	LINK_LIBRARIES(
		${OPENGL_gl_LIBRARY} ${OPENGL_glu_LIBRARY} Winmm
	)