[vlc-devel] V4L2 Compiling on Gentoo

Richard Hosking richard at hovis.net
Mon Oct 29 15:27:46 CET 2007


Sorry for the delay.

I went back and removed types.h.  Attached is the output from
make.  You can see the videodev2.h file failing to compile
before the v4l2.c file.

This compiles fine under Ubuntu 7.04 (kernel 2.6.20), but I
am getting the failure with Gentoo 2007.1 (kernel 2.6.22).

I am using an identical ./configure and build sequence on
Gentoo as under Ubuntu.

../configure --prefix=/usr --enable-debug --enable-dbus-control --enable-shared-libvlc \
--with-ffmpeg-tree=../extras/ffmpeg --enable-x264 --with-x264-tree=../extras/x264 \
--enable-v4l --enable-v4l2 --enable-dvb --disable-xvmc --enable-svg \
--enable-theora --enable-twolame --enable-flac --enable-tremor \
--with-ffmpeg-mp3lame --with-ffmpeg-faac --enable-esd \
--disable-portaudio --disable-cddax --disable-vcdx \
--disable-quicktime --disable-dc1394 --enable-png --disable-qt4 \
--disable-skins2 --disable-libcddb --disable-wxwidgets --enable-alsa \
--enable-screen --with-live555-tree=../extras/live

(a headless streaming server)

Best Regards,
Richard.


Pavlov Konstantin wrote:
> On Fri, Oct 26, 2007 at 07:33:16PM +0100, Richard Hosking wrote:
>> Just compiling the trunk on Gentoo tonight (I have
>> been developing under Ubuntu until now) and it failed
>> on my V4L2 code oops :-(
>>
>> This complied fine under Ubuntu 7.04.
>>
>> After some Googling, I added types.h above the
>> videodev2.h line and it then compiles fine.
>>
>> ...
>> #include <linux/types.h>
>> #include <linux/videodev2.h>
>> ...
>>
>> ??  No idea why.  Ubuntu is kernel 2.6.20, whereas
>> Gentoo is 2.6.22.
>>
>> Can someone patch v4l2.c to add types.h for me if
>> they agree.
>>
>> Richard.
> 
> Could you provide more specific info on what's gcc telling you when it
> fails to compile relevant code?
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: vlc-gentoo-make-error.txt
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20071029/4d640209/attachment.txt>


More information about the vlc-devel mailing list