我想在带有 obs studio 的 linux 上使用虚拟相机。我看到这个包https://github.com/CatxFish/obs-v4l2sink
我跑了
sudo apt install qtbase5-dev
sudo apt install libobs-dev
git clone --recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git cd obs-v4l2sink mkdir build && cd build cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
当我运行时cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
出现错误 `-- C 编译器标识是 GNU 9.3.0 -- CXX 编译器标识未知 -- 检查工作 C 编译器:/usr/bin/cc -- 检查工作 C 编译器:/usr /bin/cc -- /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): C 编译器处的 CMake 错误
"/usr/bin/cc"
无法编译简单的测试程序。
它失败并显示以下输出:
Change Dir: /home/arp/obs-v4l2sink/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_a18d3/fast && /usr/bin/make -f CMakeFiles/cmTC_a18d3.dir/build.make CMakeFiles/cmTC_a18d3.dir/build
make[1]: Entering directory '/home/arp/obs-v4l2sink/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_a18d3.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_a18d3.dir/testCCompiler.c.o -c /home/arp/obs-v4l2sink/build/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_a18d3
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a18d3.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_a18d3.dir/testCCompiler.c.o -o cmTC_a18d3
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_a18d3.dir/build.make:87: cmTC_a18d3] Error 1
make[1]: Leaving directory '/home/arp/obs-v4l2sink/build/CMakeFiles/CMakeTmp'
make: *** [Makefile:121: cmTC_a18d3/fast] Error 2
CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project)
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/arp/obs-v4l2sink/build/CMakeFiles/CMakeOutput.log". See also "/home/arp/obs-v4l2sink/build/CMakeFiles/CMakeError.log".
我看过一些文章。但没有任何改变。
任何人都可以帮助我吗?