Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

caption/caption.h missing #22

Open
KristijanZic opened this issue Feb 15, 2021 · 4 comments
Open

caption/caption.h missing #22

KristijanZic opened this issue Feb 15, 2021 · 4 comments

Comments

@KristijanZic
Copy link

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
Copy link

Same on fedora

@thorstenweber83
Copy link

thorstenweber83 commented Mar 2, 2021

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
Copy link

cbsghost commented Mar 3, 2021

Same on Arch and Manjaro

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

@korc
Copy link

korc commented Mar 2, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants