Survex 1.2.20 compile error

Bill Gee bgee at campercaver.net
Sat Jun 27 20:54:57 BST 2015


On 64-bit Fedora 21.  This machine correctly compiles Survex 1.2.18.  The error is 
actually in moviemaker.

I used an option to specify the selector for wxGTK ...

	./configure  WX_CONFIG=/usr/bin/wx-config-3.0

Configure ran through without errors or warnings.

I ran make once and it went most of the way through.  Now when I run make, it only 
tries to build what has not been done yet.  Below is the output from make.

Any suggestions??

Thanks - Bill Gee

====================

[bgee at main2 survex-1.2.20]$ make
make  all-recursive
make[1]: Entering directory '/home/bgee/Installs/survex-1.2.20'
Making all in .
make[2]: Entering directory '/home/bgee/Installs/survex-1.2.20'
make[2]: Leaving directory '/home/bgee/Installs/survex-1.2.20'
Making all in lib
make[2]: Entering directory '/home/bgee/Installs/survex-1.2.20/lib'
Making all in icons
make[3]: Entering directory '/home/bgee/Installs/survex-1.2.20/lib/icons'
make  all-am
make[4]: Entering directory '/home/bgee/Installs/survex-1.2.20/lib/icons'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/bgee/Installs/survex-1.2.20/lib/icons'
make[3]: Leaving directory '/home/bgee/Installs/survex-1.2.20/lib/icons'
Making all in images
make[3]: Entering directory '/home/bgee/Installs/survex-1.2.20/lib/images'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/bgee/Installs/survex-1.2.20/lib/images'
make[3]: Entering directory '/home/bgee/Installs/survex-1.2.20/lib'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/bgee/Installs/survex-1.2.20/lib'
make[2]: Leaving directory '/home/bgee/Installs/survex-1.2.20/lib'
Making all in src
make[2]: Entering directory '/home/bgee/Installs/survex-1.2.20/src'
make  all-am
make[3]: Entering directory '/home/bgee/Installs/survex-1.2.20/src'
g++ -DHAVE_CONFIG_H -I. -I..    -Wall -W -Wunused -Wshadow -Wpointer-arith      -
Wwrite-strings -Wcast-align  -I/usr/include/ffmpeg  -I/usr/lib64/wx/include/gtk3-
unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -
D__WXGTK__ -pthread  -g -O2 -MT aven-moviemaker.o -MD -MP -MF .deps/aven-
moviemaker.Tpo -c -o aven-moviemaker.o `test -f 'moviemaker.cc' || echo 
'./'`moviemaker.cc
moviemaker.cc: In function ‘AVFrame* av_frame_alloc()’:
moviemaker.cc:80:40: error: ‘AVFrame* av_frame_alloc()’ was declared ‘extern’ and 
later ‘static’ [-fpermissive]
 static inline AVFrame * av_frame_alloc() {
                                        ^
In file included from /usr/include/ffmpeg/libavcodec/avcodec.h:38:0,
                 from /usr/include/ffmpeg/libavformat/avformat.h:255,
                 from moviemaker.cc:64:
/usr/include/ffmpeg/libavutil/frame.h:602:10: note: previous declaration of ‘AVFrame* 
av_frame_alloc()’
 AVFrame *av_frame_alloc(void);
          ^
moviemaker.cc: In function ‘AVFrame* av_frame_alloc()’:
moviemaker.cc:81:12: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated 
(declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3545) [-Wdeprecated-
declarations]
     return avcodec_alloc_frame();
            ^
moviemaker.cc:81:32: warning: ‘AVFrame* avcodec_alloc_frame()’ is deprecated 
(declared at /usr/include/ffmpeg/libavcodec/avcodec.h:3545) [-Wdeprecated-
declarations]
     return avcodec_alloc_frame();
                                ^
moviemaker.cc: In function ‘void av_frame_free(AVFrame**)’:
moviemaker.cc:90:50: error: ‘void av_frame_free(AVFrame**)’ was declared ‘extern’ 
and later ‘static’ [-fpermissive]
 static inline void av_frame_free(AVFrame ** frame) {
                                                  ^
In file included from /usr/include/ffmpeg/libavcodec/avcodec.h:38:0,
                 from /usr/include/ffmpeg/libavformat/avformat.h:255,
                 from moviemaker.cc:64:
/usr/include/ffmpeg/libavutil/frame.h:611:6: note: previous declaration of ‘void 
av_frame_free(AVFrame**)’
 void av_frame_free(AVFrame **frame);
      ^
moviemaker.cc: In member function ‘bool MovieMaker::Open(const char*, int, int)’:
moviemaker.cc:149:60: error: ‘guess_format’ was not declared in this scope
     AVOutputFormat * fmt = av_guess_format(NULL, fnm, NULL);
                                                            ^
moviemaker.cc:186:35: error: ‘av_new_stream’ was not declared in this scope
     video_st = avformat_new_stream(oc, codec);
                                   ^
moviemaker.cc:220:42: error: ‘av_set_parameters’ was not declared in this scope
     retval = av_set_parameters(oc, NULL);
                                          ^
moviemaker.cc:227:36: error: ‘avcodec_open’ was not declared in this scope
     retval = avcodec_open2(c, NULL, NULL);
                                    ^
moviemaker.cc:282:36: error: ‘url_fopen’ was not declared in this scope
  retval = avio_open(&oc->pb, fnm, AVIO_FLAG_WRITE);
                                    ^
moviemaker.cc:293:32: error: ‘av_write_header’ was not declared in this scope
     retval = av_write_header(oc);
                                ^
moviemaker.cc: In member function ‘bool MovieMaker::AddFrame()’:
moviemaker.cc:399:16: warning: ‘int avcodec_encode_video(AVCodecContext*, 
uint8_t*, int, const AVFrame*)’ is deprecated (declared at 
/usr/include/ffmpeg/libavcodec/avcodec.h:4476) [-Wdeprecated-declarations]
     out_size = avcodec_encode_video(c, outbuf, OUTBUF_SIZE, frame);
                ^
moviemaker.cc:399:66: warning: ‘int avcodec_encode_video(AVCodecContext*, 
uint8_t*, int, const AVFrame*)’ is deprecated (declared at 
/usr/include/ffmpeg/libavcodec/avcodec.h:4476) [-Wdeprecated-declarations]
     out_size = avcodec_encode_video(c, outbuf, OUTBUF_SIZE, frame);
                                                                  ^
moviemaker.cc: In member function ‘bool MovieMaker::Close()’:
moviemaker.cc:473:17: warning: ‘int avcodec_encode_video(AVCodecContext*, 
uint8_t*, int, const AVFrame*)’ is deprecated (declared at 
/usr/include/ffmpeg/libavcodec/avcodec.h:4476) [-Wdeprecated-declarations]
      out_size = avcodec_encode_video(c, outbuf, OUTBUF_SIZE, NULL);
                 ^
moviemaker.cc:473:68: warning: ‘int avcodec_encode_video(AVCodecContext*, 
uint8_t*, int, const AVFrame*)’ is deprecated (declared at 
/usr/include/ffmpeg/libavcodec/avcodec.h:4476) [-Wdeprecated-declarations]
      out_size = avcodec_encode_video(c, outbuf, OUTBUF_SIZE, NULL);
                                                                    ^
moviemaker.cc: In member function ‘void MovieMaker::release()’:
moviemaker.cc:535:23: error: ‘url_fclose’ was not declared in this scope
      avio_close(oc->pb);
                       ^
Makefile:1053: recipe for target 'aven-moviemaker.o' failed
make[3]: *** [aven-moviemaker.o] Error 1
make[3]: Leaving directory '/home/bgee/Installs/survex-1.2.20/src'


More information about the Survex mailing list