CatxFish / obs-v4l2sink

obs studio output plugin for Video4Linux2 device
GNU General Public License v2.0
937 stars 98 forks source link

Error Building #85

Open PixelDud opened 4 years ago

PixelDud commented 4 years ago

Running: cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..

I get:

-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!
See also "/home/user/obs-v4l2sink/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/obs-v4l2sink/build/CMakeFiles/CMakeError.log".

I'm running Elementary OS 5.1.7, any clue how to fix this?

VanVan commented 4 years ago

To solve your problem, you need to do apt install libobs-dev

PixelDud commented 4 years ago

I did that and it didn't work.

PixelDud commented 4 years ago

Thanks for the answer though.

VanVan commented 4 years ago

Maybe you can check here https://stackoverflow.com/questions/32801638/cmake-error-at-cmakelists-txt30-project-no-cmake-c-compiler-could-be-found

Sprinterfreak commented 3 years ago

apt install build-essential libobs-dev solved the problem for me on ubuntu 20.04