liumarcus70s / javacv

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

Running the sample facepreview of JavaCV on Android with eclipse + Windows xp #135

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download facepreview-src-20101202.zip
2. Eclipse
2.1 New project > android project > create project from existing source > load 
the unzipped files.
2.2 android 2.2 API 8 > package name: com.googlecode.javacv.facepreview
2.3 Project > properties > add jar > find /libs > add jna.jar and javacv.jar
2.4 `` eclipse do not recognize the .so `` But they are at /libs/armebi
3. connect the android phone.
4. Run the project.
5. Errors and warnings:
WARNINGS/ERRORS:
Lots of: 
-VFY: unable to find class referenced in signature 
(Ljava/awt/image/BufferedImage;) (happens too with java/awt/Rectangle, 
java/awt/color/colorspace… Tried to add the rt.jar but doesn’t work too)
           E/dalvikvm(16972): Could not find class 'java.awt.Rectangle', referenced from method com.googlecode.javacv.jna.cxcore$IplImage.copyFrom (As you said in issue 104 this is not an error, is just a warning).
D/dalvikvm(16972): VFY: replacing opcode 0x6e at 0x0000
D/dalvikvm(16972): VFY: dead code 0x0003-004e in 
Lcom/googlecode/javacv/jna/cxcore$IplImage;.createFrom
D/dalvikvm(16972): VFY: replacing opcode 0x22 at 0x005d
D/dalvikvm(16972): VFY: dead code 0x000e-0016 in 
Lcom/googlecode/javacv/jna/cxcore$IplImage;.getBufferedImage 
(DLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;
D/dalvikvm(16972): VFY: dead code 0x002a-002a in 
Lcom/googlecode/javacv/jna/cxcore$IplImage;.getBufferedImage 
(DLjava/awt/color/ColorSpace;)Ljava/awt/image/BufferedImage;

What is the expected output? 
The same app as the apk

What do you see instead?
I see a black window for a second and the app crashes…

For the records, I tried the compiled version of facepreview.apk that you did 
for htc desire with android 2.2 and works perfectly fine.

What version of the product are you using? On what operating system?

Eclipse Indigo Version: 3.7.1
HTC Desire S with android 2.3.3
Windows XP

Please provide any additional information below.

Congratulations for the port and thanks for your job, very usefull. I have 
successfully connect javacv with to an ip camera for face detection, now I want 
to do it with android. I have in mind to give the source code for samples :)

I apologize my bad English.

Original issue reported on code.google.com by alei...@gmail.com on 1 Dec 2011 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
Could you retry with a more recent version of JavaCV? thank you

Original comment by samuel.a...@gmail.com on 2 Dec 2011 at 2:19

GoogleCodeExporter commented 8 years ago

Of course, I understand that you mean that I have to add the javacpp.jar, 
javacv.jar and javacv-windows-x86.jar of javacv-bin-20111001.zip

Is that correct? Now I see these errors:

Original comment by alei...@gmail.com on 2 Dec 2011 at 4:40

Attachments:

GoogleCodeExporter commented 8 years ago
Please also follow the rest of the instructions in the README.txt file...

Original comment by samuel.a...@gmail.com on 3 Dec 2011 at 1:27

GoogleCodeExporter commented 8 years ago
@Samuel: Do you mean to rebuild the .so files? Thanks for all and sorry for 
asking so much...

Original comment by alei...@gmail.com on 4 Dec 2011 at 4:52

GoogleCodeExporter commented 8 years ago
No, the instructions that start with "Eclipse (Android 2.2 or newer):" inside 
the README.txt file.

Original comment by samuel.a...@gmail.com on 5 Dec 2011 at 4:43

GoogleCodeExporter commented 8 years ago
Perfect, thanks ;)

Original comment by alei...@gmail.com on 5 Dec 2011 at 8:34

GoogleCodeExporter commented 8 years ago
Great! Please post your questions on the mailing list next time

And do let me know if you have any sample code to contribute, thanks

Original comment by samuel.a...@gmail.com on 8 Jan 2012 at 3:52