Make ignoring pkgconfig from external folder macos ventura
Closed this issue · 1 comments
TylerKann commented
I am trying to install hacktv. I have ffmpeg installed via brew
ls /opt/homebrew/Cellar/ffmpeg/6.0_1/include
libavcodec libavfilter libavutil libswresample
libavdevice libavformat libpostproc libswscale
ls /opt/homebrew/Cellar/ffmpeg/6.0_1/lib/pkgconfig
libavcodec.pc libavformat.pc libswresample.pc
libavdevice.pc libavutil.pc libswscale.pc
libavfilter.pc libpostproc.pc
however when I do
cd hacktv/src
make
I get the error
av_ffmpeg.c:39:10: fatal error: 'libavcodec/avcodec.h' file not found
#include <libavcodec/avcodec.h>
as well as being told
Perhaps you should add the directory containing "libavutil.pc"
to the PKG_CONFIG_PATH environment variable
I have tried updating the PKG_CONFIG_PATH and tried running make -I
with one of the paths listed above. Is there a resolution to this issue? Many thanks in advance!
TylerKann commented
use
PKG_CONFIG_PATH="path/to/ffmpeg_config:path/to/hackrf_config" make
and that should work
https://stackoverflow.com/questions/48484378/c-code-makefile-how-to-include-path