Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Box2D under Android NDK
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 26 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Danny Brain  
View profile  
 More options Jun 27 2009, 2:23 am
From: Danny Brain <tehdan...@gmail.com>
Date: Fri, 26 Jun 2009 23:23:09 -0700 (PDT)
Local: Sat, Jun 27 2009 2:23 am
Subject: Box2D under Android NDK
Hey,

I'm attempting to build Box2D under Android NDK for a game I'm
planning to write.. and for science I guess.
Currently I'm experiencing an issue with a few missing includes. These
are:
- #include <memory>
- #include <climits>
- #include <cstring>
- #include <cstdlib>

I was wondering if anyone could guide me on either enabling support
for these includes under the NDK, or replacing their usage with
something NDK friendly.
Bear in mind I'm a bit of a C++ newbie and come primarily from a Java
background.

Thanks,
Danny.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Hutt  
View profile  
 More options Jun 27 2009, 7:17 am
From: Tim Hutt <tdh...@gmail.com>
Date: Sat, 27 Jun 2009 12:17:34 +0100
Local: Sat, Jun 27 2009 7:17 am
Subject: Re: Box2D under Android NDK
2009/6/27 Danny Brain <tehdan...@gmail.com>:

> Hey,

> I'm attempting to build Box2D under Android NDK for a game I'm
> planning to write.. and for science I guess.
> Currently I'm experiencing an issue with a few missing includes. These
> are:
> - #include <memory>
> - #include <climits>
> - #include <cstring>
> - #include <cstdlib>

Try:

#include <memory.h>
#include <limits.h>
#include <string.h>
#include <stdlib.h>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jun 27 2009, 12:26 pm
From: Danny Brain <tehdan...@gmail.com>
Date: Sat, 27 Jun 2009 09:26:40 -0700 (PDT)
Local: Sat, Jun 27 2009 12:26 pm
Subject: Re: Box2D under Android NDK
Thanks! Got it compiling and hacked out a ball bouncing test. Time
stepping etc. feels a bit wrong.. i.e. too slow, but the performance
is *so* much better than JBox2D (thanks to the whole no garbage
collection thing).
Here are my slop projects if anyone is looking to do this.

http://danish.boredprogrammers.com/abox2d.tar.bz2 - The NDK source
code.
http://danish.boredprogrammers.com/chronobox.tar.bz2 - The android
source code.

On Jun 27, 9:17 pm, Tim Hutt <tdh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ogi  
View profile  
 More options Jun 27 2009, 2:20 pm
From: ogi <ogi.andr...@gmail.com>
Date: Sat, 27 Jun 2009 11:20:09 -0700 (PDT)
Local: Sat, Jun 27 2009 2:20 pm
Subject: Re: Box2D under Android NDK
How did you pass the issue of no STL support in the NDK?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jun 27 2009, 8:48 pm
From: Danny Brain <tehdan...@gmail.com>
Date: Sat, 27 Jun 2009 17:48:03 -0700 (PDT)
Local: Sat, Jun 27 2009 8:48 pm
Subject: Re: Box2D under Android NDK
I didn't I guess. At most I replaced STL includes with equivalent
standard headers. My fixes were:
- What Tim Hutt said ;) (changing includes from <climits> to
"limits.h" and so on)
- Adding #include <new> to some files that weren't building.
- Adding a method b2Min(int32 a, int32 b) { ... } because the current
b2Min(T a, T b) was not being found for some reason.

All seems to be working, or at least compiling.

On Jun 28, 4:20 am, ogi <ogi.andr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ogi  
View profile  
 More options Jun 28 2009, 7:48 am
From: ogi <ogi.andr...@gmail.com>
Date: Sun, 28 Jun 2009 04:48:18 -0700 (PDT)
Local: Sun, Jun 28 2009 7:48 am
Subject: Re: Box2D under Android NDK
Your code works for sure. The latest Box2D source I've got from the
repository uses #include <algorithm> and I weren't able to compile it,
so I used your version and made a nice game. I guess you use some
previous version.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jun 28 2009, 7:55 am
From: Danny Brain <tehdan...@gmail.com>
Date: Sun, 28 Jun 2009 04:55:03 -0700 (PDT)
Local: Sun, Jun 28 2009 7:55 am
Subject: Re: Box2D under Android NDK
Don't tell anyone.. but all I did was remote the #include <algorithm>
lines.. they don't seem to be used?
I mean I'm not great at C++ or anything, but if you don't have an
#include it's relying on it shouldn't compile right?

On Jun 28, 9:48 pm, ogi <ogi.andr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ogi  
View profile  
 More options Jun 28 2009, 9:46 am
