bullet3 icon indicating copy to clipboard operation
bullet3 copied to clipboard

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

Open MikTur opened this issue 8 months ago • 0 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
	)

MikTur avatar Nov 05 '23 23:11 MikTur