i have readed Creating a project from scratch using XCode
i had this issues:
Code: Select all
"btTypedConstraint::serialize(void*, btSerializer*) const", referenced from:
"btAlignedFreeInternal(void*)", referenced from:
then you have to include the Bullet frameworks in your Xcode project. Make sure they are built and installed like this (This is without Xcode, maybe there is some way to make them in Xcode too, I don't know):
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
sudo make install
i have this log:
Code: Select all
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:
"_clGetProgramInfo", referenced from:
CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Undefined symbols:
"_clGetProgramInfo", referenced from:
CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
CLFunctions::compileCLKernelFromString(char const*, char const*, char const*)in btSoftBodySolver_OpenCL.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/zm/zmsG5haUFwG-RvEo3bYwRE+++TI/-Tmp-//ccGK41tT.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/BulletSoftBodySolvers_OpenCL_Mini.dir/all] Error 2
make: *** [all] Error 2
sefis-Mac-Pro:bullet-2.78 sefi$
are this errors normal?
i have found that is an issue fixed, i redownload from svn and retry