caitp / TwitchSwitcher

OBS-Studio plugin to switch Twitch.tv game name and channel status automatically
Other
35 stars 5 forks source link

CMake: Could not find a package configuration file provided by "libobs" - case sensitivity #22

Open Freso opened 6 years ago

Freso commented 6 years ago

Trying to run cmake to be able to make the project, I get the below output:

CMake Error at CMakeLists.txt:19 (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!
See also "/[…]/TwitchSwitcher/out/CMakeFiles/CMakeOutput.log".

I have libobs_DIR set to /usr/lib/cmake/LibObs which contains:

> ls -l /usr/lib/cmake/LibObs
total 16
-rw-r--r-- 1 root root 1230 Apr 27 09:31 LibObsConfig.cmake
-rw-r--r-- 1 root root  299 Apr 27 09:31 LibObsConfigVersion.cmake
-rw-r--r-- 1 root root  816 Apr 27 09:31 LibObsTarget-relwithdebinfo.cmake
-rw-r--r-- 1 root root 3860 Apr 27 09:31 LibObsTarget.cmake

I tried to find where it decided to look for either libobsConfig.cmake or libobs-config.cmake so I could add LibObsConfig.cmake, but didn't find it anywhere.

caitp commented 6 years ago

https://github.com/caitp/TwitchSwitcher/blob/master/CMakeLists.txt#L19

(https://cmake.org/cmake/help/v3.0/command/find_package.html)