Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22272

compile own ffmpeg filter

$
0
0

I'm trying compile my own ffmpeg filter using official tutorial. My filter uses C++ code. I made header file and adapted my C++ function definition for C. Now I'm trying compile with command make -j<libavfilter> ffmpeg, but receiving an error message

gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat-Llibavresample -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample-o ffmpeg_g fftools/ffmpeg_opt.o fftools/ffmpeg_filter.o fftools/ffmpeg_hw.o fftools/cmdutils.o fftools/ffmpeg.o -lavdevice-lavfilter -lavformat -lavcodec -lswresample -lswscale -lavutil -lm -pthread -lm -lm -lz -pthread -lm -lz -lm -lm -pthread -lm libavfilter/libavfilter.a(vf_foobar.o): In function `filter_frame':/home/joeyes/ffmpeg_sources/ffmpeg/libavfilter/vf_foobar.c:302:undefined reference to MyFunction.ccollect2: ld returned 1 exit status*** [ffmpeg_g] Error 1

For compilation I added OBJS-$(CONFIG_FOOBAR_FILTER) += vf_foobar.o MyCode.o to /libavfilter/makefile

Also I put MyCode.h & MyCode.cpp to /libavfilter folder


Viewing all articles
Browse latest Browse all 22272

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>