Page 1 of 1

Cannot manually build VLC on suse 10, ffmpeg problem

Posted: 24 Jan 2006 01:17
by imad.hammad
I am not very familiar with linux in general and am having much difficulty manually building VLC 0.7.2 (the version i require). I need to perform a manual build because i wish to alter the code for a university project.

I am running suse 10 and have attempted to install all the libraries required by VLC but am obviously unsucessful as it will not build.

My first problem was ffmpeg, and i believe i finally have it installed but after i configure vlc as follows:
./configure --disable-dvd --disable-libmpeg2
make

I recieve the following error:

video.c:518: warning: pointer targets in passing argument 4 of ‘avcodec_decode_video’ differ in signedness
video.c:594: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
video.c:598: error: ‘struct AVCodecContext’ has no member named ‘frame_rate_base’
video.c:599: error: ‘struct AVCodecContext’ has no member named ‘frame_rate’
make[6]: *** [libffmpeg_a-video.o] Error 1
make[6]: Leaving directory `/home/Imad/vlc-0.7.2/modules/codec/ffmpeg'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/home/Imad/vlc-0.7.2/modules/codec/ffmpeg'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Imad/vlc-0.7.2/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Imad/vlc-0.7.2/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Imad/vlc-0.7.2/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Imad/vlc-0.7.2'
make: *** [all] Error 2


I also tried
./configure --disable-dvd --disable-libmpeg2 --disable-vorbis --disable-ogg --disable-theora
but recieved the same error.

So I then tried to disable ffmpeg in the configure command:
./configure --disable-dvd --disable-libmpeg2 --disable-ffmpeg
make

But now i recieve this error:

invert.c: In function ‘Render’:
invert.c:220: error: invalid lvalue in increment
invert.c:220: error: invalid lvalue in increment
invert.c:221: error: invalid lvalue in increment
invert.c:221: error: invalid lvalue in increment
invert.c:222: error: invalid lvalue in increment
invert.c:222: error: invalid lvalue in increment
invert.c:223: error: invalid lvalue in increment
invert.c:223: error: invalid lvalue in increment
invert.c:224: error: invalid lvalue in increment
invert.c:224: error: invalid lvalue in increment
invert.c:225: error: invalid lvalue in increment
invert.c:225: error: invalid lvalue in increment
invert.c:226: error: invalid lvalue in increment
invert.c:226: error: invalid lvalue in increment
invert.c:227: error: invalid lvalue in increment
invert.c:227: error: invalid lvalue in increment
make[4]: *** [libinvert_plugin_a-invert.o] Error 1
make[4]: Leaving directory `/home/Imad/vlc-0.7.2/modules/video_filter'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/home/Imad/vlc-0.7.2/modules/video_filter'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Imad/vlc-0.7.2/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Imad/vlc-0.7.2'
make: *** [all] Error 2



I retrieved the source (vlc-0.7.2.tar.gz) from http://downloads.videolan.org/pub/videolan/vlc/0.7.2/

Should I be retrieving the source from subversion? or is that only if i wish to retrieve the latest version of vlc (because i need 0.7.2).


Any help would be veryyyyyyyyyyyyyyyyy much appreciated, thank you for your time.

Posted: 24 Jan 2006 13:39
by jeroensky
just wanna say this:
I'm a rpm man... (not fresh Linux newbee but compiling = difficult, so prefer rpm packages & gui at this time.)
I got the (at this time)newest OpenSuse 10.1 alpha4.(by burning the 5 Cd iso's for i586)
I used this package (and searched with google to score independencies that yast2 need to install VLC @ OpenSuse10.1):
vlc-0.8.4a-1.pm.3.i586.rpm

The trouble that i've now is, that the Distru=too new to add external packages. most external sources are 10.0, and so I only can wait till external sources add 10.1 (but afcourse it's alfa4), 10.0 sources will install, but work 1 of 6 times.(like no working gui)
I've also installed (because i was so freaky on scoring all kinda codec rpm packages, to let mp4 sp videofiles and mpg play.):
svgalib-1.9.21-4.i586.rpm
w32codec-all-20050412-0.pm.0.i586.rpm
xvid-1.1.0-0.pm.4.i586.rpm
xvid4conf-1.12-0.pm.1.i586.rpm
xorg-x11-libs-6.8.2-37.i386.rpm
mpgtx-1.3.1-3.oc2pus.cvs20051126.i586.rpm
mad-0.15.1b-1.pm.0.i586.rpm
libffmpeg0-0.4.9-4.pm.cvs20060122.i586.rpm
ffmpeg0.4.9-4.pm.cvs20060122.i586.rpm
libmpcdec-1.2.2-1.pm.2.i586.rpm
libmpeg3-1.6-0.pm.0.i686.rpm

it do play mp3, LOL but unfortunately no mp4+mpg video support.(those mp4 video's for the Playstationportable(avc/sp(qvga))

so how can we play mpeg /mp4 on vlc @ current OpenSuse ?

update, i've found new 10.1 update sources on (ftp 10.1) ftp.gwdg.de & (http 10.0) packman.iu-bremen.de

And oh my VLC plays mpeg ! on my opensuse10.1..... cool...
so it was just waiting for the new 10.1 sources.

Posted: 24 Jan 2006 16:43
by xtophe
With respect, Why on earth do you want to build a version at least 2 years old ?
VLC is an active project and if you consider coding on it you should take the svn (or if you can't the latest release)

I need the specific version 0.7.2

Posted: 24 Jan 2006 17:08
by imad.hammad
I need this specific version because VLC is only a small part of my entire uni. project. I already have a large chunk of the code for changing the streaming bit rate on the fly. But this code was written for vlc 0.7.2, so unless the latest version of VLC provides this feature i need to manually compile the old version (0.7.2).

Any help would be appreciated.

Posted: 24 Jan 2006 17:27
by xtophe
Well usually we don't remove features when we do a new release.

We try to add feature, remove bugs. sometimes we change the way to access the feature but we try to keep the oldway working.

Posted: 24 Jan 2006 19:23
by imad.hammad
As I understand VLC doesn't not have a feature to change the streaming bit rate on the fly. So neither the old versions, nor the new versions have this feature. I happen have the code for implementing this feature in vlc 0.7.2

Can you help me manually build vlc 0.7.2 on suse 10, so that i can incorporate these altered files and recompile it?

Posted: 13 Dec 2006 13:14
by jeroensky
Update to VLC 0.8.5 and your problems are gone.