ERRO Linux Mint «Проверить работоспособность компилятора C: /usr/bin/cc»

Я хочу использовать виртуальную камеру на 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 - неработающая ошибка CMake в /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (сообщение): компилятор C

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

я видел несколько статей. но ничего не меняется.

кто-нибудь может мне помочь?

0 ответов

Другие вопросы по тегам