Building of SVN 13681 on Arch Linux fails with following error message:
...
[ 79%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/star.cpp.o
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/stream_texture.cpp.o
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/technique.cpp.o
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/tex_transform.cpp.o
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/vdu.cpp.o
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp: In destructor 'VidFileImpl::~VidFileImpl()':
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:204:45: error: 'av_close_input_file' was not declared in this scope
av_close_input_file( pFormatCtx );
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp: In member function 'void VidFileImpl::open(const string&)':
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:217:54: error: 'av_find_stream_info' was not declared in this scope
|| ( 0 > av_find_stream_info( pFormatCtx ) ) ) throw VidFile::FileOpenException( errbase+" (wrong format or)" );
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:244:45: error: 'avcodec_open' was not declared in this scope
if (avcodec_open( pCodecCtx, pCodec ) < 0) throw VidFile::UnsupportedCodecException( errbase+" (unsupported codec)" );
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:245:25: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pFrameYUV = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:245:45: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pFrameYUV = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:246:25: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pNextFrameYUV = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:246:45: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pNextFrameYUV = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:258:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (width < pCodecCtx->width && width <= (fbDimensionLimit/2)) width = 2;
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:259:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (height < pCodecCtx->height && height <= (fbDimensionLimit/2)) height = 2;
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:271:29: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pFrameRGB = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:271:49: warning: 'AVFrame avcodec_alloc_frame()' is deprecated (declared at /usr/include/libavcodec/avcodec.h:3545) [-Wdeprecated-declarations]
pFrameRGB = avcodec_alloc_frame();
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp: In member function 'bool VidFileImpl::seek(float)':
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:301:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ( (targetPTS >= prevPTS) && (targetPTS < pNextFrameYUV->pts) ) {
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:331:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (pNextFrameYUV->pts < targetPTS) {
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:337:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (packet.dts < targetPTS) {
^
/build/vegastrike-svn/src/vegastrike-build/src/gfx/vid_file.cpp:343:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pNextFrameYUV->pts < targetPTS) {
^
CMakeFiles/vegastrike.dir/build.make:2423: recipe for target 'CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o' failed
make[2]: [CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o] Error 1
CMakeFiles/Makefile2:245: recipe for target 'CMakeFiles/vegastrike.dir/all' failed
make[1]: [CMakeFiles/vegastrike.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Build failed
Build instructions and PKGBUILD file can be found here:
https://aur.archlinux.org/packages/vegastrike-svn/
Anonymous
Latest ffmpeg is incompatible with VS, because they dropped the register_protocol call (among others, but that one is the one that makes migration difficult).
So, build without it. The game will run just fine (it will be unable to play videos, but currently there's little to no art depending on it).
For that, add -DDISABLE_FFMPEG=TRUE to the cmake line in the pkgbuild.
Hi Klauss, Jaroslav.
I tried to compile it disabling ffmpeg as you said, but it failed about 50% in some ogre stuff. Log attached.
Thanks
Ok, add -DDISABLE_OGRE, you won't need what it gives unless you want to mod, and even in that case, if you're using Ogre meshes.
Just svn up first, that DISABLE I just added ;)
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Adding -DDISABLE_OGRE-TRUE to the cmake line in the PKGBUILD doesn't seem to work for me. I still get errors that are in the attachment.
For what it's worth Audacity had the same problem. I tried to figure out their solution but I don't know C or the Audacity codebase so I didn't find anything.