why the dependency to openjdk?

37 views
Skip to first unread message

Stoppal

unread,
Feb 20, 2012, 7:53:35 AM2/20/12
to v4l4j
Hy, this seems to be a great project, but i can't get it to run :(

so far i tried to download the
* libv4l4j-java_0.8.10-0ubuntu1~ppa4_amd64 &
* libvideo0_0.8.10-0ubuntu1~ppa4_amd64
packages and they depend on "openjdk-6-jre". I can't use that because
i am using "sun-java6-jdk" and am not able to switch at the moment. i
would try fiddling with the deb files, but why would i bother?

I tried downloading the "v4l4j-0.8.10.tar.gz" file in hopes to find
the three files
* v4l4j,jar:
* libv4l4j.so
* libvideo.so:
as mentioned in this discussion article [0] but the file fails upon
extraction. (i tried to download with opera and chrome multiple times
each)

is there something i overlooked, a link to get the necessary files
somewhere else? have i overlooked something?

would apreciate some help, thx a lot in advance, br stoppal

Gilles Gigan

unread,
Feb 20, 2012, 5:27:12 PM2/20/12
to v4...@googlegroups.com
Hi,
Thanks for trying v4l4j. Please see my comments inline

On 20 February 2012 23:53, Stoppal <stefan...@gmail.com> wrote:
> Hy, this seems to be a great project, but i can't get it to run :(
>
> so far i tried to download the
>  * libv4l4j-java_0.8.10-0ubuntu1~ppa4_amd64 &
>  * libvideo0_0.8.10-0ubuntu1~ppa4_amd64
> packages and they depend on "openjdk-6-jre". I can't use that because
> i am using "sun-java6-jdk" and am not able to switch at the moment. i
> would try fiddling with the deb files, but why would i bother?

This is a long standing issue with the Debian/Ubuntu packages: I set
the dependency on OpenJDK because I did not know better. But now I do
:)
so I will add this to the TODO list for the next release. After that,
hopefully, as long as you have a java runtime and JDK (whether Sun or
OpenJDK), you will be able to install v4l4j.

> I tried downloading the "v4l4j-0.8.10.tar.gz" file in hopes to find
> the three files
>  * v4l4j,jar:
>  * libv4l4j.so
>  * libvideo.so:
> as mentioned in this discussion article [0] but the file fails upon
> extraction. (i tried to download with opera and chrome multiple times
> each)
>
> is there something i overlooked, a link to get the necessary files
> somewhere else? have i overlooked something?

Yes you have: the tar.gz file is a source archive, which means it
contains the source code for v4l4j, not binaries.

>
> would apreciate some help, thx a lot in advance, br stoppal

Ok so until I fix the Ubuntu packages to not required OpenJDK, your
only option right now is to download the source code (which
you have done already), build v4l4j and install it. The instructions
can be found on this page:
http://code.google.com/p/v4l4j/wiki/GettingStarted
(Make sure you follow the "install from source" instructions)

Let me know if you encounter any issues.
Cheers,
Gilles


>
> --
> You received this message because you are subscribed to the Google Groups "v4l4j" group.
> To post to this group, send email to v4...@googlegroups.com.
> To unsubscribe from this group, send email to v4l4j+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/v4l4j?hl=en.
>

Stoppal

unread,
Feb 21, 2012, 3:43:09 AM2/21/12
to v4l4j
hy, thx for the fast answer, really appreciate it.

i already tried the "install from source" manual and it doesn't work
on my system (ubuntu 10.04 x86_64, sun-java6-jdk). i have all
necessary packages installed and tried the commands with and without
sudo an they always fail.

when i run "ant clean all" i get:

[code]
[exec] /usr/bin/ld: libv4lconvert.a(libv4lconvert.o): relocation
R_X86_64_32S against `.rodata' can not be used when making a shared
object; recompile with -fPIC
[exec] libv4lconvert.a: could not read symbols: Bad value
[exec] collect2: ld returned 1 exit status
[exec] make: *** [libvideo.so.0] Error 1
[exec] make: Leaving directory `/somedir/v4l4j/libvideo'

BUILD FAILED
/somedir/v4l4j/build.xml:89: exec returned: 2
[code]

i omit the error message from "sudo ant install" because it probably
is a follow up error.

my best guess would be that this is a 32/64 bit fail?!?
cheers, stoppal

On Feb 20, 11:27 pm, Gilles Gigan <gilles.gi...@gmail.com> wrote:
> Hi,
> Thanks for trying v4l4j. Please see my comments inline
>

Gilles Gigan

unread,
Feb 21, 2012, 5:24:54 AM2/21/12
to v4...@googlegroups.com
Hi,
my bad, I broke the build for 64bit platforms in my last commit, which
is now fixed, so just update your working copy, followed by 'ant clean
all' and 'sudo ant install'. if all goes well, try 'ant test-gui' and
you should be able to capture from your webcam.
Let me know how you go.
Cheers,
Gilles
Reply all
Reply to author
Forward
0 new messages