favreau / bullet

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

Cannot build under Mac OS X #522

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Follow wiki documentation:

http://bulletphysics.org/mediawiki-1.5.8/index.php/Installation#Mac_OS_X_Framewo
rk_Recipe

mkdir bullet-build
 cd bullet-build
 cmake .. -G "Unix Makefiles" -DINSTALL_LIBS=ON -DBUILD_SHARED_LIBS=ON -DFRAMEWORK=ON \
   -DCMAKE_OSX_ARCHITECTURES='i386;x86_64' -DCMAKE_BUILD_TYPE=RelWithDebInfo \
   -DCMAKE_INSTALL_PREFIX=/Library/Frameworks -DCMAKE_INSTALL_NAME_DIR=/Library/Frameworks \
   -DBUILD_DEMOS:BOOL=OFF
 make -j4

Partial output:
Linking CXX shared library libMiniCL.dylib
[ 99%] Built target MiniCL
Linking CXX shared library BulletSoftBody.framework/Versions/2.78/BulletSoftBody
[ 99%] Built target BulletSoftBody
Scanning dependencies of target BulletSoftBodySolvers_CPU
Scanning dependencies of target BulletSoftBodySolvers_OpenCL_Mini
[100%] Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/CPU/BulletSoftBodySolvers_CPU.framewo
rk/Versions/2.78/Headers/btSoftBodySolverData.h
[100%] Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/CPU/BulletSoftBodySolvers_CPU.framewo
rk/Versions/2.78/Headers/btSoftBodySolver_CPU.h
Building CXX object 
src/BulletMultiThreaded/GpuSoftBodySolvers/CPU/CMakeFiles/BulletSoftBodySolvers_
CPU.dir/btSoftBodySolver_CPU.o
Building CXX object 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/CMakeFiles/BulletSoftBo
dySolvers_OpenCL_Mini.dir/__/btSoftBodySolver_OpenCL.o
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolverBuffer_OpenCL.h
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolverData.h
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolverTriangleData_OpenCL.h
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolverLinkData_OpenCL.h
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolverVertexData_OpenCL.h
Copying OS X content 
src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_O
penCL_Mini.framework/Versions/2.78/Headers/btSoftBodySolver_OpenCL.h
Linking CXX shared library 
BulletSoftBodySolvers_CPU.framework/Versions/2.78/BulletSoftBodySolvers_CPU
[100%] Built target BulletSoftBodySolvers_CPU
Linking CXX shared library 
BulletSoftBodySolvers_OpenCL_Mini.framework/Versions/2.78/BulletSoftBodySolvers_
OpenCL_Mini
Undefined symbols for architecture i386:
  "_clGetProgramInfo", referenced from:
      CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture x86_64:
  "_clGetProgramInfo", referenced from:
      CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: 
/var/folders/QP/QPjkmvgpHfy2YZ27kYszCk+++TI/-Tmp-//ccbgZAkw.out (No such file 
or directory)
make[2]: *** 
[src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/BulletSoftBodySolvers_
OpenCL_Mini.framework/Versions/2.78/BulletSoftBodySolvers_OpenCL_Mini] Error 1
make[1]: *** 
[src/BulletMultiThreaded/GpuSoftBodySolvers/OpenCL/MiniCL/CMakeFiles/BulletSoftB
odySolvers_OpenCL_Mini.dir/all] Error 2
make: *** [all] Error 2

Version: tgz package 2.78 from this site.

Original issue reported on code.google.com by antoniov...@gmail.com on 14 Jun 2011 at 7:48

GoogleCodeExporter commented 9 years ago
It was a bug in the release, installing is not a supported/tested feature.

The latest trunk should work, can you use SVN to get it?

Original comment by erwin.coumans on 16 Jun 2011 at 10:05

GoogleCodeExporter commented 9 years ago
Fixed. Closed

Original comment by antoniov...@gmail.com on 16 Jun 2011 at 10:22

GoogleCodeExporter commented 9 years ago
Thanks for confirming, closing the issue.

Original comment by erwin.coumans on 16 Jun 2011 at 11:39