We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Initial JMyron on Linux Implementation (Read 1547 times)
Initial JMyron on Linux Implementation
Oct 12th, 2007, 4:51am
 
Hello,

I have just posted an initial Video for Linux implementation for JMyron. It's really early, but if you'd like to take a look at it, feel free to download it at:

http://piratestudios.com/v4ljmyron/v4ljmyron-20071011.tgz

Make sure to read through the README.

Thanks,

Steve
Re: Initial JMyron on Linux Implementation
Reply #1 - Nov 14th, 2007, 12:54am
 
Hi,

I was trying to build your interface but I got this error:
mkdir JMyron; cp ../source/JMyron.java JMyron/ ; /home/sdetwiler/processing-0125/jikes -classpath /home/sdetwiler/processing-0125/java/lib/rt.jar:/home/sdetwiler/processing-0125/
lib:/home/sdetwiler/processing-0125/lib/pde.jar:/home/sdetwiler/processing-0125/
lib/core.jar:/home/sdetwiler/processing-0125/lib/antlr.jar:/home/sdetwiler/proce
ssing-0125/lib/oro.jar:/home/sdetwiler/processing-0125/lib/registry.jar:/home/sd
etwiler/processing-0125/lib/mrj.jar JMyron/*.java
/bin/sh: /home/sdetwiler/processing-0125/jikes: not found
make: *** [JMyron/JMyron.class] Error 127

It seems that some files are lacking? I'm just starting with linux so...

Thanks
Re: Initial JMyron on Linux Implementation
Reply #2 - Nov 14th, 2007, 1:14am
 
Ah, something I forgot to document... Please edit the Makefile.linux file and update the PROCESSING variable to the path where you have processing installed. By default it's set to the local path on my pc, which doesn't help you Smiley

Steve
Re: Initial JMyron on Linux Implementation
Reply #3 - Dec 21st, 2007, 7:44am
 
Hi, and thanks a lot for your work.

I'm trying to compile, but running into some errors. First of all, it's looking for a mrj.jar file in my processing/lib/ folder, which doesn't exist. I copied this file from my Arduino installation, and went past that error, but now I'm getting this:

$ make -f Makefile.linux
g++ -g0 -O3 -D V4L -o test test.o ezcam.o v4lCamera.o
g++ -c ../source/myron.cpp  -I .
../source/myron.cpp: In member function ‘void Myron::update()’:
../source/myron.cpp:217: warning: converting to ‘unsigned char’ from ‘float’
../source/myron.cpp:227: warning: passing ‘float’ for argument 1 to ‘int abs(int)’
../source/myron.cpp: In member function ‘int* Myron::globQuads(float, float)’:
../source/myron.cpp:467: error: ‘memcpy’ was not declared in this scope
../source/myron.cpp: In member function ‘void Myron::adapt()’:
../source/myron.cpp:781: warning: converting to ‘unsigned char’ from ‘float’
../source/myron.cpp:782: warning: converting to ‘unsigned char’ from ‘float’
../source/myron.cpp:783: warning: converting to ‘unsigned char’ from ‘float’
make: *** [myron.o] Error 1

This is under Ubuntu 7.10, with Processing 0135.
Re: Initial JMyron on Linux Implementation
Reply #4 - Jan 14th, 2008, 6:20am
 
I've just made a new release of JMyron on Linux.

http://piratestudios.com/v4ljmyron

   * Updated build instructions.
   * Included a modified copy of myron.cpp that includes <string.h> for memcpy.
   * Removed dependency on old mrj.jar file from 0125.

This should correct the problems that people have been reporting about not being able to compile.

Please try to break it and let me know how you did it.

Steve
Re: Initial JMyron on Linux Implementation
Reply #5 - Feb 3rd, 2008, 4:54pm
 
Got it to compile, but had to add $(PROCESSING)/libraries/JMyron/library/JMyron.jar to CLASSPATH in Makefile.linux. Without I get this messages:

hb@myhost:~/sketchbook/v4ljmyron/webcamxtra/ezcam$ make -f Makefile.linux2
g++ -g0 -O3 -D V4L -c v4lCamera.cpp
g++ -g0 -O3 -D V4L -c ezcam.cpp
g++ -g0 -O3 -D V4L -c test.cpp
g++ -g0 -O3 -D V4L -o test test.o ezcam.o v4lCamera.o
mkdir JMyron; cp ../source/JMyron.java JMyron/ ; /usr/share/java/processing/jikes -classpath /opt/java/jre/lib/rt.jar:/usr/share/java/processing/lib:/usr/share/java/processi
ng/lib/pde.jar:/usr/share/java/processing/lib/core.jar:/usr/share/java/processin
g/lib/antlr.jar:/usr/share/java/processing/lib/oro.jar:/usr/share/java/processin
g/lib/registry.jar JMyron/*.java
/opt/java/bin/javah JMyron.JMyron
error: cannot access JMyron.JMyron
class file for JMyron.JMyron not found
javadoc: error - Class JMyron.JMyron not found.
Error: No classes were specified on the command line.  Try -help.
make: *** [JMyron_JMyron.h] Fehler 15

The problem is: My webcam only supports YUYV and MJPG, not RGB24...

Could you please add support for one of these formats? Would be great!
Re: Initial JMyron on Linux Implementation
Reply #6 - Feb 4th, 2008, 7:36am
 
A new release is available at http://piratestudios.com//v4ljmyron/

Updates include:
   * Large rewrite to move to V4L2.
   * Dropped support for V4L.
   * Added support for YUYV cameras. Temporrily dropped RGB camera support.
   * Updated Makefile.linux CLASSPATH. (Thanks hb).

This has been tested on Processing 0135.

Feedback is always welcome.

Steve
Re: Initial JMyron on Linux Implementation
Reply #7 - Feb 4th, 2008, 1:03pm
 
Great! Thank you very much!

Compiled and JMyron-examples work as expected (as far as I have tested them)... Smiley
Page Index Toggle Pages: 1