VLS compile error

Discussion on the (deprecated) VideoLAN Server application as well as the miniSAPserver stream announcer. This is not about VLC!
Forum rules
Please do not post VLC related questions in this forum category. See the Forum Rules for more information.
Knallerten

VLS compile error

Postby Knallerten » 25 Nov 2003 22:00

Hi am trying to compile VLS CVS version with the following options:
./configure --enable-v4l --with-ffmpeg=/opt/src/ffmpeg-0.4.8

but when doing the "make" it fails with the following exit code:
ps/v4lreader_la-v4lreader.Tpo -c v4lreader.cpp -o v4lreader_la-v4lreader.o
v4lreader.cpp:60:35: avcodec.h: No such file or directory
v4lreader.cpp: In member function `virtual void C_v4lMpegReader::Init()':
v4lreader.cpp:344: error: `PIX_FMT_YUV420P' undeclared (first use this
function)
v4lreader.cpp:344: error: (Each undeclared identifier is reported only once for
each function it appears in.)
v4lreader.cpp:348: error: `PIX_FMT_YUV422' undeclared (first use this function)
v4lreader.cpp:353: error: `PIX_FMT_BGR24' undeclared (first use this function)
make[6]: *** [v4lreader_la-v4lreader.lo] Error 1
make[6]: Leaving directory `/usr/local/src/vls-cvs/vls/src/modules/v4lreader'
make[5]: *** [all-local] Error 2
make[5]: Leaving directory `/usr/local/src/vls-cvs/vls/src/modules/v4lreader'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/vls-cvs/vls/src/modules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/vls-cvs/vls/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/vls-cvs/vls/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vls-cvs/vls'
make: *** [all] Error 2
Has anyone got any idea for the reasons for this?

Thanx in advance.

Best Regards.......

BigBen
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 25 Nov 2003 10:48

Postby BigBen » 26 Nov 2003 01:42

ffmpeg tends not to install all its headers on make install... That could be the trick in my opinion...

Greg

VLS Compile error

Postby Greg » 27 Nov 2003 12:55

I ran in to this same error myself. The solution? Edit the file src/modules/v4lreader/v4lreader.cpp and change line 60 from
#include <avcodec.h> //for palette
to
#include <ffmpeg/avcodec.h> //for palette

That worked fine for me since Gentoo that i am using puts ffmpegs .h files in /usr/include/ffmpeg

Hope that helps

urbansond
Blank Cone
Blank Cone
Posts: 22
Joined: 26 May 2004 04:10

Postby urbansond » 13 Jun 2004 06:09

Edit the file src/modules/v4lreader/v4lreader.cpp and change line 60 from
#include <avcodec.h> //for palette
to
#include <ffmpeg/avcodec.h> //for palette
And make sure you have compiled ffmpeg with the ...

--enable-shared --enable-gpl
... options


Otherwise several headers are not placed in the /usr/include/ffmpeg directory.

Mike
_______


Return to “VideoLAN Server and miniSAPserver”

Who is online

Users browsing this forum: No registered users and 3 guests