I grabbed the addons folder an dropped it to my xcode and asked it to link “relative to project”
I downloaded the latest bullet code from http://www.bulletphysics.com/ and copied the ‘src’ folder to the specified folder and renamed the ‘src’ to bullet.
One thing that I noticed is that the example file “testApp.cpp” was trying to inlcude a file called “ofxMSABulletPhysics.h” which apparently no longer exists. So I changed the include to “MSABulletPhysics.h”.
When trying to compile I get thousands of errors, but the first one is that the file “LinearMath/btVector3.h” could not be found, even thought it is there inside the “addons/msalibs/MSABulletPhysics/lib/bullet/LinearMath/btVector3.h” folder.
What am I doing wrong here?
Sorry for such a newby question.
All the best,
HEMOglobina
me too have problems trying to compile it ! but have found this on the cinder forum about MSAPhysics not MSAPysicBullet (but there are interesting things):http://forum.libcinder.org/#topic/23286000000521009 there is a #define in mSACore.h to uncomment. in this way i’havent 25.000 errors but less…lol
hope this help and someone else maybe can explain exactly what we have to do…
thanks
tryed to compile again (only MSABulletPhysics and of course MSACore) but without success…see my attached log file.
also i put on screenshot of my project and the othe of mSACore.f file. Is it all right?
seems that is a problem in cindermath.h and also i noticed that can’t find MSABulletRigidWorld but i have added in my src and in the project … what 's happen here?
who can help me please?
Many thanks
p.s. i’m using OF version 0.0061
1>------ Inizio compilazione: Progetto: allAddonsExample, Configurazione: Release Win32 ------
1>Compilazione in corso…
1>MSABulletWorldBase.cpp
1>MSABulletRigidBody.cpp
1>c:\openframework\of_prerelease_v0061_vs2008_fat\addons\msabulletphysics\src\MSABulletRigidBody.h(26) : error C2061: errore di sintassi: identificatore ‘Vec3f’
1>…\addons\MSABulletPhysics\src\MSABulletRigidBody.cpp(27) : error C2511: ‘void MSA::BulletRigidBody::setup(MSA::Vec3f &,btCollisionShape *,bool,float)’: funzione membro in overload non trovata in ‘MSA::BulletRigidBody’
1> c:\openframework\of_prerelease_v0061_vs2008_fat\addons\msabulletphysics\src\MSABulletRigidBody.h(19): vedere la dichiarazione di ‘MSA::BulletRigidBody’
1>ofx3dModelLoader.cpp
1>c:\openframework\of_prerelease_v0061_vs2008_fat\addons\ofx3dmodelloader\src\ofx3DModelLoader.h(4) : fatal error C1083: Impossibile aprire il file inclusione ‘model3DS.h’: No such file or directory
1>testApp.cpp
1>.\src\testApp.cpp(4) : error C2146: errore di sintassi: ‘;’ mancante prima dell’identificatore ‘world’
1>.\src\testApp.cpp(4) : error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>.\src\testApp.cpp(4) : error C4430: identificatore di tipo mancante, verrà utilizzato int. Nota: default-int non è più supportato in C++
1>.\src\testApp.cpp(8) : error C2228: l’elemento a sinistra di ‘.setup’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(61) : error C2228: l’elemento a sinistra di ‘.addBulletRigidBody’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(65) : error C2228: l’elemento a sinistra di ‘.createRigidSphere’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(71) : error C2228: l’elemento a sinistra di ‘.update’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(78) : error C2228: l’elemento a sinistra di ‘.getBulletWorld’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(78) : error C2228: l’elemento a sinistra di ‘.getNumCollisionObjects’ deve avere una classe, struttura o unione
1>.\src\testApp.cpp(80) : error C2228: l’elemento a sinistra di ‘.debugDraw’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(84) : error C2228: l’elemento a sinistra di ‘.getBulletWorld’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>.\src\testApp.cpp(84) : error C2228: l’elemento a sinistra di ‘.getCollisionObjectArray’ deve avere una classe, struttura o unione
1>.\src\testApp.cpp(109) : error C2228: l’elemento a sinistra di ‘.createRigidSphere’ deve avere una classe, struttura o unione
1> il tipo è ‘int’
1>Generazione del codice in corso…
1>Il log di compilazione è stato salvato in ‘file://c:\openFramework\of_preRelease_v0061_vs2008_FAT\apps\addonsExamples\MSABulletexample\obj\Release\BuildLog.htm’
1>allAddonsExample - 16 errore/i, 0 avviso/i
========== Compilazione: 0 completate, 1 non riuscite, 1 aggiornate, 0 ignorate ==========
who have an idea how to solve this?
Thanks in advance