scaledteam / obs-image-reaction

OBS Plugin with image that reacts to sound source.
GNU General Public License v2.0
78 stars 11 forks source link

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

Open RedrcknRbn opened 1 year ago

RedrcknRbn commented 1 year ago

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 commented 1 year ago

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

denilsonsa commented 7 months ago

Someone suggested a workaround. The required changes are:

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/.