How do I build Bullet 2.83 for iOS?

Post Reply
ace491
Posts: 2
Joined: Sat Dec 06, 2014 6:39 pm

How do I build Bullet 2.83 for iOS?

Post by ace491 »

Bullet 2.83 doesn't seem to have any scripts specifically for iOS. premake4_osx doesn't look like it has the same options as it did for 2.82. premake4_osx --platform=iphone xcode4 gives bullet3 errors. Adding an iOS target to the Xcode projects also gives errors. I simply don't know enough in general about building libraries for specific platforms/architectures. Can I build 2.83 for iOS? If so, what should I be doing?
User avatar
Erwin Coumans
Site Admin
Posts: 4221
Joined: Sun Jun 26, 2005 6:43 pm
Location: California, USA
Contact:

Re: How do I build Bullet 2.83 for iOS?

Post by Erwin Coumans »

The --ios option was left out indeed, as one of the todo's for an upcoming 2.84 release.

Here is a pull request that re-enables the ios option:
https://github.com/bulletphysics/bullet3/pull/382

usage:
cd build3
./premake4_osx --ios xcode4
open xcode4ios/0_Bullet3Solution.xcworkspace


Aside from this, it is simple to add Bullet to an existing iOS or Android project:

1) Add the 'Bullet/src' folder to the header file includes search path.

2) Recursively add the source files of the following folders to your path. In Xcode you can simply drag those folders into your project:

Bullet/src/BulletSoftBody
Bullet/src/BulletDynamics
Bullet/src/BulletCollision
Bullet/src/LinearMath

Hope this helps,
Erwin
ace491
Posts: 2
Joined: Sat Dec 06, 2014 6:39 pm

Re: How do I build Bullet 2.83 for iOS?

Post by ace491 »

I was able to get it to work with your help! Thank you!
albenchers
Posts: 6
Joined: Sun Jan 17, 2016 7:32 pm

Re: How do I build Bullet 2.83 for iOS?

Post by albenchers »

This is an older thread, but can I ask for quick clarification: Are adding the src/ files directly to an ios project enough? Were you suggesting that you don't actually need to pre-build the binaries with premake if you instead add all the source to the project directly?
Post Reply