iOS SDK 4.3 and few compilation errors

Matic
Posts: 5
Joined: Tue Apr 05, 2011 3:05 pm

iOS SDK 4.3 and few compilation errors

Post by Matic »

Hello,

I have followed this tutorial: http://bulletphysics.org/mediawiki-1.5. ... om_scratch but I cannot compile my Hello World project. I get this error: "error: BulletDynamics/btBulletDynamicsCommon.h: No such file or directory". Framworks are in /Library/Frameworks and I have added them to Xcode project. Please help!

Thanks!
Last edited by Matic on Sat Apr 09, 2011 8:33 am, edited 1 time in total.
Matic
Posts: 5
Joined: Tue Apr 05, 2011 3:05 pm

Re: No such file or directory (Xcode- Framework)

Post by Matic »

I have successfuly included Frameworks in my project but I get following error: Lexical or Preprocessor Issue 'cstdlib' file not found? What can I do?


Thanks!
Matic
Posts: 5
Joined: Tue Apr 05, 2011 3:05 pm

Re: No such file or directory (Xcode- Framework)

Post by Matic »

so nobody is usinge Bullety Physics with iOS SDK 4.3? I really need some guidance. Thanks in advance for help!
Matic
Posts: 5
Joined: Tue Apr 05, 2011 3:05 pm

Re: No such file or directory (Xcode- Framework)

Post by Matic »

These are compilation errors. Any ideas?
You do not have the required permissions to view the files attached to this post.
Matic
Posts: 5
Joined: Tue Apr 05, 2011 3:05 pm

Re: iOS SDK 4.3 and few compilation errors

Post by Matic »

For all that have problems with Bullet Physics and Objective-C - change your Objective-C file to Objective-C++ and you can include Bullet Physics into OC file.

I need to compile Bullet Physics into Frameworks for iOS. What do I have to change in CMAKE file for iOS (ARM) compilation?
ghertum
Posts: 3
Joined: Wed Jan 26, 2011 11:11 pm

Re: iOS SDK 4.3 and few compilation errors

Post by ghertum »

Matic wrote: I need to compile Bullet Physics into Frameworks for iOS. What do I have to change in CMAKE file for iOS (ARM) compilation?
Haven't tried to create a framwork, but you can easily create a static library for iOS by changing some minor stuff in the "Extras/AllBulletDemosOSX"-project and creating a new static library build target. I haven't managed to do the same with cmake.
AffluentNerd
Posts: 2
Joined: Thu Jun 14, 2012 6:04 am

Re: iOS SDK 4.3 and few compilation errors

Post by AffluentNerd »

There is a tutorial with step by step instructions for integrating Bullet Physics with iOS 5.x and Apple's GLKit framework and OpenGL ES 2.0 http://www.informit.com/articles/article.aspx?p=1914612

The example code downloadable with the tutorial will get you started quickly and produces an interesting simulation.
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA

Re: iOS SDK 4.3 and few compilation errors

Post by Erwin Coumans »

@ AffluentNerd Thanks for the tutorial link!

The latest SVN trunk should compile out-of-the-box for iOS when using premake. In a nutshell you can run the following commands to generate Xcode files with iOS support:

cd build
./premake_osx --ios xcode4

Apple contributed some unit tests and optimizations, which are included.
Thanks,
Erwin