<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>cocos2d for iPhone &#187; Topic: Chipmunk won&#039;t compile</title>
		<link>http://www.cocos2d-iphone.org/forum/topic/4353</link>
		<description>A fast, easy to use, free, and community supported 2D game engine</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 02:10:03 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.cocos2d-iphone.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.cocos2d-iphone.org/forum/rss/topic/4353" rel="self" type="application/rss+xml" />

		<item>
			<title>Gray Olson on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-102459</link>
			<pubDate>Sun, 03 Jul 2011 03:49:43 +0000</pubDate>
			<dc:creator>Gray Olson</dc:creator>
			<guid isPermaLink="false">102459@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>that makes sense, search paths are deliminated by whitespace...
</p></description>
		</item>
		<item>
			<title>antoniom on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-102427</link>
			<pubDate>Sat, 02 Jul 2011 21:20:39 +0000</pubDate>
			<dc:creator>antoniom</dc:creator>
			<guid isPermaLink="false">102427@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi all,<br />
i had this problem too (new chipmunk files from template didn't compile). I resolved by creating a new project without spaces in the name.</p>
<p>Hope this helps...
</p></description>
		</item>
		<item>
			<title>Rifat Dover on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-82444</link>
			<pubDate>Tue, 15 Mar 2011 18:37:13 +0000</pubDate>
			<dc:creator>Rifat Dover</dc:creator>
			<guid isPermaLink="false">82444@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>ur welcome :D:D:D
</p></description>
		</item>
		<item>
			<title>edaniels on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-81172</link>
			<pubDate>Wed, 09 Mar 2011 22:46:49 +0000</pubDate>
			<dc:creator>edaniels</dc:creator>
			<guid isPermaLink="false">81172@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@nsoft &#38; Rifat:</p>
<p>T H A N K Y O U ! !</p>
<p>That was driving me crazy...
</p></description>
		</item>
		<item>
			<title>Rifat Dover on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-77403</link>
			<pubDate>Sat, 19 Feb 2011 23:23:06 +0000</pubDate>
			<dc:creator>Rifat Dover</dc:creator>
			<guid isPermaLink="false">77403@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Remove quotation marks (if you have) while you are adding Chipmunk to your header search paths like<br />
WRONG : <strong>“</strong>$(SRCROOT)/libs/Chipmunk/include/chipmunk<strong>”</strong><br />
RIGHT : $(SRCROOT)/libs/Chipmunk/include/chipmunk
</p></description>
		</item>
		<item>
			<title>nfsoft on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-52235</link>
			<pubDate>Thu, 26 Aug 2010 06:14:06 +0000</pubDate>
			<dc:creator>nfsoft</dc:creator>
			<guid isPermaLink="false">52235@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I have just started cocos2d and ran into this situation as well.  Naturally I googled and ended up here.  It seems the answer has not been fully given here, although a hint above brought me to the right place to search, so I'll add it here in case anyone else has problem.</p>
<p>Subject: adding Chipmunk to an existing Cocos2d-iphone project led to errors during compile because "constraints/util.h" is missing.<br />
Solution:<br />
Since during the "Add to Project" phase, I added Chipmunk to cocos2d libraries in the "Add To Targets" box.<br />
1)  Right click "Targets &#62; cocos2d libraries" and click "Get Info".<br />
2)  Scroll down to "Search Paths"<br />
3)  In "Header Search Paths" add "Chipmunk/include/chipmunk".  Check this path by looking in finder to where XCode put your Chipmunk folder.<br />
4)  Compile and in my case it compiles.</p>
<p>Notice I have not added Space Manager yet and also I haven't wrote one single code to work with Chipmunk so yeah =)  at least it compiled.
</p></description>
		</item>
		<item>
			<title>Paul10 on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-49030</link>
			<pubDate>Wed, 04 Aug 2010 17:35:15 +0000</pubDate>
			<dc:creator>Paul10</dc:creator>
			<guid isPermaLink="false">49030@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Are you using cocos2d or just trying to add chipmunk into your project? If you loaded cocos2d right, Chipmunk shouldn't have any problems since it's bundled.
</p></description>
		</item>
		<item>
			<title>popgoblin on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-40881</link>
			<pubDate>Wed, 09 Jun 2010 08:42:08 +0000</pubDate>
			<dc:creator>popgoblin</dc:creator>
			<guid isPermaLink="false">40881@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>man, i had problems with the "constraints/util.h" thingy too. I've check header search paths in targets, double-cheked file locations etc. for hours - to no avail. arrrg.</p>
<p>Had to resort to deleting the "constraints" part... </p>
<p>i wonder what the problem is (probably small thing somewhere...)
</p></description>
		</item>
		<item>
			<title>jamessun on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34395</link>
			<pubDate>Sat, 17 Apr 2010 12:29:17 +0000</pubDate>
			<dc:creator>jamessun</dc:creator>
			<guid isPermaLink="false">34395@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/6527'>davecom</a> - That makes sense... thanks for the tip!
</p></description>
		</item>
		<item>
			<title>davecom on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34386</link>
			<pubDate>Sat, 17 Apr 2010 08:19:27 +0000</pubDate>
			<dc:creator>davecom</dc:creator>
			<guid isPermaLink="false">34386@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/7613'>jamessun</a></p>
