Build error in linux system

peacemoon
Posts: 15
Joined: Wed Sep 03, 2008 12:52 pm

Build error in linux system

Post by peacemoon »

I have some errors when i try to build bullet in my system.
here is my system information

Code: Select all

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 16
model           : 2
model name      : AMD Phenom(tm) 9500 Quad-Core Processor
stepping        : 2
cpu MHz         : 2200.145
cache size      : 512 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 5
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs
bogomips        : 4553.61
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate
And here are errors

Code: Select all

Scanning dependencies of target LibBulletMultiThreaded
[ 90%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/SpuFakeDma.o
[ 90%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/SpuLibspe2Support.o
[ 90%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/btThreadSupportInterface.o
[ 90%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/Win32ThreadSupport.o
[ 90%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/PosixThreadSupport.o
[ 91%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/SequentialThreadSupport.o
[ 91%] Building CXX object Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/SpuSampleTaskProcess.o
/home/tranbinhan/Desktop/Hiwi/Bullet/bullet-2.70/Extras/BulletMultiThreaded/SpuSampleTaskProcess.cpp: In member function 'v                                                      oid SpuSampleTaskProcess::issueTask(void*, int, int)':
/home/tranbinhan/Desktop/Hiwi/Bullet/bullet-2.70/Extras/BulletMultiThreaded/SpuSampleTaskProcess.cpp:133: error: cast from                                                       'SpuSampleTaskDesc*' to 'uint32_t' loses precision
make[2]: *** [Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/SpuSampleTaskProcess.o] Error 1
make[1]: *** [Extras/BulletMultiThreaded/CMakeFiles/LibBulletMultiThreaded.dir/all] Error 2
make: *** [all] Error 2
I hope someone can help me.
Thanks
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: Build error in linux system

Post by John McCutchan »

Hi peacemoon,

Currently BulletMultiThreaded isn't supported on 64-bit platforms. Some minor work remains done to make the code portable. Patches are always appreciated. It is on our TODO list but I can't give you a time estimate when this will be supported.

Thanks,
John
peacemoon
Posts: 15
Joined: Wed Sep 03, 2008 12:52 pm

Re: Build error in linux system

Post by peacemoon »

Hi,
thank you for the quick answer.
I just want to ask one more question. Can i still build bullet without BulletMultiThreaded? and Can i still use Bullet without BulletMultiThreaded? How does it affect the performance of Bullet?
Sorry, i am totally new at Bullet.
Thanks
User avatar
John McCutchan
Posts: 133
Joined: Wed Jul 27, 2005 1:05 pm
Location: Berkeley, CA

Re: Build error in linux system

Post by John McCutchan »

peacemoon,

Yes you can still build and use Bullet without BulletMultiThreaded. Bullet is highly modular and supports many combinations of subsystems. BulletMultiThreaded speeds up Bullet on multi-core machines by providing parallelized versions of the collision detection and constraint solving subsystems.

Thanks,
John