Funtoo-current, error at 80% compile after ccmake

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

Funtoo-current, error at 80% compile after ccmake

Postby shenle » Sun Jul 05, 2015 3:28 pm

Here's the output:

Code: Select all
[ 80%] Building CXX object CMakeFiles/vegastrike.dir/src/gfx/vid_file.cpp.o
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp: In destructor ‘VidFileImpl::~VidFileImpl()’:
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:204:45: error: ‘av_close_input_file’ was not declared in this scope
             av_close_input_file( pFormatCtx );
                                             ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp: In member function ‘void VidFileImpl::open(const string&)’:
/home/s/vegastrike/vegastrike/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)" );
                                                      ^
/home/s/vegastrike/vegastrike/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)" );
                                             ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:245:25: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pFrameYUV     = avcodec_alloc_frame();
                         ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:245:45: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pFrameYUV     = avcodec_alloc_frame();
                                             ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:246:25: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pNextFrameYUV = avcodec_alloc_frame();
                         ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:246:45: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pNextFrameYUV = avcodec_alloc_frame();
                                             ^
/home/s/vegastrike/vegastrike/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;
                          ^
/home/s/vegastrike/vegastrike/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;
                           ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:271:29: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pFrameRGB         = avcodec_alloc_frame();
                             ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:271:49: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3635) [-Wdeprecated-declarations]
         pFrameRGB         = avcodec_alloc_frame();
                                                 ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp: In member function ‘bool VidFileImpl::seek(float)’:
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:301:51: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         if ( (targetPTS >= prevPTS) && (targetPTS < pNextFrameYUV->pts) ) {
                                                   ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:331:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 if (pNextFrameYUV->pts < targetPTS) {
                                        ^
/home/s/vegastrike/vegastrike/src/gfx/vid_file.cpp:337:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 while (packet.dts < targetPTS) {
                                   ^
/home/s/vegastrike/vegastrike/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:75: recipe for target 'all' failed
make: *** [all] Error 2
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 380
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: Funtoo-current, error at 80% compile after ccmake

Postby loki1950 » Sun Jul 05, 2015 4:33 pm

So you are compiling with ffmempeg support that error is caused by a change in the API of ffmemprg the scale function IIRC since I have a very sketchy grasp of C++ have no idea on how to fix the offending code,you might try without ffmempeg support as there is currently no content that requires it though that may change if ezze has his way :D There is another issue you may run in to that is the objconv app mesher needs the Orge3D headers but the latest version also has an API change that throws an error I posted about it a while back and ezze provided a fix that I have not applied.

Enjoy the Choice :)
my box::HP Envy i5-6400 @2Q70GHzx4 8 Gb ram/1 Tb(Win10 64)/3 Tb Mint 18/GTX745 4Gb acer S243HL K222HQL
Q8200/Asus P5QDLX/8 Gb ram/WD 2Tb 2-500 G HD/GF GT640 2Gb Mint 17.3 64 bit Win 10 32 bit acer and DELL E6400 4GB ram/100 GB HD Mint 17.3 6
User avatar
loki1950
The Shepherd
 
Posts: 5708
Topics: 51
Joined: Fri May 13, 2005 1:37 pm
Location: Ottawa

Re: Funtoo-current, error at 80% compile after ccmake

Postby ezee » Sun Jul 05, 2015 4:53 pm

So you are compiling with ffmempeg support

Loki saw that like me , there is an option in your project or makefile that defines if using or not ffmpeg .
Try to find that preprocessor define and remove it :
HAVE_FFMPEG
Code: Select all
 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }

Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
ezee
Intrepid Venturer
Intrepid Venturer
 
Posts: 703
Topics: 65
Joined: Mon Feb 10, 2014 5:47 pm
Location: FRANCE

Re: Funtoo-current, error at 80% compile after ccmake

Postby shenle » Sun Jul 05, 2015 5:29 pm

Thanks; in cmake I have turned on the DISABLE_FFMPEG option and at rebuild it successfully went past that point. Still waiting for the build to finish.

(edit) the build was 100% successful.
make me a sandwich
make: *** No rule to make target 'me'. Stop.
shenle
Confed Special Operative
Confed Special Operative
 
Posts: 380
Topics: 30
Joined: Wed Jan 30, 2008 8:25 pm
Location: hiding in a dark corner

Re: Funtoo-current, error at 80% compile after ccmake

Postby ezee » Sun Jul 05, 2015 6:53 pm

good job !
:wink:
Code: Select all
 if (!track.HasWeapons())
            {
                // So what are you going to threaten me with? Exhaustion gas?
                return ThreatLevel::None;
            }

Vegastrike evolved
DEV YOUTUBE CHANNEL
Vegastrike evolved wiki
ezee
Intrepid Venturer
Intrepid Venturer
 
Posts: 703
Topics: 65
Joined: Mon Feb 10, 2014 5:47 pm
Location: FRANCE



Return to Compiling Problems [paste config.log]

Who is online

Users browsing this forum: No registered users and 2 guests

cron