From: ogi <ogi.andr...@gmail.com>
Date: Sun, 28 Jun 2009 06:46:15 -0700 (PDT)
Local: Sun, Jun 28 2009 9:46 am
Subject: Re: Box2D under Android NDK
Now that's a great thing you did, I would probably never think of it
myself :) Anyway, I'm so glad to have Box2D on Android and it seems
you're one of the first to do it. It handles so many objects without
lagging and runs so smooth. The closest thing in performance I've
tested is Simpull, but it has very limited functionality.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jun 28 2009, 10:39 am
From: Danny Brain <tehdan...@gmail.com>
Date: Mon, 29 Jun 2009 00:39:44 +1000
Local: Sun, Jun 28 2009 10:39 am
Subject: Re: Box2D under Android NDK

Glad to hear it's getting some use :)
Do you have any code samples you'd like to share?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
plusminus (Nicolas Gramlich)  
View profile  
 More options Jul 1 2009, 10:45 am
From: "plusminus (Nicolas Gramlich)" <nicolasgraml...@gmail.com>
Date: Wed, 1 Jul 2009 07:45:43 -0700 (PDT)
Local: Wed, Jul 1 2009 10:45 am
Subject: Re: Box2D under Android NDK
Great Danny, thanks a lot :)
Looks really smooth!

On Jun 27, 6:26 pm, Danny Brain <tehdan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fred Grott  
View profile  
 More options Jul 1 2009, 11:19 am
From: Fred Grott <fred.gr...@gmail.com>
Date: Wed, 1 Jul 2009 10:19:06 -0500
Local: Wed, Jul 1 2009 11:19 am
Subject: Re: Box2D under Android NDK

ah you know there is android port of that engine right?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jul 4 2009, 9:36 am
From: Danny Brain <tehdan...@gmail.com>
Date: Sat, 4 Jul 2009 06:36:18 -0700 (PDT)
Local: Sat, Jul 4 2009 9:36 am
Subject: Re: Box2D under Android NDK
No? Are you talking about JBox2D?

On Jul 2, 1:19 am, Fred Grott <fred.gr...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nEx.Software  
View profile  
 More options Jul 4 2009, 10:06 am
From: "nEx.Software" <email.nex.softw...@gmail.com>
Date: Sat, 4 Jul 2009 07:06:04 -0700 (PDT)
Local: Sat, Jul 4 2009 10:06 am
Subject: Re: Box2D under Android NDK
I believe he is referring to an Android port of JBox2D.

On Jul 4, 6:36 am, Danny Brain <tehdan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jul 5 2009, 6:56 pm
From: Danny Brain <tehdan...@gmail.com>
Date: Mon, 6 Jul 2009 08:56:08 +1000
Local: Sun, Jul 5 2009 6:56 pm
Subject: Re: Box2D under Android NDK

Ah, the android port of the JBox2D test bed?
Either way I've fiddled with JBox2D under android with horribly laggy
results. The garbage collection runs constantly causing major UI lag.
Too many temporary object creations (Vec2 especially).

Either way I think a nice JNI layer on top of Box2D (C++) is the way to go
at the moment.

On Sun, Jul 5, 2009 at 12:06 AM, nEx.Software
<email.nex.softw...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nEx.Software  
View profile  
 More options Jul 6 2009, 9:03 am
From: "nEx.Software" <email.nex.softw...@gmail.com>
Date: Mon, 6 Jul 2009 06:03:30 -0700 (PDT)
Local: Mon, Jul 6 2009 9:03 am
Subject: Re: Box2D under Android NDK
I've been playing around with your project (awesome that you posted
it, by the way) and have gotten pretty good results from it. I am not
doing anything fancy but I was able to place a hundred balls (and
blocks) and still get decent performance. I'm not experienced with C
or C++ (or Box2D) but this seems to be a good way to learn haha. I am
not going to try some other things from the testbed, for my own
learning purposes and my ultimate goal is to create a nice little
game. Thanks for the head start. That break-out type game in the
Market that is using JBox2D would, I think, greatly benefit from using
this approach.

On Jul 5, 3:56 pm, Danny Brain <tehdan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Danny Brain  
View profile  
 More options Jul 6 2009, 7:20 pm
From: Danny Brain <tehdan...@gmail.com>
Date: Tue, 7 Jul 2009 09:20:45 +1000
Local: Mon, Jul 6 2009 7:20 pm
Subject: Re: Box2D under Android NDK

Glad you got some use out of it :)
It can be done a lot cleaner, that code is just my initial hack and slash to
see if I can get it working. But yeah it's a starting point.
I'm also fairly new to C/C++, I've done the odd modification and can read
it, but yeah I've learnt a fair bit playing with the NDK so far.
Currently writing a game using this, and at the same time writing a layer of
Java sitting on top of NDK Box2D so the Android Java code is clean. Will
probably release it when done (writing with a friend so will have to speak
to him).

