obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
60.14k stars 7.96k forks source link

Unable to compile against own build of ffmpeg #5808

Closed etna closed 2 years ago

etna commented 2 years ago

Operating System Info

Other

Other OS

Debian 11

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

None, build doesn't even succeed

OBS Studio Crash Log URL

No response

Expected Behavior

Build should work against own ffmpeg

Current Behavior

when PKG_CONFIGPATH=/path/to/own/ffmpeg/installation/lib/pkgconfig is specified, cmake doesn't detect the headers for libavdevice, libavformat, libavutil, libswresample, libswscale and libavfilter. I had to add them to cmake with the -DFFMPEG_INCLUDE_DIR for cmake to successfully complete the build config.

However, when running the build, cmake will complain that it cannot find any of the headers in libavdevice, libavformat, libavutil, libswresample, libswscale and libavfilter and produce errors like this:

[10/425] Building C object libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o
FAILED: libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DLIBOBS_EXPORTS -DUSE_XDG -Dlibobs_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runt
ime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/usr/include/glib-2.0/gio -I/home/etna/Tmpbuild/obs-studio/deps/libcaption -I/hom
e/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/jansson/src -I/home/etna/Tmpbuild/obs-studio/build/deps/jansson/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -
Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC   -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/includ
e -mmmx -msse -msse2 -MD -MT libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o -MF libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o.d -o libobs/CMakeFiles/libobs.dir/graphics/graphics-ffmpeg.c.o -c /home/etna/Tmpbuild/obs-studio/libobs/graphics/graphics
-ffmpeg.c
/home/etna/Tmpbuild/obs-studio/libobs/graphics/graphics-ffmpeg.c:3:10: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
         ^~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[18/425] Building C object libobs/CMakeFiles/libobs.dir/media-io/audio-resampler-ffmpeg.c.o
FAILED: libobs/CMakeFiles/libobs.dir/media-io/audio-resampler-ffmpeg.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DLIBOBS_EXPORTS -DUSE_XDG -Dlibobs_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runt
ime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/usr/include/glib-2.0/gio -I/home/etna/Tmpbuild/obs-studio/deps/libcaption -I/hom
e/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/jansson/src -I/home/etna/Tmpbuild/obs-studio/build/deps/jansson/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -
Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC   -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/includ
e -mmmx -msse -msse2 -MD -MT libobs/CMakeFiles/libobs.dir/media-io/audio-resampler-ffmpeg.c.o -MF libobs/CMakeFiles/libobs.dir/media-io/audio-resampler-ffmpeg.c.o.d -o libobs/CMakeFiles/libobs.dir/media-io/audio-resampler-ffmpeg.c.o -c /home/etna/Tmpbuild/obs-studio/lib
obs/media-io/audio-resampler-ffmpeg.c
/home/etna/Tmpbuild/obs-studio/libobs/media-io/audio-resampler-ffmpeg.c:21:10: fatal error: 'libavutil/avutil.h' file not found
#include <libavutil/avutil.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
[22/425] Building C object deps/libcaption/CMakeFiles/caption.dir/src/cea708.c.o
/home/etna/Tmpbuild/obs-studio/deps/libcaption/src/cea708.c:170:59: warning: parameter 'size' set but not used [-Wunused-but-set-parameter]
int cea708_render(cea708_t* cea708, uint8_t* data, size_t size)
                                                          ^
1 warning generated.
[27/425] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
FAILED: deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DUSE_XDG -I/home/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavdevice -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Tmpbuild/obs-studio/deps/media-playback/. -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o -MF deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o.d -o deps/media-playback/CMakeFiles/media-playback.dir/media-playback/decode.c.o -c /home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/decode.c
In file included from /home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/decode.c:17:
/home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/decode.h:31:10: fatal error: 'libavformat/avformat.h' file not found
#include <libavformat/avformat.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[30/425] Building C object deps/media-playback/CMakeFiles/media-playback.dir/media-playback/media.c.o
FAILED: deps/media-playback/CMakeFiles/media-playback.dir/media-playback/media.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DUSE_XDG -I/home/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavdevice -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Tmpbuild/obs-studio/deps/media-playback/. -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT deps/media-playback/CMakeFiles/media-playback.dir/media-playback/media.c.o -MF deps/media-playback/CMakeFiles/media-playback.dir/media-playback/media.c.o.d -o deps/media-playback/CMakeFiles/media-playback.dir/media-playback/media.c.o -c /home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/media.c
In file included from /home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/media.c:22:
In file included from /home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/media.h:20:
/home/etna/Tmpbuild/obs-studio/deps/media-playback/media-playback/decode.h:31:10: fatal error: 'libavformat/avformat.h' file not found
#include <libavformat/avformat.h>

