B4Alpha-Aft3r0mega / javacpp

Automatically exported from code.google.com/p/javacpp
GNU General Public License v2.0
0 stars 0 forks source link

JavaCPP_log doesn't print correctly in android #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
 - In jniXXX.cpp run 'JavaCPP_log("Test %d", 0);'

What is the expected output? What do you see instead?
 - Expected : Test 0
 - Current  : Test -1098443844

What version of the product are you using? On what operating system?
 - javacpp 0.2
 - android-ndk-r8b
 - Windows7 cygwin

Please provide any additional information below.
 - JavaCPP_log should use __android_log_vprint() instead of __android_log_print().

Original issue reported on code.google.com by noranb...@gmail.com on 26 Oct 2012 at 2:25

GoogleCodeExporter commented 8 years ago
Yes, that's been fixed. Can you check out the code from the repository and let 
me know if it's better? thanks

Original comment by samuel.a...@gmail.com on 26 Oct 2012 at 2:27

GoogleCodeExporter commented 8 years ago
I have another question.

I found that with a little effort, javacpp works with android-ndk-r8b build 
script.
(From android-ndk-r8b, compiler.path, include.path has been changed as r8b 
supports two version of gcc. So using ndk-build script will be easier than use 
java -jar javacpp.jar  -properties ...)

What I want to know is,
In javacpp.jar command line option, is there any option that only generates 
jniXXX.cpp and exit?

Original comment by noranb...@gmail.com on 26 Oct 2012 at 2:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Oh, things have been changed a lot since 0.2.
When would be a release date of version 0.3?

Original comment by noranb...@gmail.com on 26 Oct 2012 at 2:39

GoogleCodeExporter commented 8 years ago
Sure, the -nocompile option. It would be kind of hard to figure out how Google 
is going to modify its directory structure in the future, so yes I suppose to 
makes sense to use ndk-build, since they appear to at least keep that stable...

OpenCV 2.4.3rc has been released, so I'm planning to do all that together soon, 
this weekend maybe

Original comment by samuel.a...@gmail.com on 26 Oct 2012 at 2:41

GoogleCodeExporter commented 8 years ago
I checked out the lastest source and tried it.
JavaCPP_log works great.
Thank you for your prompt response.

After some test, hopefully I could contribute some about ndk.

Original comment by noranb...@gmail.com on 26 Oct 2012 at 2:55

GoogleCodeExporter commented 8 years ago
Ok, I've released JavaCPP 0.3!

Let me know if you would still like to provide some instructions as 
contribution, as you suggested. I can give you access to create a page on the 
Wiki, thanks!

Original comment by samuel.a...@gmail.com on 5 Nov 2012 at 11:23

GoogleCodeExporter commented 8 years ago
ok. I'll post a little instruction about android specific things.

Original comment by noranb...@gmail.com on 5 Nov 2012 at 10:38