I noticed the break out style game, emailed the developer (Aki) and linked
him here. Seems to be making progress, he modified his JBox2D tests to also
be run under native Box2D and put it into a demo app. The performance
differences are pretty crazy.
JBox2D started going into crazy garbage collection whenever multiple balls
are added (I'm assuming because of the way it handles contacts), Box2D NDK
stayed fast up to the limit of balls the demo supported (46) the only thing
that dropped a little was FPS.
So definately worth using if you want a game with real physics.

Anyway, have fun with it. Let me know if you have any success stories or
find something cool :)
Lots of possibilities with a proper physics engine.

On Mon, Jul 6, 2009 at 11:03 PM, nEx.Software
<email.nex.softw...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aki  
View profile  
 More options Jul 6 2009, 10:27 pm
From: Aki <akxuc...@gmail.com>
Date: Mon, 6 Jul 2009 19:27:27 -0700 (PDT)
Local: Mon, Jul 6 2009 10:27 pm
Subject: Re: Box2D under Android NDK
Hi all
I made NDK box 2d test apk.
http://code.google.com/p/akjava-android-project/downloads/list
and souce code is avaiable there.

This thread really help me.
Thanks for sharing code and info

On 7月7日, 午前8:20, Danny Brain <tehdan...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tuan.B  
View profile  
 More options Jul 22 2009, 10:32 am
From: "Tuan.B" <tuan.b...@gmail.com>
Date: Wed, 22 Jul 2009 07:32:30 -0700 (PDT)
Local: Wed, Jul 22 2009 10:32 am
Subject: Re: Box2D under Android NDK
Hi,

I'm trying to have fun with the ndk lib sent by Aki. But when I tried
to call CreateBox2 the application crashed.
Createbox2 creates a dynamic body.

Also I'm not able to recompile the lib because I did not succes to
install the NDK tool yet.

If anybody can help it could be great. I reached so many difficulties
to install correctly make and cygwin in windowsXP.

A clear tutorial will be winderful :)

Thanks a lot.

On 7 juil, 04:27, Aki <akxuc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aki  
View profile  
 More options Jul 22 2009, 5:24 pm
From: Aki <akxuc...@gmail.com>
Date: Wed, 22 Jul 2009 14:24:20 -0700 (PDT)
Local: Wed, Jul 22 2009 5:24 pm
Subject: Re: Box2D under Android NDK
hi,
you means apps/box2dtest/project in zip file dont work?
I think it work without ndk.

On 7月22日, 午後11:32, "Tuan.B" <tuan.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tuan.B  
View profile  
 More options Jul 24 2009, 7:02 am
From: "Tuan.B" <tuan.b...@gmail.com>
Date: Fri, 24 Jul 2009 04:02:46 -0700 (PDT)
Local: Fri, Jul 24 2009 7:02 am
Subject: Re: Box2D under Android NDK
Aki,

Yes when I tried to compile your sources and calling createBox2, the
application crashed.

Each time I tries to create a dynamic box, the application crashed.

Do you know how can i fix it?

Thanks a lot.

On Jul 22, 11:24 pm, Aki <akxuc...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aki  
View profile  
 More options Jul 24 2009, 9:35 am
From: Aki <akxuc...@gmail.com>
Date: Fri, 24 Jul 2009 06:35:33 -0700 (PDT)
Local: Fri, Jul 24 2009 9:35 am
Subject: Re: Box2D under Android NDK
Tuan

Unfortunatelly I have no idea about that.

I reccoment you compile hello-jni which include NDK first.
because there are many topics about that and many exprets will answer
your problem.

This page written in Japanese,but pictures will help setup to cygwin.
http://d.hatena.ne.jp/bs-android/20090707/1246952991
And you can learn how to do in android-ndk group.

thanks.

On 7月24日, 午後8:02, "Tuan.B" <tuan.b...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Makoto  
View profile  
 More options Jul 27 2009, 6:49 pm
From: Makoto <inoue...@googlemail.com>
Date: Mon, 27 Jul 2009 15:49:51 -0700 (PDT)
Local: Mon, Jul 27 2009 6:49 pm
Subject: Re: Box2D under Android NDK
Hi, Aki san.

I also tried to build your AndroidBox2dTest, but Eclipse project was
showing the following error message.

Description     Resource        Path    Location        Type
Conversion to Dalvik format failed with error 1 AndroidBox2dTest
Unknown Android ADT Problem
Project 'AndroidBox2dTest' is missing required Java project:
'JBox2DRev'     AndroidBox2dTest                Build path      Build Path Problem
The project cannot be built until build path errors are resolved
AndroidBox2dTest                Unknown Java Problem

