Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't seem to build on Arch Linux: FindLibObs.cmake not existing? #8

Open
RedrcknRbn opened this issue Jun 4, 2023 · 2 comments
Open

Comments

@RedrcknRbn
Copy link

When attempting to do cmake .., it gives the following result:

[redd@archlinux build]$ cmake ..
-- The C compiler identification is GNU 13.1.1
-- The CXX compiler identification is GNU 13.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:18 (find_package):
  By not providing "FindLibObs.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "LibObs", but
  CMake did not find one.

  Could not find a package configuration file provided by "LibObs" with any
  of the following names:

    LibObsConfig.cmake
    libobs-config.cmake

  Add the installation prefix of "LibObs" to CMAKE_PREFIX_PATH or set
  "LibObs_DIR" to a directory containing one of the above files.  If "LibObs"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

@scaledteam
Copy link
Owner

It seems like header files for OBS is missing. It's called libobs-dev in Debian, maybe there is some analogue for ArchLinux.

@denilsonsa
Copy link

denilsonsa commented Feb 27, 2024

Someone suggested a workaround. The required changes are:

  • Change LibObs to libobs at CMakeLists.txt
  • Make sure /usr/include/obs is part of the include paths.

I'm not sure how the other OBS plugins handle those. I know both obs-move-transition and obs-ptz both use the lower-case libobs, but I couldn't find how the include paths are set (1) (2), mostly because I'm not familiar with CMake.


Checking the file list for both Arch's obs-studio and Debian's libobs-dev, I can see both include cmake/libobs/libobs* (lower-case libobs), and both install the C headers to /usr/include/obs/.

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

No branches or pull requests

3 participants