I transfer the project from Win7 to Ubuntu (04/14/4). There was a problem with the ffmpeg libraries. Installed ffmpeg as follows (version 3.0.0):

sudo add-apt-repository ppa:mc3man/trusty-media && sudo apt-get update sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8E51A6D660CD88D67D65221D90BD7EACED8E640A sudo apt-get install ffmpeg 

Wednesday chose Code :: Blocks (01/16). In the header file I specified (I used one file to connect all the libraries used. I connect this file to all the others through #pragma once ):

 extern "C" { #include <stdio.h> #include <libavformat/avformat.h> #include <libavutil/opt.h> #include <libavfilter/buffersink.h> #include <libavfilter/buffersrc.h> #include <libavfilter/avfilter.h> #include <libavutil/avstring.h> #include <libavutil/md5.h> #include <libavutil/mem.h> #include <libavutil/opt.h> #include <libavutil/samplefmt.h> } 

In Build options-> Search directories -> Compiler pointed out (ffmpeg was installed there):

../../../../../opt/ffmpeg/include

In Build options-> Search directories -> Linker indicated:

../../../../../opt/ffmpeg/lib

In Build options-> Linker Settings -> Other linker options :

  -lavdevice -lavfilter -lpostproc -lavformat -lavcodec -lrt -ldl -lXfixes -lXext -lX11-lasound -lSDL -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lz -lrt -lswresample -lswscale -lavutil -lm -lz -lswresample -lpthread -lfreetype 

I tried to add to ..->Link Libraries :

 ../../../../../opt/ffmpeg/lib/libavcodec.a ../../../../../opt/ffmpeg/lib/libavdevice.a ../../../../../opt/ffmpeg/lib/libavfilter.a ../../../../../opt/ffmpeg/lib/libavresample.a ../../../../../opt/ffmpeg/lib/libavutil.a ../../../../../opt/ffmpeg/lib/libpostproc.a ../../../../../opt/ffmpeg/lib/libswresample.a ../../../../../opt/ffmpeg/lib/libswscale.a 

Included support for С++11 .

But with the build, the following errors pop up, which I do not know how to fix:

 > ||=== Build: Debug in server (compiler: GNU GCC Compiler) ===| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `config_input':| (.text+0xce)||undefined reference to > `ass_set_frame_size'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `config_input':| (.text+0xf3)||undefined reference to > `ass_set_shaper'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `config_input':| (.text+0x129)||undefined reference to > `ass_set_aspect_ratio'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `filter_frame':| (.text+0x1d2)||undefined reference to > `ass_render_frame'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `uninit':| (.text.unlikely+0x16)||undefined reference to > `ass_free_track'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `uninit':| (.text.unlikely+0x25)||undefined reference to > `ass_renderer_done'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init':| (.text.unlikely+0x75)||undefined reference to > `ass_library_init'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init':| (.text.unlikely+0xaf)||undefined reference to > `ass_set_message_cb'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init':| (.text.unlikely+0xc1)||undefined reference to > `ass_set_fonts_dir'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init':| (.text.unlikely+0xcc)||undefined reference to > `ass_renderer_init'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_ass':| (.text.unlikely+0x144)||undefined reference to > `ass_set_fonts'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_ass':| (.text.unlikely+0x15e)||undefined reference to > `ass_read_file'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x1e9)||undefined > reference to `ass_new_track'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x437)||undefined > reference to `ass_add_font'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x474)||undefined > reference to `ass_set_fonts'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x60a)||undefined > reference to `ass_set_style_overrides'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x649)||undefined > reference to `ass_process_codec_private'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `init_subtitles':| (.text.unlikely+0x7e6)||undefined > reference to `ass_process_chunk'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_subtitles.o)||In > function `uninit':| (.text.unlikely+0x39)||undefined reference to > `ass_library_done'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0x82)||undefined reference to > `vsFrameInfoInit'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0xf1)||undefined reference to > `vsMotionDetectInit'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0xf7)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0x10d)||undefined reference to > `vsMotionDetectGetConfig'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0x247)||undefined reference to > `vsPrepareFile'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `config_input':| (.text+0x24f)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `filter_frame':| (.text+0x3e4)||undefined reference to > `vsMotionDetection'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `filter_frame':| (.text+0x3ea)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `filter_frame':| (.text+0x44a)||undefined reference to > `vsWriteToFile'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `filter_frame':| (.text+0x450)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `filter_frame':| (.text+0x48c)||undefined reference to > `vs_vector_del'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabdetect.o)||In > function `uninit':| (.text.unlikely+0x35)||undefined reference to > `vsMotionDetectionCleanup'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x7a)||undefined reference to > `vsFrameInfoInit'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0xaf)||undefined reference to > `vsFrameInfoInit'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x15e)||undefined reference to > `vsTransformDataInit'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x168)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x17a)||undefined reference to > `vsTransformGetConfig'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x361)||undefined reference to > `getInterpolationTypeName'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x3b1)||undefined reference to > `vsReadLocalMotionsFile'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x3bb)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x3db)||undefined reference to > `vsReadOldTransforms'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x3fb)||undefined reference to > `vsPreprocessTransforms'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x401)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x458)||undefined reference to > `vsLocalmotions2Transforms'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `config_input':| (.text+0x45e)||undefined reference to > `VS_OK'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x662)||undefined reference to > `vsTransformGetSrcFrameInfo'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x687)||undefined reference to > `vsTransformGetSrcFrameInfo'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x6b5)||undefined reference to > `vsTransformGetDestFrameInfo'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x6e7)||undefined reference to > `vsTransformPrepare'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x702)||undefined reference to > `vsGetNextTransform'| > ../../../../../opt/ffmpeg/lib/libavfilter.a(vf_vidstabtransform.o)||In > function `filter_frame':| (.text+0x768)||undefined reference to > `vsDoTransform'| ||More errors follow but not being shown.| ||Edit the > max errors limit in compiler options...| ||=== Build failed: 50 > error(s), 0 warning(s) (0 minute(s), 5 second(s)) ===| 

PS Code Blocks is not critical. If you have working options for other IDEs - write them in response (IDE and how to build and connect ffmpeg for it)

UPDATE1: Installed on the machine: libass-dev0.13 , libass4 , libass5 , libassa3.5-5 , libassa3.5-5-dev , libassuan0 . Added a key to the beginning of the list of keys above: -lass . Nothing changed. Also Build options-> Search directories -> Linker them in Build options-> Search directories -> Linker

UPDATE2: reinstalled ffmpeg like this , errors are the same

  • Apparently the right libu can not find. You can try to steal all the ffmpegs, probably in one of them it is. - Unick
  • Check the width of the libraries and the application being built. - αλεχολυτ
  • Perhaps the order of connection is important. Although I'm not sure - Unick
  • ffmpeg was installed there (in / opt ) - I would not recommend using such crookedly assembled packages. - aleksandr barakin
  • @Dmitry Do you have libass connected? - Embedder

0