Skip to contentSkip to conversation

libv4l-0.6.2-test problem with compiling on 32 bit

DISCUSSION Mateusz Szymański 2 participants 2 messages Nov 22, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Good morning, I am using arch linux on 64 bit architecture, this version v4l helped me to rotate view from my webcam, but only in 64 bit apps, like mplayer, I have a problem with compiling it to 32 bits (for skype), I have 32 bit libs, but they are in /opt/lib32/usr/lib directory and during the compiling i am receiving an error:

[libv4l-0.6.2-test]$ make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-m32 LIBDIR=/opt/lib32/usr
...
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/../../../librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/../../../librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt /usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt /usr/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
make[1]: *** [libv4lconvert.so] Error 1

In /opt/lib32/usr/lib, there are files librt.so and librt.a, but ld doesn't seem to find them.

$ cat /etc/ld.so.conf
#
# /etc/ld.so.conf
#

# End of file
/usr/lib/libfakeroot
/opt/lib32/usr/lib
/opt/lib32/lib

I would be grateful if You could help me with this problem.

Best regards,
Mateusz Szymański

#1 lore raw

Hi,

Quoted 27 lines · Mateusz Szymański

Good morning, I am using arch linux on 64 bit architecture, this version v4l helped me to rotate view from my webcam, but only in 64 bit apps, like mplayer, I have a problem with compiling it to 32 bits (for skype), I have 32 bit libs, but they are in /opt/lib32/usr/lib directory and during the compiling i am receiving an error:

[libv4l-0.6.2-test]$ make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-m32 LIBDIR=/opt/lib32/usr
...
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/../../../librt.so when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-unknown-linux- gnu/4.4.2/../../../librt.a when searching for -lrt
/usr/bin/ld: skipping incompatible /usr/lib/librt.so when searching for -lrt /usr/bin/ld: skipping incompatible /usr/lib/librt.a when searching for -lrt /usr/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
make[1]: *** [libv4lconvert.so] Error 1

In /opt/lib32/usr/lib, there are files librt.so and librt.a, but ld doesn't seem to find them.

$ cat /etc/ld.so.conf
#
# /etc/ld.so.conf
#
Quoted 7 lines

# End of file
/usr/lib/libfakeroot
/opt/lib32/usr/lib
/opt/lib32/lib

I would be grateful if You could help me with this problem.

This is a problem specific to the way things are set up in your distro, please ask for help in one of the fora / mailinglists of your distro.

Regards,

hans