obs-gphoto
obs-gphoto copied to clipboard
caption/caption.h missing
I've tried building it on Ubuntu 20.04 and it errored out with this:
$ make
Scanning dependencies of target obs-gphoto
[ 16%] Building C object CMakeFiles/obs-gphoto.dir/src/obs-gphoto.c.o
[ 33%] Building C object CMakeFiles/obs-gphoto.dir/src/gphoto-utils.c.o
In file included from /home/aresminos/Software/source/obs-gphoto/src/gphoto-utils.c:2:
/usr/include/obs/obs-internal.h:39:10: fatal error: caption/caption.h: No such file or directory
39 | #include <caption/caption.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/obs-gphoto.dir/build.make:76: CMakeFiles/obs-gphoto.dir/src/gphoto-utils.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/obs-gphoto.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
Same on fedora
And on NixOS:
In file included from /build/source/src/gphoto-udev.c:1:
/nix/store/xhvmfaq5b4jk2640l1xrzgjs7z2vri95-obs-studio-26.1.2/include/obs/obs-internal.h:39:10: fatal error: caption/caption.h: No such file or directory
39 | #include <caption/caption.h>
| ^~~~~~~~~~~~~~~~~~~
compilation terminated.
Same on Arch and Manjaro
Install libcaption
to fix the issue. Either from here, or use AUR on Arch and Manjaro.
Workaround assuming you have obs-studio source copied with git clone --recursive https://github.com/obsproject/obs-studio.git
) in the same directory as obs-gphoto
:
cd src/
ln -s ../../obs-studio/deps/libcaption/caption