How to compile v4l4j for hard-float ABI ARM

36 views
Skip to first unread message

Melan Nimesh

unread,
Jul 15, 2013, 1:44:35 PM7/15/13
to v4...@googlegroups.com
Hi All,

I am trying to build v4l4j on my raspberry pi which is ruining on archlinux-hf and I am getting following error, how can I get rid of this error? 

gcc v4l2-input.o v4l1-input.o libvideo.o pwc-probe.o gspca-probe.o qc-probe.o fps-param-probe.o v4l1-query.o v4l2-query.o v4l1-tuner.o v4l2-tuner.o palettes.o libv4lconvert.a pixfc-sse/libpixfc-sse-armv7.a -Wl,-soname,libvideo.so.0 \
  -lm -lrt -shared -ljpeg -o libvideo.so.0
/usr/bin/ld: error: libvideo.so.0 uses VFP register arguments, pixfc-sse/libpixfc-sse-armv7.a(pixfc-sse.c.o) does not
/usr/bin/ld: failed to merge target specific data of file pixfc-sse/libpixfc-sse-armv7.a(pixfc-sse.c.o)
/usr/bin/ld: error: libvideo.so.0 uses VFP register arguments, pixfc-sse/libpixfc-sse-armv7.a(common.c.o) does not
/usr/bin/ld: failed to merge target specific data of file pixfc-sse/libpixfc-sse-armv7.a(common.c.o)
................

My environment details as follows
uname -a
Linux alarmpi 3.6.11-6-ARCH+ #1 PREEMPT Mon Feb 11 02:33:03 UTC 2013 armv6l GNU/Linux
 
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/armv6l-unknown-linux-gnueabihf/4.7.2/lto-wrapper
Target: armv6l-unknown-linux-gnueabihf
Configured with: /build/src/gcc-4.7.2/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,fortran,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --disable-ppl-version-check --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release --host=armv6l-unknown-linux-gnueabihf --build=armv6l-unknown-linux-gnueabihf --with-arch=armv6 --with-float=hard --with-fpu=vfp
Thread model: posix
gcc version 4.7.2 (GCC) 

java -version
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b36e)
Java HotSpot(TM) Client VM (build 25.0-b04, mixed mode)


Thanks,
Melan

Gilles Gigan

unread,
Jul 15, 2013, 7:04:28 PM7/15/13
to v4...@googlegroups.com
Hi Melan,
how do you compile v4l4j (which command do you use) ?
Gilles


--
You received this message because you are subscribed to the Google Groups "v4l4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v4l4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Melan Nimesh

unread,
Jul 15, 2013, 11:25:13 PM7/15/13
to v4...@googlegroups.com
Hi Gilles,

I used "ant all" command in v4l4j root directory, I got an error (not remember exactly, from "libvideo" directory make file ), then I moved to directory and I used "make" command. 

Thanks,
Melan
--
Melan Nimesh Jayasingha
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: melan AT wso2.com;  Mobile: +94 77 631 6759
twitter.com/melanster
PGP: 0x7B42450A

Gilles Gigan

unread,
Jul 15, 2013, 11:47:54 PM7/15/13
to v4...@googlegroups.com
Have you tried the instructions on this page:
https://code.google.com/p/v4l4j/wiki/GettingStartedOnRPi

Gilles

Melan Nimesh

unread,
Jul 16, 2013, 12:22:54 AM7/16/13
to v4...@googlegroups.com
Hi Gilles,

Yes, I followed instructions on GettingStartedOnRPi (I manually installed java, ant and libjpeg8-dev since apt-get not available in archlinux ), but I tried to build v4l4j-0.9.0 (since I have local modifications ), after checking out v4l4j-trunk I realized that pixfc-sse directory much different from 0.9.0. I will try to build trunk.

Thanks for the help

Melan
     

On Tue, Jul 16, 2013 at 9:17 AM, Gilles Gigan <gilles...@gmail.com> wrote:
Have you tried the instructions on this page:

Gilles Gigan

unread,
Jul 16, 2013, 12:35:05 AM7/16/13
to v4...@googlegroups.com
v4l4j 0.9.0 doesnt include support for RPI, but trunk does. Let me know if trunk doesnt build.

Gilles

Melan Nimesh

unread,
Jul 16, 2013, 1:28:29 PM7/16/13
to v4...@googlegroups.com
Hi,

I was able to build trunk without any issue on RPi. Thank for the help

Melan
Reply all
Reply to author
Forward
0 new messages