Atterratio / obs-gphoto

Allows connect DSLR cameras with obs-studio through gPhoto on Linux
GNU General Public License v2.0
43 stars 16 forks source link

caption/caption.h missing #22

Open KristijanZic opened 3 years ago

KristijanZic commented 3 years ago

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
steven3363 commented 3 years ago

Same on fedora

thorstenweber83 commented 3 years ago

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.
cbsghost commented 3 years ago

Same on Arch and Manjaro

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

korc commented 2 years ago

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