Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to OhNet, need help
04-03-2013, 10:54 PM
Post: #11
RE: New to OhNet, need help
(04-03-2013 10:21 PM)simonc Wrote:  
(04-03-2013 09:12 PM)dcong Wrote:  
(04-03-2013 09:02 PM)simonc Wrote:  Random guess, you're not building 64-bit native code then running it against 32-bit Java code by any chance?

What is the command to build native code?

I did have libohNetJni.so and libohNet.so in /Build/obj/Posix/Release/Android/libs/armeabi

Your build command - make ohNetAndroidNative - is correct. If you want to avoid gcc producing a build which targets the platform you're building on, you can set the CROSS_COMPILE environment variable before building. Depending on the cross compiler you choose, you may then get a 64 or 32-bit binary.

Thanks for the suggestion. I will give it a try.

BTW, is there any binary release I can try directly?
Find all posts by this user
04-03-2013, 10:56 PM (This post was last modified: 04-03-2013 10:57 PM by simonc.)
Post: #12
RE: New to OhNet, need help
(04-03-2013 10:54 PM)dcong Wrote:  BTW, is there any binary release I can try directly?

Possibly. Binary releases are available in http://www.openhome.org/releases/artifacts/ohNet/ ; there isn't a binary for Android but it can't hurt to give Linux-ARM a go.
Find all posts by this user
05-03-2013, 10:36 AM
Post: #13
RE: New to OhNet, need help
(04-03-2013 10:54 PM)dcong Wrote:  Thanks for the suggestion. I will give it a try.

In case you haven't come across it yet, the thread at http://forums.openhome.org/showthread.php?tid=1043 has some discussion about Android builds which may be useful.
Find all posts by this user


Forum Jump: