neutrinolabs / NeutrinoRDP

This is a fork of FreeRDP 1.0.1
Apache License 2.0
57 stars 75 forks source link

error build ubuntu 16.04 #19

Open CheckB opened 6 years ago

CheckB commented 6 years ago

https://github.com/neutrinolabs/NeutrinoRDP/wiki/Compilation

[ 70%] Built target tsmf
Scanning dependencies of target tsmf_ffmpeg
[ 71%] Building C object channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:43:15: error: field ‘codec_id’ has incomplete type
  enum CodecID codec_id;
               ^
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In function ‘tsmf_ffmpeg_init_video_stream’:
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:78:2: warning: ‘avcodec_alloc_frame’ is deprecated [-Wdeprecated-declarations]
  mdecoder->frame = avcodec_alloc_frame();
  ^
In file included from /root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:27:0:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3937:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In function ‘tsmf_ffmpeg_init_audio_stream’:
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:93:25: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘dsp_mask’
  mdecoder->codec_context->dsp_mask = AV_CPU_FLAG_SSE2 | AV_CPU_FLAG_MMX2;
                         ^
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In function ‘tsmf_ffmpeg_decode_video’:
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:348:3: warning: ‘avcodec_alloc_frame’ is deprecated [-Wdeprecated-declarations]
   frame = avcodec_alloc_frame();
   ^
In file included from /root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:27:0:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3937:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c: In function ‘tsmf_ffmpeg_decode_audio’:
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:390:32: error: ‘AVCODEC_MAX_AUDIO_FRAME_SIZE’ undeclared (first use in this function)
   mdecoder->decoded_size_max = AVCODEC_MAX_AUDIO_FRAME_SIZE + 16;
                                ^
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:390:32: note: each undeclared identifier is reported only once for each function it appears in
/root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:421:13: warning: ‘avcodec_alloc_frame’ is deprecated [-Wdeprecated-declarations]
             AVFrame* decoded_frame = avcodec_alloc_frame();
             ^
In file included from /root/NeutrinoRDP/channels/drdynvc/tsmf/ffmpeg/tsmf_ffmpeg.c:27:0:
/usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:3937:10: note: declared here
 AVFrame *avcodec_alloc_frame(void);
          ^
channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/build.make:62: recipe for target 'channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o' failed
make[2]: *** [channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/tsmf_ffmpeg.c.o] Error 1
CMakeFiles/Makefile2:768: recipe for target 'channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/all' failed
make[1]: *** [channels/drdynvc/tsmf/ffmpeg/CMakeFiles/tsmf_ffmpeg.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2