Hi
I just wanted to have a look at box2d and used the supplied template. Unfortunately the first build, without changing anything gave me 172 warnings ?! Did I miss anything ?
-mc
A fast, easy to use, free, and community supported 2D game engine
Hi
I just wanted to have a look at box2d and used the supplied template. Unfortunately the first build, without changing anything gave me 172 warnings ?! Did I miss anything ?
-mc
Ok, I have it down to 138 after seeing that there is some deprecated stuff in the cocosLive, but still ?!
Going through the forum also pointed out some things, but I thought the template was ready to go ?
Never tried Box2D until now, and have the same problem :(
@mcbass:
I like to help people and I do it a lot. But if you expect a good answer, please post a good question.
please read carefully the "README BEFORE POSTING" thread:
http://www.cocos2d-iphone.org/forum/topic/3
specially the section "How to ask questions ?"
thanks.
I updated my SVN version of cocos2d last week and copied the new templates over. I then created a new project based on the cocos2d+box2d template and it built and ran without any problems. The only thing it balked at was the default setting of using the iPhone simulator 2.2.1 whereas I'm on SL and had to set it to iPhone simulator 3.0.
Regards
@rig I am sorry, I had a ruff day and thought I could get my mind off playing something easy. I really do appreciate the work you put in this.
So letz start again... and trying to ask a good question.
I get a lot of warnings, but the project compiles and works. Since there is a reason for the warning I guess I better not ignore it. I must have done something wrong at some point since nobody seems to have the problem, at least not since you guys introduced the templates.
For the 3 .mm files in the template I get 10 (each) "Statement has no effect" warnings. All refer to some kind of usage of B2_NOT_USED(d);
Then there comes a lot of warnings like this :
:0:0 ld: warning: b2Vec2::b2Vec2(float, float)has different visibility (default) in ../build/Debug-iphonesimulator/libcocos2d libraries.a(b2CollideCircle.o) and (hidden) in ../build/CoinDrop.build/Debug-iphonesimulator/CoinDrop.build/Objects-normal/i386/HelloWorldScene.o
So I hope someone can make sence out of this.
-mc
p.s. this day just did it for me. glad its over now
I had the same warnings, what you want to do is just track them down.
The one that is an error, is b2Assert checks to see if a uint is >= to zero, which is impossible for it not to be.
@mcbass: the warnings you are getting comes from box2d. the ones that says B2_NOT_USED(d) can be safely ignored.
The other warnings can also be safely ignored, but I don't know how to fix them without modifying box2d. I prefer not to modify external code unless it is strictly necessary.
In summary, the warnings you are getting from the cocos2d+box2d template can be safely ignored.
On the other hand, the cocos2d+chipmunk template and the cocos2d standalone template should not raise any warning.
I do understand your position, not want to get involved with external code. As soon as a new version comes out you have to do it again.
I havent played with chipmunk since I had the impression that most developers here prefer box2d. The normal template works fine ;)
So, you also get the warnings with box2d?
Yes, I do get some warnings when using the cocos2d+box2d template.
the v0.8.2-rc1 template has less warnings than previous ones, since it uses a newer box2d version (which has less warnings)
Hi I a new at cocos2d, i am trying to find out how to flick an object into a basket. I am using Version 1.0. Help would be appricated. Thanks
You will get no help using and old thread and asking such a question.
Thanks, I start a new one and give more detail.
You must log in to post.