The below is how I compiled c libraries. Seems the compilation went
okay. Let me know if there are anything obvious I did wrong.

$ echo $ANDROID_NDK_ROOT
/Applications/android-ndk-1.5_r1
$ cd $ANDROID_NDK_ROOT
$ make APP=hello-jni
Android NDK: Building for application 'hello-jni'
Install        : libhello-jni.so => apps/hello-jni/project/libs/
armeabi

$ cd ~/src/ndkbox2dtest20090707
$ cp * $ANDROID_NDK_ROOT
$ cd $ANDROID_NDK_ROOT
$ make APP=box2dtest
Android NDK: Building for application 'box2dtest'
Compile++ thumb: box2dtest <= sources/box2dtest/box2dtest.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Common/b2Math.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Common/b2Settings.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Common/b2StackAllocator.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Common/b2BlockAllocator.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2CircleContact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2PolyContact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2Contact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2EdgeAndCircleContact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2PolyAndCircleContact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2PolyAndEdgeContact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Contacts/b2ContactSolver.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2Island.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2Body.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2Fixture.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2ContactManager.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2WorldCallbacks.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2EdgeChain.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2GravityController.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2ConstantForceController.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2BuoyancyController.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2Controller.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2TensorDampingController.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Controllers/b2ConstantAccelController.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/b2World.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2Joint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2GearJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2PrismaticJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2MouseJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2RevoluteJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2FixedJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2DistanceJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2LineJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Dynamics/Joints/b2PulleyJoint.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2DynamicTree.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2CollideEdge.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2BroadPhase.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2TimeOfImpact.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2Collision.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2Distance.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2CollidePoly.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2CollideCircle.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/Shapes/b2Shape.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/Shapes/b2PolygonShape.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/Shapes/b2CircleShape.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/Shapes/b2EdgeShape.cpp
Compile++ thumb: box2dtest <= sources/box2dtest/box2d-trunk-27062009/
Collision/b2PairManager.cpp
SharedLibrary  : libbox2dtest.so
Install        : libbox2dtest.so => apps/box2dtest/project/libs/
armeabi

On Jul 24, 2:35 pm, Aki <akxuc...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aki  
View profile  
 More options Jul 28 2009, 1:24 am
From: Aki <akxuc...@gmail.com>
Date: Mon, 27 Jul 2009 22:24:17 -0700 (PDT)
Local: Tues, Jul 28 2009 1:24 am
Subject: Re: Box2D under Android NDK
hi makoto
making lib with NDK seems fine.

My Project need JBox2D for demo.
Remove JBox2DRev from Build path,
and remove all source code using jbox2d.

On 7月28日, 午前7:49, Makoto <inoue...@googlemail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Makoto  
View profile  
 More options Jul 28 2009, 5:32 pm
From: Makoto <inoue...@googlemail.com>
Date: Tue, 28 Jul 2009 14:32:26 -0700 (PDT)
Local: Tues, Jul 28 2009 5:32 pm
Subject: Re: Box2D under Android NDK
Hi, Aki san.

Thank you very much for your guidance. I literally commented out
anything related to JBox2d and seems working fine.

For anyone interested in what I did, here is the diff file
http://gist.github.com/157677

I tried to read the source code so that I can try to port other
library I am interested in porting.

I looked at your source and seems it's pretty similar to an
instruction at http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-meth...

Only thing not mentioned at the instruction above would be to create
Android.mk and specify c/cpp files to include, which is also specified
at (
http://developer.android.com/sdk/ndk/1.5_r1/index.html)

Apart from these two instructions, did you do anything extra to port C/
C++ library for NDK use? Let me know if you have any tips porting C/C+
+ libraries via NDK in general.

If anyone also knows other documents/blogs/instructions related to
porting third party C/C++ library into Android via NDK, please let me
know.

Thanks.

Makoto

On Jul 28, 6:24 am, Aki <akxuc...@gmail.com> wrote:

...

read more »


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aki  
View profile  
 More options Jul 29 2009, 2:03 am
From: Aki <akxuc...@gmail.com>
Date: Tue, 28 Jul 2009 23:03:59 -0700 (PDT)
Local: Wed, Jul 29 2009 2:03 am
Subject: Re: Box2D under Android NDK
Thanks for your effort.

My c++ codes come from Dannys's work which in this topic.
Without his help I couldnt make this.
So sadly I'm not familiar with that.
I wrote C++ codes with TextEditor.

Doug's Box2d port seems good.
http://groups.google.com/group/android-ndk/browse_thread/thread/ecfe7...

Next time i'll try that.

thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 26   Newer >
« Back to Discussions « Newer topic     Older topic »