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).

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

Postby shenle » Tue Nov 22, 2011 3:30 pm

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.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

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

Postby klauss » Tue Nov 22, 2011 4:08 pm

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
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 7:40 am
Location: LS87, Buenos Aires, República Argentina

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

Postby shenle » Tue Nov 22, 2011 4:25 pm

That works; with the change above VS is built and runs successfully.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 381
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner


Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 4 guests

cron