Page 1 of 1

Funtoo-current, error at 80% compile after ccmake

Posted: Sun Jul 05, 2015 10:28 pm
by shenle
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

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

Posted: Sun Jul 05, 2015 11:33 pm
by loki1950
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 :)

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

Posted: Sun Jul 05, 2015 11:53 pm
by ezee
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

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

Posted: Mon Jul 06, 2015 12:29 am
by shenle
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.

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

Posted: Mon Jul 06, 2015 1:53 am
by ezee
good job !
:wink: