obs-gphoto icon indicating copy to clipboard operation
obs-gphoto copied to clipboard

caption/caption.h missing

Open KristijanZic opened this issue 4 years ago • 4 comments

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

KristijanZic avatar Feb 15 '21 21:02 KristijanZic

Same on fedora

steven3363 avatar Feb 20 '21 06:02 steven3363

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.

thorstenweber83 avatar Mar 02 '21 22:03 thorstenweber83

Same on Arch and Manjaro

Install libcaption to fix the issue. Either from here, or use AUR on Arch and Manjaro.

cbsghost avatar Mar 03 '21 05:03 cbsghost

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

korc avatar Mar 02 '22 05:03 korc