Box2D Forums

It is currently Sat May 25, 2013 11:41 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sat Jun 06, 2009 8:40 am 
Offline

Joined: Sat Jun 06, 2009 8:37 am
Posts: 2
Hi,

I grabbed the latest SVN snapshot (i want to use edge lists) and tried to build a static library using XCode. It turns out that the current XCode project in SVN is missing a bunch of files from the collision directory.

So if your getting linking problems when including a static Box2D lib in your iphone project, go back to the Box2D project, and add existing files in the collision directory.

Of course, im begining to wonder if im the only person in the known universe compiling Box2D to a static lib.

ciao


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 9:37 am 
Offline

Joined: Mon Jan 07, 2008 10:51 am
Posts: 1911
There's quite a few combinations of deployment. This and the ongoing development mean the project files can be quite frequently broken. We'll try to make an effort to update them for major releases, but you're on your own in between. If you have already adjusted them to be up to date, perhaps you'd like to publish the patch updating it?


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 9:45 am 
Offline

Joined: Tue Mar 24, 2009 6:13 am
Posts: 95
I downloaded latest SVN Box2d version and I have a lot of linking problems (when building test program) if I try to compile trunk\Build\iPhone\Box2D\Box2D.xcodeproj

Do you have the same problem?

Bu the way, how can I do a static lib for the iPhone?

Thanks a lot ;)


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 12:38 pm 
Offline

Joined: Tue Mar 24, 2009 6:13 am
Posts: 95
I don't know what's going on. I took revison 192 meanwhile.

One question, is it legal to use static libs on the iPhone? I thought there were some legal issues.
If you don't mind, can you explain me how to create a lib?

Thanks.


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 1:52 pm 
Offline

Joined: Sun Sep 23, 2007 2:35 pm
Posts: 803
The XCode project has been in a similar state for a while, always a bit behind, mainly because it lacks an active maintainer.

I use XCode only when absolutely necessary, so I don't really know how to set things up properly and can't really step in here (when I do get things running there, it's largely trial and error, so I'm not comfortable maintaining the project). If there's someone that knows what they're doing, Erin would probably be fine with giving them SVN commit rights to maintain this build, so let us know.

Re: static libs on the iPhone, I've never heard of a legal issue there; do you have a source for that concern?


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 7:54 pm 
Offline

Joined: Sat Jun 06, 2009 8:37 am
Posts: 2
Once i finish my current project ill look at committing back both a static library target, and a fix to the normal XCode project. Probably be a week or so away. Im currently trying to crank out a Iphone game in a week, as sort of a crazy challenge/dare/other thing. Ill ask for further advice on how to do this (and your standards in checkins etc) closer to the date.

Im not a lawyer, and thusly am unable to give actual legal advice.
From a technical point of view, linking statically is no different to including the code in your project. It would pay to read the license for code you either place in your project, or link statically. If you have legal concerns, please seek actual legal advice.

As far as the Iphone goes, you cannot use dynamic lib's as part of their security setup. So any library code that you do use, needs to be linked statically, or compiled as part of the project. Again, check the license and/or seek legal counsel if this is a problem.

Creating a static lib target in XCode is rather simple, Rather than try and describe how to do it here, read the documentation for creating targets in the XCode help, Its far more correct than i will be :)


Top
 Profile  
 
PostPosted: Sat Jun 06, 2009 9:08 pm 
Offline

Joined: Sun Sep 23, 2007 2:35 pm
Posts: 803
Matt_D wrote:
From a technical point of view, linking statically is no different to including the code in your project.

Right - that's what I've done whenever I've played around with Box2d, just dropped the source in. I'd actually recommend that approach, as you can edit anything you need to from within the project itself, and since Box2d doesn't get most of its attention compiling for ARM, it's always possible that some changes will need to happen.

Good luck with the game, I'll be interested in giving it a try when it's ready!


Top
 Profile  
 
PostPosted: Sun Jun 07, 2009 8:30 pm 
Offline

Joined: Sun Jun 07, 2009 8:26 pm
Posts: 1
Thanks, ricardo_ruiz_lopez!

I wasted a few hours trying to get the latest testbed working for the iPhone simulator, but revision 192 works like a charm.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group