obs-v4l2sink icon indicating copy to clipboard operation
obs-v4l2sink copied to clipboard

Error Building

Open PixelDud opened this issue 4 years ago • 5 comments

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?

PixelDud avatar Oct 26 '20 17:10 PixelDud

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

VanVan avatar Oct 28 '20 22:10 VanVan

I did that and it didn't work.

PixelDud avatar Oct 29 '20 04:10 PixelDud

Thanks for the answer though.

PixelDud avatar Oct 29 '20 04:10 PixelDud

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

VanVan avatar Oct 29 '20 11:10 VanVan

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

Sprinterfreak avatar Feb 02 '21 21:02 Sprinterfreak