Page 1 of 1

Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 11:24
by coldfire
got the code from
$ git clone git://git.videolan.org/vlc.git

and after bootstrapping and configuring, when I did
"$ make install"

the error trace comes as:
..........
..........
..........
align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-demux.lo -MD -MP -MF .deps/libavformat_plugin_la-demux.Tpo -c demux.c -fPIC -DPIC -o .libs/libavformat_plugin_la-demux.o
demux.c: In function ‘OpenDemux’:
demux.c:99: warning: passing argument 2 of ‘stream_Peek’ from incompatible pointer type
demux.c:247: error: ‘CODEC_TYPE_ATTACHMENT’ undeclared (first use in this function)
demux.c:247: error: (Each undeclared identifier is reported only once
demux.c:247: error: for each function it appears in.)
demux.c: In function ‘Control’:
demux.c:374: warning: cast from function call of type ‘int64_t’ to non-matching type ‘double’
make[6]: *** [libavformat_plugin_la-demux.lo] Error 1
make[6]: Leaving directory `/home/jars/vlc/modules/demux/avformat'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/jars/vlc/modules/demux/avformat'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jars/vlc/modules/demux'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/jars/vlc/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jars/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jars/vlc'
make: *** [all] Error 2
root@jars-desktop:/home/jars/vlc#
Is the latest source code at GIT bugged?? and is it normal that the updated GIT VLC code contains bugs??
need help asap.

System: UBUNTU 8.04
gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 13:14
by coldfire
has somebody checked this error in latest VLC-GIT repository, how to fix it?

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 13:54
by yohann.martineau
could you provide the complete gcc command line?

did you run make and then make install. not just make install

actually, to compile vlc you should run:

./bootstrap

./configure (with appropriate options, see --help)

make

make install (as root)

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 14:16
by coldfire
could you provide the complete gcc command line?

did you run make and then make install. not just make install

actually, to compile vlc you should run:

./bootstrap

./configure (with appropriate options, see --help)

make

make install (as root)
i am not using any specific gcc command for compiling.
I have followed the same steps as
/bootstrap | ./configure | make

and on 'make' I am having this compile error !

PS. anyone tell me about how to check universe mirror in /etc/apt/sources.list. I have no idea about it. and if its not present there, how and what to put in there?

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 15:16
by coldfire
same error in Nightly Build as well.....
.......
....
make[5]: Leaving directory `/home/jars/Nightly/vlc/modules/demux/asf'
Making all in avformat
make[5]: Entering directory `/home/jars/Nightly/vlc/modules/demux/avformat'
make all-am
make[6]: Entering directory `/home/jars/Nightly/vlc/modules/demux/avformat'
/bin/bash ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_builddir="../../.." ../../../vlc-config --cflags plugin libavformat_plugin_la-demux.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-demux.lo -MD -MP -MF .deps/libavformat_plugin_la-demux.Tpo -c -o libavformat_plugin_la-demux.lo `test -f 'demux.c' || echo './'`demux.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avformat -DMODULE_NAME_IS_avformat -DMODULE_STRING=\"avformat\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/include/ffmpeg -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-demux.lo -MD -MP -MF .deps/libavformat_plugin_la-demux.Tpo -c demux.c -fPIC -DPIC -o .libs/libavformat_plugin_la-demux.o
demux.c: In function ‘OpenDemux’:
demux.c:99: warning: passing argument 2 of ‘stream_Peek’ from incompatible pointer type
demux.c:247: error: ‘CODEC_TYPE_ATTACHMENT’ undeclared (first use in this function)
demux.c:247: error: (Each undeclared identifier is reported only once
demux.c:247: error: for each function it appears in.)
demux.c: In function ‘Control’:
demux.c:374: warning: cast from function call of type ‘int64_t’ to non-matching type ‘double’
make[6]: *** [libavformat_plugin_la-demux.lo] Error 1
make[6]: Leaving directory `/home/jars/Nightly/vlc/modules/demux/avformat'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/jars/Nightly/vlc/modules/demux/avformat'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/jars/Nightly/vlc/modules/demux'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/jars/Nightly/vlc/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jars/Nightly/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jars/Nightly/vlc'
make: *** [all] Error 2
root@jars-desktop:~/Nightly/vlc#

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 17:14
by yohann.martineau
i am not using any specific gcc command for compiling.
I have followed the same steps as
/bootstrap | ./configure | make

and on 'make' I am having this compile error !
sorry but that's not what you told first:
got the code from
$ git clone git://git.videolan.org/vlc.git

and after bootstrapping and configuring, when I did
"$ make install"

the error trace comes as:
[...]
demux.c:247: error: ‘CODEC_TYPE_ATTACHMENT’ undeclared (first use in this function)
demux.c:247: error: (Each undeclared identifier is reported only once
demux.c:247: error: for each function it appears in.)
demux.c: In function ‘Control’:
demux.c:374: warning: cast from function call of type ‘int64_t’ to non-matching type ‘double’
make[6]: *** [libavformat_plugin_la-demux.lo] Error 1
make[6]: Leaving directory `/home/jars/vlc/modules/demux/avformat'
[...]
[...]
PS. anyone tell me about how to check universe mirror in /etc/apt/sources.list. I have no idea about it. and if its not present there, how and what to put in there?
why don't you try to ask on ubuntu's forum? But I don't think you will find the latest git version built out of the box on universe repository. I'm not an ubuntu user.

Did you try those instructions:

http://nightlies.videolan.org/#debian

then you must run sudo apt-get update and then sudo apt-get install vlc-dbg

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 10 Jul 2008 21:28
by sebjoub
Same problem here. Have you had any luck compiling yet?

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 11 Jul 2008 09:38
by yohann.martineau
on debian etch, I configure vlc with the following options:

./configure --disable-qt4 --disable-skins2

It seems that you have a recent ubuntu, so maybe you can simply remove --disable-qt4

what is your hardware ?

I use a dell latitude d630 laptop.

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 11 Jul 2008 09:47
by coldfire
on debian etch, I configure vlc with the following options:

./configure --disable-qt4 --disable-skins2

It seems that you have a recent ubuntu, so maybe you can simply remove --disable-qt4

what is your hardware ?

I use a dell latitude d630 laptop.

yes its a new ubuntu version, i use Intel Core2Duo CPU @ 2.33GHz, 1.95GB Ram !

i will try with --disable-skins2 ..lets see what happens...On the side not, when I goto that particular demux.c file and comment out that line giving error (which is actually not so important from right now!) it compiles well.

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 11 Jul 2008 22:04
by stealthdave
I was able to get latest git to build by commenting out lines 247 and 248 in /modules/demux/avformat/demux.c. Everything seems to still work, but it may have broken features, I don't know for certain.

Code: Select all

default: es_format_Init( &fmt, UNKNOWN_ES, 0 ); if( cc->codec_type == CODEC_TYPE_DATA ) psz_type = "data"; /* this code no worky */ // else if( cc->codec_type == CODEC_TYPE_ATTACHMENT ) // psz_type = "attachment"; msg_Warn( p_demux, "unsupported track type in ffmpeg demux" ); break; }

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Posted: 14 Jul 2008 15:26
by xtophe
it has been fixed properly in git