<p>To fix those warnings, just add a "default: break;" option to the switch statements that it has warnings on - at least that's what I did.
</p></description>
		</item>
		<item>
			<title>jamessun on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34330</link>
			<pubDate>Fri, 16 Apr 2010 19:47:31 +0000</pubDate>
			<dc:creator>jamessun</dc:creator>
			<guid isPermaLink="false">34330@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>@<a href='http://www.cocos2d-iphone.org/forum/profile/3692'>Webtopia</a> - I had the same problems with SpaceManager as you described.  Take a look at this <a href="http://www.mobile-bros.com/forum/viewtopic.php?f=3&#38;t=12&#38;start=0">post</a> from the mobile bros. forum to see if it fixes your problems.  It worked for me, although I still get a few warnings.</p>
<p>HTH,<br />
James
</p></description>
		</item>
		<item>
			<title>Webtopia on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34179</link>
			<pubDate>Thu, 15 Apr 2010 13:47:34 +0000</pubDate>
			<dc:creator>Webtopia</dc:creator>
			<guid isPermaLink="false">34179@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I'm not sure this is the problem.  I created a new cocos2d+chipmunk app then I looked at the Library Search Paths in the Target info but there's nothing there.</p>
<p>I solved the problem by just replacing contraints/util.h with util.h in the chipmunk documents.  </p>
<p>But there's more problems with SpaceManager.  I downloaded the new version of SpaceManager but it still makes reference to AtlasSprite </p>
<p>In cpAtlasSprite.h I found</p>
<pre><code>@interface cpAtlasSprite : AtlasSprite&#60;cpCCNodeDelegate&#62;
{
	CPCCNODE_MEM_VARS;
}</code></pre>
<p>and AtlasSpriteManager </p>
<p>which causes a problem.</p>
<p>I've changed them to CCSprite and CCSpriteSheet respectively but it still has a problem with the cpCCNodeDelegate</p>
<p>In cpAtlasSprite.m</p>
<p>when I change AtlasSpriteManager to CCSpriteSheet like this</p>
<pre><code>-(id)initWithShape:(cpShape*)shape manager:(CCSpriteSheet*)sm rect:(CGRect)rect
{
	[super initWithRect:rect spriteManager:sm];</code></pre>
<p>I get the warning,</p>
<p>CCSprite may not respond to initWithRect:SpriteManager</p>
<p>Any ideas on the problems here?
</p></description>
		</item>
		<item>
			<title>davecom on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34147</link>
			<pubDate>Thu, 15 Apr 2010 06:46:07 +0000</pubDate>
			<dc:creator>davecom</dc:creator>
			<guid isPermaLink="false">34147@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I haven't dealt with this myself - but my guess would be to checkout the search path for a new project from the Chipmunk template and copy that path into your project.  Yes, that will be in Get Info for your Target I think in Build Settings.
</p></description>
		</item>
		<item>
			<title>Webtopia on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-34145</link>
			<pubDate>Thu, 15 Apr 2010 06:14:58 +0000</pubDate>
			<dc:creator>Webtopia</dc:creator>
			<guid isPermaLink="false">34145@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hi,</p>
<p>Sorry I'm having the same problem and I just can't work out what to do.  Do you mean I need to add something in the build settings?</p>
<p>Where do I find the search path?  What do I need to add and where do I need to add it?</p>
<p>Any help is greatly appreciated.</p>
<p>Thanks,<br />
Travis
</p></description>
		</item>
		<item>
			<title>Metric on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-26039</link>
			<pubDate>Tue, 09 Feb 2010 02:38:43 +0000</pubDate>
			<dc:creator>Metric</dc:creator>
			<guid isPermaLink="false">26039@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>I had a feeling it was something like that Riq. I just can't seem to find the directories search path.</p>
<p>Thanks,<br />
Metric
</p></description>
		</item>
		<item>
			<title>riq on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-26033</link>
			<pubDate>Tue, 09 Feb 2010 00:54:26 +0000</pubDate>
			<dc:creator>riq</dc:creator>
			<guid isPermaLink="false">26033@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>You need to include some directories in the search path.<br />
See the "cocos2d + chipmunk" project as a reference, or create a new cocos2d+chipmunk from the template and place your games files on that template.
</p></description>
		</item>
		<item>
			<title>Metric on "Chipmunk won&#039;t compile"</title>
			<link>http://www.cocos2d-iphone.org/forum/topic/4353#post-26011</link>
			<pubDate>Mon, 08 Feb 2010 22:26:14 +0000</pubDate>
			<dc:creator>Metric</dc:creator>
			<guid isPermaLink="false">26011@http://www.cocos2d-iphone.org/forum/</guid>
			<description><p>Hey,</p>
<p>I am trying to add chipmunk to my game, but it won't compile because it is saying that it cannot find "constraints/util.h".</p>
<p>I am trying to use the chipmunk included with 0.99.0RC cocos2d.</p>
<p>I have looked in the folder and util.h is in include/chipmunk/constraints/ so it is there.</p>
<p>I am also receiving other errors and warnings to do with asm / including { of some sort.</p>
<p>I have it configured to compile C++, because I have open feint in the application and it compiles just fine. The file I am trying to include chipmunk in is also set to .mm extension.</p>
<p>Any help would be appreciated,<br />
Metric
</p></description>
		</item>

	</channel>
</rss>

