Compile Problem UBUNTU Latest VLC Git Source Code

*nix specific usage questions
coldfire
Blank Cone
Blank Cone
Posts: 47
Joined: 07 Jul 2008 11:02

Compile Problem UBUNTU Latest VLC Git Source Code

Postby coldfire » 10 Jul 2008 11:24

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)
Good one What is H264?

coldfire
Blank Cone
Blank Cone
Posts: 47
Joined: 07 Jul 2008 11:02

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby coldfire » 10 Jul 2008 13:14

has somebody checked this error in latest VLC-GIT repository, how to fix it?
Good one What is H264?

yohann.martineau
Blank Cone
Blank Cone
Posts: 84
Joined: 27 Aug 2007 15:22

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby yohann.martineau » 10 Jul 2008 13:54

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)

coldfire
Blank Cone
Blank Cone
Posts: 47
Joined: 07 Jul 2008 11:02

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby coldfire » 10 Jul 2008 14:16

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?
Good one What is H264?

coldfire
Blank Cone
Blank Cone
Posts: 47
Joined: 07 Jul 2008 11:02

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby coldfire » 10 Jul 2008 15:16

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#
Good one What is H264?

yohann.martineau
Blank Cone
Blank Cone
Posts: 84
Joined: 27 Aug 2007 15:22

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby yohann.martineau » 10 Jul 2008 17:14

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

sebjoub
New Cone
New Cone
Posts: 1
Joined: 10 Jul 2008 21:26

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby sebjoub » 10 Jul 2008 21:28

Same problem here. Have you had any luck compiling yet?

yohann.martineau
Blank Cone
Blank Cone
Posts: 84
Joined: 27 Aug 2007 15:22

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby yohann.martineau » 11 Jul 2008 09:38

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.

coldfire
Blank Cone
Blank Cone
Posts: 47
Joined: 07 Jul 2008 11:02

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby coldfire » 11 Jul 2008 09:47

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.
Good one What is H264?

stealthdave
Blank Cone
Blank Cone
Posts: 14
Joined: 23 Feb 2005 02:32

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby stealthdave » 11 Jul 2008 22:04

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; }

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Compile Problem UBUNTU Latest VLC Git Source Code

Postby xtophe » 14 Jul 2008 15:26

it has been fixed properly in git
Xtophe


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests