svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Post by shenle »

Code: Select all

/home/s/vegastrike/svn/vegastrike/src/gfx/vid_file.cpp:230: error: ‘AVMEDIA_TYPE_VIDEO’ was not declared in this scope
/home/s/vegastrike/svn/vegastrike/src/gfx/vid_file.cpp:231: error: ‘AVMEDIA_TYPE_AUDIO’ was not declared in this scope
Previous svn revision compiled successfully on this system was 13105 which did not exhibit this error during compilation.

I think this may be due to some recent changes in ffmpeg. BTW here is my version of ffmpeg (the latest in Ubuntu's repository)
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 1 / 52.20. 1
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Sep 16 2011 17:08:44, gcc: 4.4.3
make me a sandwich
make: *** No rule to make target 'me'. Stop.
klauss
Elite
Elite
Posts: 7243
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Post by klauss »

What if you go to src/ffmpeg_init.h:61 and replace >= 52 with > 52?
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
shenle
Confed Special Operative
Confed Special Operative
Posts: 381
Joined: Thu Jan 31, 2008 3:25 am
Location: hiding in a dark corner

Re: svn-13245/Ubuntu 10.04 error in gfx/vid_file.cpp

Post by shenle »

That works; with the change above VS is built and runs successfully.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
Post Reply