Compiling svn1482 of Bullet I got this error
[ 89%] Building CXX object src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/PosixThreadSupport.o
/home/user/bullet_root/src/BulletMultiThreaded/PosixThreadSupport.cpp: In function ‘sem_t* createSem(const char*)’:
/home/user/bullet_root/src/BulletMultiThreaded/PosixThreadSupport.cpp:58: error: ‘O_CREAT’ was not declared in this scope
make[2]: *** [src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/PosixThreadSupport.o] Error 1
make[1]: *** [src/BulletMultiThreaded/CMakeFiles/BulletMultiThreaded.dir/all] Error 2
make: *** [all] Error 2
I am on an up-to-date Debian GNU/Linux testing "Lenny" on x86 32bit (single core CPU).
I am using cmake/make/gcc as found in Debian repository.
I tried to add
Code: Select all
#include <semaphore.h>
Thanks for your great work.
Luca Favatella