On 11/28/14, René Rebe <[email protected]> wrote:
> Hi,
>
> On Nov 27, 2014, at 3:51, Barry Kauler <[email protected]> wrote:
>
>>
>> This has the same problem as I reported for 'dvb-apps', the package
>> wants 'linux/videodev.h' which was dropped from Linux sometime ago.
>>
>> develop/libv4l is version 0.6.4, I upgraded it to 1.6.2 from here:
>>
>> http://linuxtv.org/downloads/v4l-utils/
>>
>> However, the build fails. It cannot find libs:
>>
>> libtool: install: (cd
>> /TOOLCHAIN/src.libv4l.wary6.20141126.082515.20551.puppypc23455/v4l-utils-1.0.1/lib/libv4l2;
>> /bin/sh
>> /TOOLCHAIN/src.libv4l.wary6.20141126.082515.20551.puppypc23455/v4l-utils-1.0.1/libtool
>> --silent --tag CC --tag disable-static --mode=relink gcc -g -O2
>> -avoid-version -module -shared -export-dynamic -o v4l2convert.la
>> -rpath /usr/lib/libv4l v4l2convert_la-v4l2convert.lo libv4l2.la )
>> /usr/lib/gcc/i686-t2-linux-gnu/4.9.2/../../../../i686-t2-linux-gnu/bin/ld:
>> cannot find -lv4l2
>> collect2: error: ld returned 1 exit status
>>
>> Ha ha, it is actually looking in the host!
>>
>> Good thing this is not a cross-build, i manually copied libv4l2.so*,
>> libv4lconvert.so* and libjpeg9.so* out of build/... to host /usr/lib
>> ...success
>>
>> Rene, how can this be permanently fixed?
>
>
> I got it build by not setting CC= to make which apparently somehow helps
> libtool not to get confused, … :-/
>
> I also only build the libs, not the tools:
>
> Committed revision 43418.
>
> Let us know what you think, maybe a utils packages for the utils?
>
>
Rene,
Doing a complete rebuild on my old laptop, it failed at libv4l (stage 5).
This line caused compile failure:
[O] var_append makeinstopt ' ' 'PREFIX=/$prefix'
So I took it out. The other two lines that you introduced:
[O] var_remove_regex makeopt ' ' 'CC=.*'
[O] var_remove_regex makeinstopt ' ' 'CC=.*'
also fix a compile failure, however they do not fix the looking for
-lv4l1 in the host.
So that I am able to keep going, I have done a really really bad hack,
here is my libv4l.conf:
libv4l_install_hack1()
{
cp -a $root/usr/lib/libv4l*so* /lib/
}
hook_add premake 5 "libv4l_install_hack1"
libv4l_install_hack2()
{
rm -f /lib/libv4l*
}
hook_add postinstall 5 "libv4l_install_hack2"
...based on the reasoning that any host will have those libs in
/usr/lib, so there is no conflict.
I am not sending this as a patch, because you most likely don't want
to put that bad hack into T2. Instead, you somehow need to fix it
properly.
Anyway, here is my libv4l.desc:
[V] 1.6.2
[P] X -----5---9 127.000
[O] var__apend extraconfopt ' ' '--disable-v4l-utils'
#[O] var_append makeinstopt ' ' 'PREFIX=/$prefix'
[O] var_remove_regex makeopt ' ' 'CC=.*'
[O] var_remove_regex makeinstopt ' ' 'CC=.*'
[D] 2007891134 v4l-utils-1.6.2.tar.bz2 http://linuxtv.org/downloads/v4l-utils/
Regards,
Barry
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2