favreau / bullet

Automatically exported from code.google.com/p/bullet
0 stars 0 forks source link

Bullet 2.77 and trunk doesn't compile in Mac OS X 10.5 Leopard because of missing OpenCL dependency #480

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In Mac OS X 10.5, OpenCL support doesn't exist, however, Bullet depends on it. 
The soft body OpenCL solver then doesn't compile (missing OpenCL.h header) and 
the build fails.

This is easily fixed by extending the condition in
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/CMakeLists.txt:

IF(APPLE AND OPENCL_LIBRARY)
        SUBDIRS(Apple)
ENDIF()

This way, if the OpenCL library is not found, it will not compile the 
OpenCL-dependent code.

Original issue reported on code.google.com by max.pfin...@gmail.com on 8 Feb 2011 at 5:05

GoogleCodeExporter commented 9 years ago
Patch to fix this is attached.

Original comment by max.pfin...@gmail.com on 8 Feb 2011 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago

The patch has been applied in latest trunk:
http://code.google.com/p/bullet/source/detail?r=2279

Thanks for the fix!

Original comment by erwin.coumans on 9 Feb 2011 at 12:52