Bug Report [SOLVED]Can't compile since I updated.

nifker13

New Member
When I try to compile it after update it I get this:
<code>
[ 0%] [ 2%] [ 6%] Built target jansson
[ 6%] Built target glad
Automatic moc for target obs
[ 6%] Building C object deps/libff/CMakeFiles/libff.dir/libff/ff-circular-queue.c.o
Building C object deps/libff/CMakeFiles/libff.dir/libff/ff-clock.c.o
[ 6%] Built target obs_automoc
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-circular-queue.c: In function ‘ff_circular_queue_init’:
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-circular-queue.c:51:2: error: implicit declaration of function ‘memset’ [-Werror=implicit-function-declaration]
memset(cq, 0, sizeof(struct ff_circular_queue));
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-circular-queue.c:51:2: warning: incompatible implicit declaration of built-in function ‘memset’
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c: In function ‘ff_clock_start’:
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:78:5: error: implicit declaration of function ‘av_log’ [-Werror=implicit-function-declaration]
av_log(NULL, AV_LOG_ERROR, "could not start "
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:78:18: error: ‘AV_LOG_ERROR’ undeclared (first use in this function)
av_log(NULL, AV_LOG_ERROR, "could not start "
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:78:18: note: each undeclared identifier is reported only once for each function it appears in
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c: In function ‘ff_clock_init’:
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:95:2: error: implicit declaration of function ‘av_mallocz’ [-Werror=implicit-function-declaration]
clock = av_mallocz(sizeof(struct ff_clock));
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:95:8: warning: assignment makes pointer from integer without a cast
clock = av_mallocz(sizeof(struct ff_clock));
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-clock.c:111:2: error: implicit declaration of function ‘av_free’ [-Werror=implicit-function-declaration]
av_free(clock);
^
[ 7%] cc1: some warnings being treated as errors
deps/libff/CMakeFiles/libff.dir/build.make:100: recipe for target 'deps/libff/CMakeFiles/libff.dir/libff/ff-clock.c.o' failed
make[2]: *** [deps/libff/CMakeFiles/libff.dir/libff/ff-clock.c.o] Error 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
[ 8%] Building C object deps/libff/CMakeFiles/libff.dir/libff/ff-util.c.o
[ 9%] Building C object libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o
Building C object libobs/CMakeFiles/libobs.dir/graphics/texture-render.c.o
cc1: some warnings being treated as errors
deps/libff/CMakeFiles/libff.dir/build.make:77: recipe for target 'deps/libff/CMakeFiles/libff.dir/libff/ff-circular-queue.c.o' failed
make[2]: *** [deps/libff/CMakeFiles/libff.dir/libff/ff-circular-queue.c.o] Error 1
[ 9%] /home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c: In function ‘get_codecs’:
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:74:2: error: implicit declaration of function ‘av_calloc’ [-Werror=implicit-function-declaration]
codecs = av_calloc(codec_count, sizeof(AVCodecDescriptor *));
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:74:9: warning: assignment makes pointer from integer without a cast
codecs = av_calloc(codec_count, sizeof(AVCodecDescriptor *));
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c: In function ‘is_output_device’:
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:256:17: error: ‘AVClass’ has no member named ‘category’
switch (avclass->category) {
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:257:7: error: ‘AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT’ undeclared (first use in this function)
case AV_CLASS_CATEGORY_DEVICE_VIDEO_OUTPUT:
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:257:7: note: each undeclared identifier is reported only once for each function it appears in
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:258:7: error: ‘AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT’ undeclared (first use in this function)
case AV_CLASS_CATEGORY_DEVICE_AUDIO_OUTPUT:
^
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:259:7: error: ‘AV_CLASS_CATEGORY_DEVICE_OUTPUT’ undeclared (first use in this function)
case AV_CLASS_CATEGORY_DEVICE_OUTPUT:
^
Building C object libobs/CMakeFiles/libobs.dir/graphics/bounds.c.o
/home/user/Schreibtisch/Compiling/obs-studio/deps/libff/libff/ff-util.c:267:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
deps/libff/CMakeFiles/libff.dir/build.make:169: recipe for target 'deps/libff/CMakeFiles/libff.dir/libff/ff-util.c.o' failed
make[2]: *** [deps/libff/CMakeFiles/libff.dir/libff/ff-util.c.o] Error 1
CMakeFiles/Makefile2:182: recipe for target 'deps/libff/CMakeFiles/libff.dir/all' failed
make[1]: *** [deps/libff/CMakeFiles/libff.dir/all] Error 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c: In function ‘ffmpeg_image_open_decoder_context’:
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:27:5: error: implicit declaration of function ‘av_err2str’ [-Werror=implicit-function-declaration]
info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:27:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:45:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
"%s", info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c: In function ‘ffmpeg_image_init’:
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:72:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:79:21: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
" %s", info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c: In function ‘ffmpeg_image_reformat_frame’:
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:104:22: error: ‘AV_PIX_FMT_BGR0’ undeclared (first use in this function)
info->format == AV_PIX_FMT_BGR0) {
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:104:22: note: each undeclared identifier is reported only once for each function it appears in
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:134:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c: In function ‘ffmpeg_image_decode’:
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:162:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:171:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
info->file, av_err2str(ret));
^
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c: In function ‘convert_format’:
/home/user/Schreibtisch/Compiling/obs-studio/libobs/graphics/graphics-ffmpeg.c:198:7: error: ‘AV_PIX_FMT_BGR0’ undeclared (first use in this function)
case AV_PIX_FMT_BGR0: return GS_BGRX;
^
[ 10%] cc1: some warnings being treated as errors
Building C object libobs/CMakeFiles/libobs.dir/graphics/matrix3.c.o
libobs/CMakeFiles/libobs.dir/build.make:146: recipe for target 'libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o' failed
make[2]: *** [libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o] Error 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
[ 10%] Building C object libobs/CMakeFiles/libobs.dir/graphics/matrix4.c.o
CMakeFiles/Makefile2:333: recipe for target 'libobs/CMakeFiles/libobs.dir/all' failed
make[1]: *** [libobs/CMakeFiles/libobs.dir/all] Error 2
Makefile:137: recipe for target 'all' failed
make: *** [all] Error 2</code>
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
"implicit declaration of function ‘memset’"? Well that sounds incredibly unusual, seeing as memset is a standard C function. I'm guessing however that there's something wrong with your FFmpeg package or something. Or at least I'm suspecting. Perhaps it's finding libav instead of FFmpeg?
 

nifker13

New Member
Fixed it I haven't installed ffmpeg with checkinstall because it wasn't able to overwrite some files from some dev packages.
 
Top