[vlc-devel] Build issues on Ubuntu 8.04

Dave Still dave at stilldesigning.com
Fri Jul 11 22:07:25 CEST 2008


By commenting out lines 247 and 248 of /modules/demux/avformat/ 
demux.c, I'm able to compile and get a working executable, but I don't  
know what this breaks.  CODEC_TYPE_ATTACHMENT seems to be defined in  
an ffmpeg header file, ffmpeg/libavcodec/avcodec.h, which is included  
by demux.c.  The same header defines CODEC_TYPE_DATA which doesn't  
cause an error.

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


- Dave

On Jul 10, 2008, at 12:32 PM, Dave Still wrote:

> I'm running Ubuntu 8.04 on AMD64, and I'm getting the following
> compile error:
>
> 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 -DHAVE_RELEASE -
> D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avformat -
> DMODULE_NAME_IS_avformat -DMODULE_STRING=\"avformat\" -O2 -ffast- 
> math -
> funroll-loops -mtune=athlon64 -fomit-frame-pointer -I/include -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 \u2018OpenDemux\u2019:
> demux.c:99: warning: passing argument 2 of \u2018stream_Peek\u2019
> from incompatible pointer type
> demux.c:247: error: \u2018CODEC_TYPE_ATTACHMENT\u2019 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 \u2018Control\u2019:
> demux.c:374: warning: cast from function call of type \u2018int64_t
> \u2019 to non-matching type \u2018double\u2019
> make[6]: *** [libavformat_plugin_la-demux.lo] Error 1
> make[6]: Leaving directory `/home/stealthdave/Source/vlc/modules/ 
> demux/
> avformat'
> make[5]: *** [all] Error 2
> make[5]: Leaving directory `/home/stealthdave/Source/vlc/modules/ 
> demux/
> avformat'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory `/home/stealthdave/Source/vlc/modules/ 
> demux'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory `/home/stealthdave/Source/vlc/modules/ 
> demux'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/stealthdave/Source/vlc/modules'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/stealthdave/Source/vlc'
> make: *** [all] Error 2
>
> According to a post in the web forum ( http://forum.videolan.org/viewtopic.php?f=13&p=153209
>  ), this is not an isolated occurance.  My last successful build on
> Ubuntu was several weeks ago, but I hadn't tried in quite a while.
> Any ideas as to what might be causing this, or perhaps a fix /
> workaround?
>
> Thanks,
> - Dave
>
> --
> David E. Still
> Senior Developer
> Still Designing
> http://www.stilldesigning.com
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list