The next option was to add my FFMPEG include path to C_INCLUDE_PATH and CPLUS_INCLUDE_PATH. This caused the headers to be found, but it ended up with libavutil's time.h conflicting with glibc's time.h and throwing up the following errors:

[19/423] Building C object deps/libcaption/CMakeFiles/caption.dir/src/cea708.c.o                                                                                                                                                                                              
/home/etna/Tmpbuild/obs-studio/deps/libcaption/src/cea708.c:170:59: warning: parameter 'size' set but not used [-Wunused-but-set-parameter]                                                                                                                                   
int cea708_render(cea708_t* cea708, uint8_t* data, size_t size)                                                                                                                                                                                                               
                                                          ^
1 warning generated.
[46/423] Building C object libobs/CMakeFiles/libobs.dir/util/threading-posix.c.o
FAILED: libobs/CMakeFiles/libobs.dir/util/threading-posix.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DLIBOBS_EXPORTS -DUSE_XDG -Dlibobs_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runt
ime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/usr/include/glib-2.0/gio -I/home/etna/Tmpbuild/obs-studio/deps/libcaption -I/hom
e/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/jansson/src -I/home/etna/Tmpbuild/obs-studio/build/deps/jansson/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -
Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC   -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -mmmx -msse -msse2 -MD -MT libobs/CMakeFiles/libobs.dir/util/threading-posix.c.o -MF libobs/CMakeFiles/libobs.dir/util/threading-posix.c.o.d -o libobs/CMakeFiles/libobs.dir/util/threading-posix.c.o -c /home/etna/Tmpbuild/obs-studio/libobs/util/threading-posix.c
/home/etna/Tmpbuild/obs-studio/libobs/util/threading-posix.c:118:3: error: implicit declaration of function 'clock_gettime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                clock_gettime(CLOCK_REALTIME, &ts);  
                ^
/home/etna/Tmpbuild/obs-studio/libobs/util/threading-posix.c:118:17: error: use of undeclared identifier 'CLOCK_REALTIME'
                clock_gettime(CLOCK_REALTIME, &ts);  
                              ^
2 errors generated.
[56/423] Building C object libobs/CMakeFiles/libobs.dir/util/platform-nix.c.o
FAILED: libobs/CMakeFiles/libobs.dir/util/platform-nix.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DLIBOBS_EXPORTS -DUSE_XDG -Dlibobs_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/usr/include/glib-2.0/gio -I/home/etna/Tmpbuild/obs-studio/deps/libcaption -I/home/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/jansson/src -I/home/etna/Tmpbuild/obs-studio/build/deps/jansson/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC   -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -mmmx -msse -msse2 -MD -MT libobs/CMakeFiles/libobs.dir/util/platform-nix.c.o -MF libobs/CMakeFiles/libobs.dir/util/platform-nix.c.o.d -o libobs/CMakeFiles/libobs.dir/util/platform-nix.c.o -c /home/etna/Tmpbuild/obs-studio/libobs/util/platform-nix.c
/home/etna/Tmpbuild/obs-studio/libobs/util/platform-nix.c:173:9: error: implicit declaration of function 'nanosleep' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        while (nanosleep(&req, &remain)) {
               ^
/home/etna/Tmpbuild/obs-studio/libobs/util/platform-nix.c:191:2: error: implicit declaration of function 'clock_gettime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        clock_gettime(CLOCK_MONOTONIC, &ts);
        ^
/home/etna/Tmpbuild/obs-studio/libobs/util/platform-nix.c:191:16: error: use of undeclared identifier 'CLOCK_MONOTONIC'
        clock_gettime(CLOCK_MONOTONIC, &ts);
                      ^
3 errors generated.
[71/423] Building C object libobs/CMakeFiles/libobs.dir/util/platform.c.o
FAILED: libobs/CMakeFiles/libobs.dir/util/platform.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DLIBOBS_EXPORTS -DUSE_XDG -Dlibobs_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runt
ime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/usr/include/glib-2.0/gio -I/home/etna/Tmpbuild/obs-studio/deps/libcaption -I/hom
e/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/jansson/src -I/home/etna/Tmpbuild/obs-studio/build/deps/jansson/include -Wall -Wextra -Wvla -Wno-unused-function -Werror-implicit-function-declaration -
Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC   -pthread -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/includ
e -mmmx -msse -msse2 -MD -MT libobs/CMakeFiles/libobs.dir/util/platform.c.o -MF libobs/CMakeFiles/libobs.dir/util/platform.c.o.d -o libobs/CMakeFiles/libobs.dir/util/platform.c.o -c /home/etna/Tmpbuild/obs-studio/libobs/util/platform.c
/home/etna/Tmpbuild/obs-studio/libobs/util/platform.c:716:15: error: implicit declaration of function 'time' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        time_t now = time(0);
                     ^
/home/etna/Tmpbuild/obs-studio/libobs/util/platform.c:718:13: error: implicit declaration of function 'localtime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        cur_time = localtime(&now);
                   ^
/home/etna/Tmpbuild/obs-studio/libobs/util/platform.c:718:11: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
        cur_time = localtime(&now);
                 ^ ~~~~~~~~~~~~~~~
/home/etna/Tmpbuild/obs-studio/libobs/util/platform.c:747:6: error: implicit declaration of function 'strftime' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                        strftime(convert, sizeof(convert),
                                        ^
1 warning and 3 errors generated.

Sometimes, the build throws up additional errors about implicit declarations:

FAILED: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-nvenc.c.o
/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang -DHAVE_OBSCONFIG_H -DUSE_XDG -Dobs_ffmpeg_EXPORTS -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavfilter -I/home/etna/Runtime/Deps/ffm
peg-Build15Jan2022/include/libavdevice -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswscale -I/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -I/home/etna/Runtime/Deps/ffmp
eg-Build15Jan2022/include/libswresample -I/home/etna/Tmpbuild/obs-studio/build/plugins/obs-ffmpeg -I/home/etna/Tmpbuild/obs-studio/libobs -I/home/etna/Tmpbuild/obs-studio/build/config -I/home/etna/Tmpbuild/obs-studio/deps/media-playback/. -Wall -Wextra -Wvla -Wno-unused
-function -Werror-implicit-function-declaration -Wno-missing-braces -Wno-missing-field-initializers -fPIC -Wno-error -std=gnu99 -fno-strict-aliasing -O3 -DNDEBUG -fPIC -mmmx -msse -msse2 -MD -MT plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-nvenc.c.o -MF plugi
ns/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-nvenc.c.o.d -o plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-nvenc.c.o -c /home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c
In file included from /home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:29:
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-formats.h:6:38: error: incomplete definition of type 'struct AVCodecContext'
        return av_rescale_q_rnd(val, context->time_base, new_base,
                                     ~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:43:2: error: must use 'struct' tag to refer to type 'AVCodecContext'
        AVCodecContext *context;
        ^
        struct
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:89:29: error: incomplete definition of type 'struct AVCodecContext'
        av_opt_set_int(enc->context->priv_data, "spatial-aq", psycho_aq, 0);
                       ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:90:29: error: incomplete definition of type 'struct AVCodecContext'
        av_opt_set_int(enc->context->priv_data, "temporal-aq", psycho_aq, 0);
                       ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:100:33: error: incomplete definition of type 'struct AVCodecContext'
        if (av_opt_get_int(enc->context->priv_data, "gpu", 0, &gpu) < 0) {
                           ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:104:8: error: implicit declaration of function 'avcodec_open2' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        ret = avcodec_open2(enc->context, enc->nvenc, NULL);
              ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:104:8: note: did you mean 'avio_open2'?
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat/avio.h:684:5: note: 'avio_open2' declared here
int avio_open2(AVIOContext **s, const char *url, int flags,
    ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:151:36: error: incomplete definition of type 'struct AVCodecContext'
        enc->vframe->format = enc->context->pix_fmt; 
                              ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:152:35: error: incomplete definition of type 'struct AVCodecContext'
        enc->vframe->width = enc->context->width;
                             ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:153:36: error: incomplete definition of type 'struct AVCodecContext'
        enc->vframe->height = enc->context->height;  
                              ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:154:40: error: incomplete definition of type 'struct AVCodecContext'
        enc->vframe->colorspace = enc->context->colorspace;
                                  ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:155:41: error: incomplete definition of type 'struct AVCodecContext'
        enc->vframe->color_range = enc->context->color_range;
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:93:62: warning: unused parameter 'psycho_aq' [-Wunused-parameter]
static bool nvenc_init_codec(struct nvenc_encoder *enc, bool psycho_aq)
                                                             ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:208:29: error: incomplete definition of type 'struct AVCodecContext'
        av_opt_set_int(enc->context->priv_data, "cbr", false, 0);
                       ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:209:25: error: incomplete definition of type 'struct AVCodecContext'
        av_opt_set(enc->context->priv_data, "profile", profile, 0);
                   ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:210:25: error: incomplete definition of type 'struct AVCodecContext'
        av_opt_set(enc->context->priv_data, "preset", preset, 0);
                   ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:214:15: error: incomplete definition of type 'struct AVCodecContext'
                enc->context->global_quality = cqp;  
                ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:223:26: error: incomplete definition of type 'struct AVCodecContext'
                av_opt_set(enc->context->priv_data, "preset",
                           ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:227:30: error: incomplete definition of type 'struct AVCodecContext'
                av_opt_set_int(enc->context->priv_data, "cbr", true, 0);
                               ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:229:15: error: incomplete definition of type 'struct AVCodecContext'
                enc->context->rc_max_rate = rate;
                ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
/home/etna/Tmpbuild/obs-studio/plugins/obs-ffmpeg/obs-ffmpeg-nvenc.c:230:15: error: incomplete definition of type 'struct AVCodecContext'
                enc->context->rc_min_rate = rate;
                ~~~~~~~~~~~~^
/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec/codec.h:195:8: note: forward declaration of 'struct AVCodecContext'
struct AVCodecContext;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.

Steps to Reproduce

  1. Running cmake without C_INCLUDE_PATH and CPLUS_INCLUDE_PATH:
    
    LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LIBRARY_PATH LD_LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:/home/etna/Runtime/Deps/icu4c_69_1/lib:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/bin:/home/etna/Runtime/Deps/node-v17.3.1/bin:/home/etna/Runtime/Deps/rustc-1.58.0/bin:/home/etna/Runtime/Deps/rustc-1.58.0/libexec:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/bin:/home/etna/Runtime/Deps/libunistring-0.9.10/bin:/home/etna/Runtime/Deps/libtasn1-4.17.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/libexec:/home/etna/Runtime/Deps/gmp-6.2.1/bin:/home/etna/Runtime/Deps/nettle-3.7.3/bin:/home/etna/Runtime/Deps/gnutls-3.7.2/bin:/home/etna/Runtime/Deps/jpeg9d/bin:/home/etna/Runtime/Deps/libpng-1.6.37/bin:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/bin:/home/etna/Runtime/Deps/avcodecs/bin:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/bin:/home/etna/Runtime/Deps/openssl-300/bin:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/bin:/home/etna/Runtime/Deps/sqlite-build24Jul2021/bin:/home/etna/Runtime/Deps/libbz2-build24Jul2021/bin:/home/etna/Runtime/Deps/python-3.10.0/bin:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/bin:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/bin:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/bin:/home/etna/Runtime/Deps/NasmYasm/bin:/home/etna/Runtime/Deps/gperf-3.1/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/libexec:/home/etna/Runtime/BuildSystem/bin:/home/etna/Runtime/BuildSystem/libexec:$PATH PKG_CONFIG_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/node-v17.3.1/lib/pkgconfig:/home/etna/Runtime/Deps/rustc-1.58.0/lib/pkgconfig:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib/pkgconfig:/home/etna/Runtime/Deps/libunistring-0.9.10/lib/pkgconfig:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib/pkgconfig:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/gmp-6.2.1/lib/pkgconfig:/home/etna/Runtime/Deps/nettle-3.7.3/lib64/pkgconfig:/home/etna/Runtime/Deps/gnutls-3.7.2/lib/pkgconfig:/home/etna/Runtime/Deps/jpeg9d/lib/pkgconfig:/home/etna/Runtime/Deps/libpng-1.6.37/lib/pkgconfig:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib64/pkgconfig:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/openssl-300/lib64/pkgconfig:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib64/pkgconfig:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib/pkgconfig:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/NasmYasm/lib/pkgconfig:/home/etna/Runtime/Deps/gperf-3.1/lib/pkgconfig:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib/pkgconfig:/home/etna/Runtime/BuildSystem/lib/pkgconfig:$PKG_CONFIG_PATH CC=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang CXX=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ CFLAGS='-fPIC -Wno-error' CXXFLAGS='-fPIC -Wno-error' cmake -DCMAKE_INSTALL_PREFIX=/home/etna/Runtime/Applications/OBS/Build15Jan2022 -DCMAKE_BUILD_TYPE=Release -GNinja -DUNIX_STRUCTURE=1 -DBUILD_BROWSER=OFF -DFFMPEG_avcodec_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -DFFMPEG_avdevice_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavdevice -DFFMPEG_avformat_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -DFFMPEG_avutil_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -DFFMPEG_swresample_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -DFFMPEG_swscale_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswscale -DENABLE_PIPEWIRE=ON -DX264_INCLUDE_DIR=/home/etna/Runtime/Deps/avcodecs/include -DFFMPEG_avfilter_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavfilter ..

LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LIBRARY_PATH LD_LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:/home/etna/Runtime/Deps/icu4c_69_1/lib:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/bin:/home/etna/Runtime/Deps/node-v17.3.1/bin:/home/etna/Runtime/Deps/rustc-1.58.0/bin:/home/etna/Runtime/Deps/rustc-1.58.0/libexec:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/bin:/home/etna/Runtime/Deps/libunistring-0.9.10/bin:/home/etna/Runtime/Deps/libtasn1-4.17.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/libexec:/home/etna/Runtime/Deps/gmp-6.2.1/bin:/home/etna/Runtime/Deps/nettle-3.7.3/bin:/home/etna/Runtime/Deps/gnutls-3.7.2/bin:/home/etna/Runtime/Deps/jpeg9d/bin:/home/etna/Runtime/Deps/libpng-1.6.37/bin:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/bin:/home/etna/Runtime/Deps/avcodecs/bin:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/bin:/home/etna/Runtime/Deps/openssl-300/bin:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/bin:/home/etna/Runtime/Deps/sqlite-build24Jul2021/bin:/home/etna/Runtime/Deps/libbz2-build24Jul2021/bin:/home/etna/Runtime/Deps/python-3.10.0/bin:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/bin:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/bin:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/bin:/home/etna/Runtime/Deps/NasmYasm/bin:/home/etna/Runtime/Deps/gperf-3.1/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/libexec:/home/etna/Runtime/BuildSystem/bin:/home/etna/Runtime/BuildSystem/libexec:$PATH PKG_CONFIG_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/node-v17.3.1/lib/pkgconfig:/home/etna/Runtime/Deps/rustc-1.58.0/lib/pkgconfig:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib/pkgconfig:/home/etna/Runtime/Deps/libunistring-0.9.10/lib/pkgconfig:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib/pkgconfig:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/gmp-6.2.1/lib/pkgconfig:/home/etna/Runtime/Deps/nettle-3.7.3/lib64/pkgconfig:/home/etna/Runtime/Deps/gnutls-3.7.2/lib/pkgconfig:/home/etna/Runtime/Deps/jpeg9d/lib/pkgconfig:/home/etna/Runtime/Deps/libpng-1.6.37/lib/pkgconfig:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib64/pkgconfig:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/openssl-300/lib64/pkgconfig:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib64/pkgconfig:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib/pkgconfig:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/NasmYasm/lib/pkgconfig:/home/etna/Runtime/Deps/gperf-3.1/lib/pkgconfig:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib/pkgconfig:/home/etna/Runtime/BuildSystem/lib/pkgconfig:$PKG_CONFIG_PATH CC=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang CXX=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ CFLAGS='-fPIC -Wno-error' CXXFLAGS='-fPIC -Wno-error' cmake --build . --parallel 64


2. Running cmake **with** C_INCLUDE_PATH and CPLUS_INCLUDE_PATH:

LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LIBRARY_PATH C_INCLUDE_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/include:/home/etna/Runtime/Deps/node-v17.3.1/include:/home/etna/Runtime/Deps/rustc-1.58.0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/NasmYasm/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$C_INCLUDE_PATH CPLUS_INCLUDE_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/include:/home/etna/Runtime/Deps/node-v17.3.1/include:/home/etna/Runtime/Deps/rustc-1.58.0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/NasmYasm/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$CPLUS_INCLUDE_PATH LD_LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:/home/etna/Runtime/Deps/icu4c_69_1/lib:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/bin:/home/etna/Runtime/Deps/node-v17.3.1/bin:/home/etna/Runtime/Deps/rustc-1.58.0/bin:/home/etna/Runtime/Deps/rustc-1.58.0/libexec:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/bin:/home/etna/Runtime/Deps/libunistring-0.9.10/bin:/home/etna/Runtime/Deps/libtasn1-4.17.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/libexec:/home/etna/Runtime/Deps/gmp-6.2.1/bin:/home/etna/Runtime/Deps/nettle-3.7.3/bin:/home/etna/Runtime/Deps/gnutls-3.7.2/bin:/home/etna/Runtime/Deps/jpeg9d/bin:/home/etna/Runtime/Deps/libpng-1.6.37/bin:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/bin:/home/etna/Runtime/Deps/avcodecs/bin:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/bin:/home/etna/Runtime/Deps/openssl-300/bin:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/bin:/home/etna/Runtime/Deps/sqlite-build24Jul2021/bin:/home/etna/Runtime/Deps/libbz2-build24Jul2021/bin:/home/etna/Runtime/Deps/python-3.10.0/bin:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/bin:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/bin:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/bin:/home/etna/Runtime/Deps/NasmYasm/bin:/home/etna/Runtime/Deps/gperf-3.1/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/libexec:/home/etna/Runtime/BuildSystem/bin:/home/etna/Runtime/BuildSystem/libexec:$PATH PKG_CONFIG_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/node-v17.3.1/lib/pkgconfig:/home/etna/Runtime/Deps/rustc-1.58.0/lib/pkgconfig:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib/pkgconfig:/home/etna/Runtime/Deps/libunistring-0.9.10/lib/pkgconfig:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib/pkgconfig:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/gmp-6.2.1/lib/pkgconfig:/home/etna/Runtime/Deps/nettle-3.7.3/lib64/pkgconfig:/home/etna/Runtime/Deps/gnutls-3.7.2/lib/pkgconfig:/home/etna/Runtime/Deps/jpeg9d/lib/pkgconfig:/home/etna/Runtime/Deps/libpng-1.6.37/lib/pkgconfig:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib64/pkgconfig:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/openssl-300/lib64/pkgconfig:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib64/pkgconfig:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib/pkgconfig:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/NasmYasm/lib/pkgconfig:/home/etna/Runtime/Deps/gperf-3.1/lib/pkgconfig:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib/pkgconfig:/home/etna/Runtime/BuildSystem/lib/pkgconfig:$PKG_CONFIG_PATH CC=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang CXX=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ CFLAGS='-fPIC -Wno-error' CXXFLAGS='-fPIC -Wno-error' cmake -DCMAKE_INSTALL_PREFIX=/home/etna/Runtime/Applications/OBS/Build15Jan2022 -DCMAKE_BUILD_TYPE=Release -GNinja -DUNIX_STRUCTURE=1 -DBUILD_BROWSER=OFF -DFFMPEG_avcodec_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavcodec -DFFMPEG_avdevice_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavdevice -DFFMPEG_avformat_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavformat -DFFMPEG_avutil_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavutil -DFFMPEG_swresample_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswresample -DFFMPEG_swscale_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libswscale -DENABLE_PIPEWIRE=ON -DX264_INCLUDE_DIR=/home/etna/Runtime/Deps/avcodecs/include -DFFMPEG_avfilter_INCLUDE_DIR=/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include/libavfilter ..

LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:$LIBRARY_PATH C_INCLUDE_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/include:/home/etna/Runtime/Deps/node-v17.3.1/include:/home/etna/Runtime/Deps/rustc-1.58.0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/NasmYasm/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$C_INCLUDE_PATH CPLUS_INCLUDE_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/include:/home/etna/Runtime/Deps/node-v17.3.1/include:/home/etna/Runtime/Deps/rustc-1.58.0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/include:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/include:/home/etna/Runtime/Deps/libunistring-0.9.10/include:/home/etna/Runtime/Deps/libtasn1-4.17.0/include:/home/etna/Runtime/Deps/p11-kit-0.24.0/include:/home/etna/Runtime/Deps/gmp-6.2.1/include:/home/etna/Runtime/Deps/nettle-3.7.3/include:/home/etna/Runtime/Deps/gnutls-3.7.2/include:/home/etna/Runtime/Deps/jpeg9d/include:/home/etna/Runtime/Deps/libpng-1.6.37/include:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/include:/home/etna/Runtime/Deps/avcodecs/include:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/include:/home/etna/Runtime/Deps/openssl-300/include:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/include:/home/etna/Runtime/Deps/sqlite-build24Jul2021/include:/home/etna/Runtime/Deps/libbz2-build24Jul2021/include:/home/etna/Runtime/Deps/python-3.10.0/include:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/include:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/include:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/include:/home/etna/Runtime/Deps/NasmYasm/include:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/include:/home/etna/Runtime/BuildSystem/include:$CPLUS_INCLUDE_PATH LD_LIBRARY_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib:/home/etna/Runtime/Deps/node-v17.3.1/lib:/home/etna/Runtime/Deps/rustc-1.58.0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/boost_1_78_0/lib:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib:/home/etna/Runtime/Deps/libunistring-0.9.10/lib:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/gmp-6.2.1/lib:/home/etna/Runtime/Deps/nettle-3.7.3/lib64:/home/etna/Runtime/Deps/gnutls-3.7.2/lib:/home/etna/Runtime/Deps/jpeg9d/lib:/home/etna/Runtime/Deps/libpng-1.6.37/lib:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib:/home/etna/Runtime/Deps/avcodecs/lib:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/avcodecs/lib64:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib:/home/etna/Runtime/Deps/openssl-300/lib64:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib:/home/etna/Runtime/Deps/python-3.10.0/lib:/home/etna/Runtime/Deps/python-3.10.0/lib64:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021:/home/etna/Runtime/Deps/NasmYasm/lib:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib:/home/etna/Runtime/BuildSystem/lib:/home/etna/Runtime/Deps/icu4c_69_1/lib:$LD_LIBRARY_PATH PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/bin:/home/etna/Runtime/Deps/node-v17.3.1/bin:/home/etna/Runtime/Deps/rustc-1.58.0/bin:/home/etna/Runtime/Deps/rustc-1.58.0/libexec:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/bin:/home/etna/Runtime/Deps/libunistring-0.9.10/bin:/home/etna/Runtime/Deps/libtasn1-4.17.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/bin:/home/etna/Runtime/Deps/p11-kit-0.24.0/libexec:/home/etna/Runtime/Deps/gmp-6.2.1/bin:/home/etna/Runtime/Deps/nettle-3.7.3/bin:/home/etna/Runtime/Deps/gnutls-3.7.2/bin:/home/etna/Runtime/Deps/jpeg9d/bin:/home/etna/Runtime/Deps/libpng-1.6.37/bin:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/bin:/home/etna/Runtime/Deps/avcodecs/bin:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/bin:/home/etna/Runtime/Deps/openssl-300/bin:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/bin:/home/etna/Runtime/Deps/sqlite-build24Jul2021/bin:/home/etna/Runtime/Deps/libbz2-build24Jul2021/bin:/home/etna/Runtime/Deps/python-3.10.0/bin:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/bin:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/bin:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/bin:/home/etna/Runtime/Deps/NasmYasm/bin:/home/etna/Runtime/Deps/gperf-3.1/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/libexec:/home/etna/Runtime/BuildSystem/bin:/home/etna/Runtime/BuildSystem/libexec:$PATH PKG_CONFIG_PATH=/home/etna/Runtime/Applications/OBS/Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/node-v17.3.1/lib/pkgconfig:/home/etna/Runtime/Deps/rustc-1.58.0/lib/pkgconfig:/home/etna/Runtime/Deps/icu4c_70-libxml-libxslt-boost/lib/pkgconfig:/home/etna/Runtime/Deps/libunistring-0.9.10/lib/pkgconfig:/home/etna/Runtime/Deps/libtasn1-4.17.0/lib/pkgconfig:/home/etna/Runtime/Deps/p11-kit-0.24.0/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/gmp-6.2.1/lib/pkgconfig:/home/etna/Runtime/Deps/nettle-3.7.3/lib64/pkgconfig:/home/etna/Runtime/Deps/gnutls-3.7.2/lib/pkgconfig:/home/etna/Runtime/Deps/jpeg9d/lib/pkgconfig:/home/etna/Runtime/Deps/libpng-1.6.37/lib/pkgconfig:/home/etna/Runtime/Deps/SDL2-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/avcodecs/lib64/pkgconfig:/home/etna/Runtime/Deps/ffmpeg-Build15Jan2022/lib/pkgconfig:/home/etna/Runtime/Deps/openssl-300/lib64/pkgconfig:/home/etna/Runtime/Deps/gpg-runtime-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/sqlite-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/libbz2-build24Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib/pkgconfig:/home/etna/Runtime/Deps/python-3.10.0/lib64/pkgconfig:/home/etna/Runtime/Deps/libssh2-openssl3backend-Build11Sept2021/lib/pkgconfig:/home/etna/Runtime/Deps/libnotify-Build26Jul2021/lib/x86_64-linux-gnu/pkgconfig:/home/etna/Runtime/Deps/FlexBison-Build25Jul2021/lib/pkgconfig:/home/etna/Runtime/Deps/NasmYasm/lib/pkgconfig:/home/etna/Runtime/Deps/gperf-3.1/lib/pkgconfig:/home/etna/Runtime/BuildSystem/LLVM13WithWASM/lib/pkgconfig:/home/etna/Runtime/BuildSystem/lib/pkgconfig:$PKG_CONFIG_PATH CC=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang CXX=/home/etna/Runtime/BuildSystem/LLVM13WithWASM/bin/clang++ CFLAGS='-fPIC -Wno-error' CXXFLAGS='-fPIC -Wno-error' cmake --build . --parallel 64


3. Watch all the build errors show up
...

### Anything else we should know?

_No response_
WizardCM commented 2 years ago

Try setting PKG_CONFIG_EXECUTABLE instead of PKG_CONFIG_PATH. It defaults to /usr/bin/pkg-config. When complete, it should set FFMPEG_<component>_INCLUDE_DIR and FFMPEG_<component>_LIBRARY

etna commented 2 years ago

@WizardCM Thanks for answering!

So I should set PKG_CONFIG_EXECUTABLE=/usr/bin/pkg-config, right? When you say not to set PKG_CONFIG_PATH, you mean I should take it out completely?

And what about C_INCLUDE_PATH and CPLUS_INCLUDE_PATH? Should I keep them or not?

Also, I did a quick check by adding -LA to the end of my cmake command and it shows that PKG_CONFIG_EXECUTABLE has already been set even without declaring it: PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config

WizardCM commented 2 years ago

Well, are you looking to use your system-wide pkg-config, or the one for your custom ffmpeg?

etna commented 2 years ago

Not sure if I am understanding you, but my custom ffmpeg doesn't come with its own pkg-config binary.

It only has its own pkgconfig .pc files in ffmpeg-Build15Jan2022/lib/pkgconfig

So naturally I will have to be using the system-wide pkg-config binary and making it look at ffmpeg-Build15Jan2022/lib/pkgconfig for the .pc files there

pkviet commented 2 years ago

FFmpeg won't work with obs 27.1.3 You'll need obs master branch or to cherry pick a series of commits fixing your errors ... Edit: sorry, i read your issue too quickly. You seem indeed to have path issues.

etna commented 2 years ago

Is there anywhere to work around those, or is this one of those "sorry you're completely out of luck if all the stuff are not in the system-default directories"?

kkartaltepe commented 2 years ago

I'm closing this out as we dont provide build support via github. The issue lies with your exotic setup requiring equally exotic cmake configuration. I recommend you reach out to cmake's support channels for help configuring things correctly.