Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up Bullet Physics for iOS in XCode 4
    text
    copied!<p>So, I have downloaded the latest Bullet Physics package (2.78) and I have read the "Getting Started" documentation, which even includes an article on setting up a project in XCode from scratch (but not targeted at iOS nor XCode 4, which is what I'm using). Even so, I am still not able to set this up.</p> <p>The following are the steps I'm currently taking:</p> <ol> <li><p>I'm adding the Bullet Physics "src" folder in the classes of the Xcode</p></li> <li><p>I'm including the Bullet Physics "src" folder path in the debug and release "Header Search Paths" in XCode</p></li> <li><p>I add #include "btBulletDynamicsCommon.h" to the file where I want to use Bullet Physics</p></li> <li><p>I change the Objective-C file to Objective-C++ by changing its file extension from "m" to "mm". This is the file where the "btBulletDynamicsCommon.h" is included</p></li> </ol> <p>After I follow these steps, the compiler complaints about missing files (first few errors, there are 999+ errors shown when I try to build).</p> <p>These are the first few headers missing in the btSoftBodySolverVertexBuffer_DX11.h:</p> <pre><code>#include &lt;windows.h&gt; #include &lt;crtdbg.h&gt; #include &lt;d3d11.h&gt; #include &lt;d3dx11.h&gt; #include &lt;d3dcompiler.h&gt; </code></pre> <p>Now, I'm pretty new with XCode and iOS, so the fact that these are missing doesn't really tell me much on how to solve this issue, and it makes me even wonder if they are at all needed for <strong>iOS</strong> development given the appended "DX11" on the file name that is having this issue.</p> <p>So, what I would appreciate is either information on what's possibly wrong, or information on how to set up Bullet Physics to be used with <strong>iOS</strong> in XCode 4, from scratch.</p> <p>Thanks.</p> <p><strong>Update: I have completely removed the DX11 and OpenCL and I'm now able to compile after step 4 above. I have not yet actually tested the Bullet Physics framework to see if it works without issues. But this now leads me to ask:</strong></p> <p><strong>What are the specific source files/folders that are strictly necessary to run Bullet Physics in iOS?</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload