Videolan won't compile!

Old forum that is now archived. Please use one of the other forums.
Russell Ballard
New Cone
New Cone
Posts: 2
Joined: 10 Feb 2004 12:24
Location: London
Contact:

Videolan won't compile!

Postby Russell Ballard » 10 Feb 2004 12:50

The source code for the latest version of VLC does not completely compile, either under Linux (red hat 9) or windows. I am most concerned with getting going under Linux though.

The source code for VLS does compile but won't run. It says libdvbpsi.so.3 is missing when in fact said library is there.


Any ideas?

Needless to say I have done all the obvious stuff. Got all the lib tars, untared them done ./configure make and make install. Done the same for VLC itself. It takes forever to build everything and eventually decides everything in ffmpeg.c is undefined.
OPTIMA-SOFTWARE

zorglub
Cone that earned his stripes
Cone that earned his stripes
Posts: 482
Joined: 21 Nov 2003 02:53
Location: Paris - France
Contact:

Postby zorglub » 11 Feb 2004 10:06

Both for VLC and VLS, you need the libdvbpsi library, that you can get on http://developers.videolan.org/libdvbpsi.

If that does not solve the problem, could you paste the compile error lines so that we can help you efficiently ?
Zorglub
Clément Stenac

Russell Ballard
New Cone
New Cone
Posts: 2
Joined: 10 Feb 2004 12:24
Location: London
Contact:

Postby Russell Ballard » 11 Feb 2004 14:56

Both for VLC and VLS, you need the libdvbpsi library, that you can get on http://developers.videolan.org/libdvbpsi.

If that does not solve the problem, could you paste the compile error lines so that we can help you efficiently ?
Hi,

I already have the libdvbpsi library but I still get these errors:-

lffmpeg.c:36:24: avcodec.h: No such file or directory
ffmpeg.c:40:5: #error You must have a libavcodec >= 4680 (get CVS)
In file included from ffmpeg.c:43:
ffmpeg.h:42: parse error before "AVCodecContext"
ffmpeg.h:48: parse error before "AVCodecContext"
ffmpeg.h:68: parse error before "AVFrame"
ffmpeg.c:63: parse error before "AVCodecContext"
ffmpeg.c:63: warning: no semicolon at end of struct or union
ffmpeg.c:64: warning: type defaults to `int' in declaration of `p_codec'
ffmpeg.c:64: warning: data definition has no type or storage class
ffmpeg.c:65: parse error before '}' token
ffmpeg.c: In function `OpenDecoder':
ffmpeg.c:124: `AVCodecContext' undeclared (first use in this function)
ffmpeg.c:124: (Each undeclared identifier is reported only once
ffmpeg.c:124: for each function it appears in.)
ffmpeg.c:124: `p_context' undeclared (first use in this function)
ffmpeg.c:125: `AVCodec' undeclared (first use in this function)
ffmpeg.c:138: warning: implicit declaration of function `avcodec_find_decoder'
ffmpeg.c:138: warning: assignment makes pointer from integer without a cast
ffmpeg.c:145: warning: implicit declaration of function `avcodec_alloc_context'
ffmpeg.c:151: `FF_MM_MMX' undeclared (first use in this function)
ffmpeg.c:155: `FF_MM_MMXEXT' undeclared (first use in this function)
ffmpeg.c:159: `FF_MM_3DNOW' undeclared (first use in this function)
ffmpeg.c:163: `FF_MM_SSE' undeclared (first use in this function)
ffmpeg.c:164: `FF_MM_SSE2' undeclared (first use in this function)
ffmpeg.c:183: dereferencing pointer to incomplete type
ffmpeg.c: In function `CloseDecoder':
ffmpeg.c:196: dereferencing pointer to incomplete type
ffmpeg.c:198: dereferencing pointer to incomplete type
ffmpeg.c:199: dereferencing pointer to incomplete type
ffmpeg.c:201: warning: implicit declaration of function `avcodec_close'
ffmpeg.c:201: dereferencing pointer to incomplete type
ffmpeg.c:202: dereferencing pointer to incomplete type
ffmpeg.c:203: dereferencing pointer to incomplete type
ffmpeg.c:206: dereferencing pointer to incomplete type
ffmpeg.c: In function `GetFfmpegCodec__ffmpeg':
ffmpeg.c:239: `CODEC_ID_MPEG1VIDEO' undeclared (first use in this function)
ffmpeg.c:247: `CODEC_ID_MPEG2VIDEO' undeclared (first use in this function)
ffmpeg.c:275: `CODEC_ID_MPEG4' undeclared (first use in this function)


etc etc etc!



...Russell
OPTIMA-SOFTWARE

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 11 Feb 2004 23:27

ffmpeg.c:40:5: #error You must have a libavcodec >= 4680 (get CVS)
This means you are using ffmpeg < 0.4.7
You need at least 0.4.8 configured with --enable-pp
Don't use PMs for support questions.

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 12 Feb 2004 16:56

ffmpeg.c:36:24: avcodec.h: No such file or directory
ffmpeg.c:40:5: #error You must have a libavcodec >= 4680 (get CVS)
I would rather say he doesn't have ffmpeg at all ;)

Bollo

ffmpeg and vlc compilation problems

Postby Bollo » 25 Feb 2004 01:08

I got the same problem.
and I just wanted to say that even if you compile ffmpeg in the latest version configured properly with --enable-pp the problem is not solved.
this means yes ffmpeg is installed properly and it is configured as it should be

if anybody knows how to get it done, please let us know

bollo

bollo

okay its me again ffmpeg problem

Postby bollo » 25 Feb 2004 01:50

I think i solved it.. I had the same problem.
The solution seems to be the following:
uninstall ffmpeg (rpm -e ffmpeg)
recompile ffmpeg using the latest version 4.8 or whatever!

it's got to be configured using ./configure --enable-pp --enable-share

now run "make"
and then "make_install" or even better use checkinstall to build an rpm... :-)

now type "ldconfig"

change into your vlc directory and reconfigure your vlc this means simpy type this again...
(./configure)
now "make" should do it...
hope this helps...
bye bollo

stijn

same problem

Postby stijn » 04 Mar 2004 20:25

i've compiled, run and did a make install of ffmpeg 0.4.8 without problems (i guess)
when ik go back to the VLC 0.7.1 dir. en reconfigure with ./configure (no difference with or without "--enable-pp --enable-shared") i have te following error:

Code: Select all

checking for zlib.h... yes checking ffmpeg/avcodec.h usability... no checking ffmpeg/avcodec.h presence... no checking for ffmpeg/avcodec.h... no configure: error: Missing header file ffmpeg/avcodec.h. [root@localhost vlc-0.7.1]#
what to do?

Guest

Postby Guest » 06 Mar 2004 08:25

Hi,

i have the same problem & here is how i solved it.

make a directory in your /usr/include/ffmpeg if you have installed ffmpeg you will have this dir. then just copy the from the ffmpeg source ~/ffmpeg-0.4.8/libavcodec the file avcodec.h in /usr/include/ffmpeg.

Code: Select all

as root: mkdir /usr/include/ffmpeg (make it if you don't have it) cp ~/ffmpeg-0.4.8/libavcodec/avcodec.h /usr/include/ffmpeg
if you don't have postprocessing enabled in ffmpeg, you can do the same.

Code: Select all

mkdir /usr/include/postproc cp ~/ffmpeg-0.4.8/libavcodec/libpostproc/postprocess.h /usr/include/postproc
i hope this helps you. if you can't install the cvs version of ffmpeg, use the latest 0.4.8

Shemeta[/code]

stijn

doesn't help

Postby stijn » 06 Mar 2004 15:02

thanx for the tip, but it doesn't help :(

so, still looking for the answer

Bernhard

Re: doesn't help

Postby Bernhard » 07 Mar 2004 15:08

thanx for the tip, but it doesn't help :(

so, still looking for the answer
You have to configure ffmpeg with --enable-pp and then you have to make it.

Then you change into the vlc-directory and type

./configure --with-ffmpeg-tree=<where_you_build_ffmpeg!>

With this you can successfully run a configure. That's it!

But, although I run this configure successfully, I'm not able to get vlc compiled without errors! Take a look (german SuSE 8.2 Professonal):

------------------snip-----------------
gcc: ./modules/misc/memcpy/libmemcpymmx.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/video_chroma/libi420_rgb_mmx.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/video_chroma/libi422_yuy2_mmx.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/video_chroma/libi420_ymga_mmx.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/video_chroma/libi420_yuy2_mmx.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/misc/memcpy/libmemcpymmxext.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/misc/memcpy/libmemcpy3dn.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/codec/ffmpeg/libffmpeg.a: Datei oder Verzeichnis nicht gefunden
gcc: ./modules/stream_out/libstream_out_transcode.a: Datei oder Verzeichnis nicht gefunden
------------------snip-----------------

What's going wrong? :-|

ipkiss
Big Cone-huna
Big Cone-huna
Posts: 695
Joined: 23 Nov 2003 01:49

Postby ipkiss » 07 Mar 2004 21:05

It looks like you did 'make vlc' instead of a simple 'make' ('make vlc' doesn't build modules)

Bernhard

Postby Bernhard » 08 Mar 2004 10:07

It looks like you did 'make vlc' instead of a simple 'make' ('make vlc' doesn't build modules)
No.

I used 'checkinstall'. Maybe this doesn't work with vlc... (?) :-|

Later I used 'make' before 'checkinstall'.

Ok, I compiled vlc successfully now and 'checkinstall' builds and installs a RPM. So far so good...

But vlc doesn't play any movie on vcd or svcd. It starts for five seconds and stops immediately with an error like 'CDROM (ioctl) reports ILLEGAL REQUEST'!

What's going wrong now? :-(

(vlc DOES play DVD and Audio-CD's !)

Bernhard

Postby Bernhard » 08 Mar 2004 15:06

Ok, I compiled vlc successfully now and 'checkinstall' builds and installs a RPM. So far so good...

But vlc doesn't play any movie on vcd or svcd. It starts for five seconds and stops immediately with an error like 'CDROM (ioctl) reports ILLEGAL REQUEST'!

What's going wrong now? :-(

(vlc DOES play DVD and Audio-CD's !)
Stop! I found the error! vlc tries to open a vcd or svcd like

vcdx:///dev/dvd@E1

Deleting the '@E1' lets vlc work fine! Thanks a lot for your help, guis!

Bernhard from Germany


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 28 guests