title: How do I fix the "No known features for CXX compiler" while compiling with CMake (Linux Mint)
body: <p>I am trying to install this plugin: <a href="https://github.com/CatxFish/obs-v4l2sink" rel="noreferrer">https://github.com/CatxFish/obs-v4l2sink</a></p>
  
  <p>I followed all the steps (Installed QT, got obs-studio source code and then tried to build the plugin):</p>
  
  <pre><code>sudo apt install qtbase5-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 &amp;&amp; cd build
  cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
  </code></pre>
  
  <p>But then... </p>
  
  <pre><code> -- Configuring done
  CMake Error in CMakeLists.txt:
    No known features for CXX compiler
  
    ""
  
    version .
  
  
  -- Build files have been written to: /home/********/obs-v4l2sink/build
  </code></pre>
  
  <p>It is my first time compiling using <code>cmake</code> (instead of <code>make</code>), and I don't know much about compiling. Was there any step I missed between installing <code>cmake</code> and trying to compile the plugin? </p>
  
  <p>From what I found online, here's what I have done: </p>
  
  <ul>
  <li><code>build-essential</code> is already installed;</li>
  <li><code>c++</code>, <code>cc</code> and all are installed as well;</li>
  <li>tried to add <code>-DCMAKE_CXX_COMPILER=/usr/bin/cc</code> to the <code>cmake</code> command line (did the same with c++);</li>
  </ul>
  
  <p>And of course, I have done the <code>update &amp;&amp; upgrade</code> </p>
  
  <p>Here's what's in the CMakeError.log file : </p>
  
  <pre><code>Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
  Compiler: /usr/bin/cc 
  Build flags: 
  Id flags:  
  
  The output was:
  1
  /usr/bin/ld : ne peut pas trouver Scrt1.o : Aucun fichier ou dossier de ce type
  /usr/bin/ld : ne peut pas trouver crti.o : Aucun fichier ou dossier de ce type
  collect2: error: ld returned 1 exit status
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Determining if the C compiler works failed with the following output:
  Change Dir: /home/***********/obs-v4l2sink/build/CMakeFiles/CMakeTmp
  
  Run Build Command:"/usr/bin/make" "cmTC_f18b2/fast"
  /usr/bin/make -f CMakeFiles/cmTC_f18b2.dir/build.make CMakeFiles/cmTC_f18b2.dir/build
  make[1] : on entre dans le répertoire « /home/***********/obs-v4l2sink/build/CMakeFiles/CMakeTmp »
  Building C object CMakeFiles/cmTC_f18b2.dir/testCCompiler.c.o
  /usr/bin/cc    -o CMakeFiles/cmTC_f18b2.dir/testCCompiler.c.o   -c /home/***********/obs-v4l2sink/build/CMakeFiles/CMakeTmp/testCCompiler.c
  Linking C executable cmTC_f18b2
  /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f18b2.dir/link.txt --verbose=1
  /usr/bin/cc      CMakeFiles/cmTC_f18b2.dir/testCCompiler.c.o  -o cmTC_f18b2 
  /usr/bin/ld : ne peut pas trouver Scrt1.o : Aucun fichier ou dossier de ce type
  /usr/bin/ld : ne peut pas trouver crti.o : Aucun fichier ou dossier de ce type
  collect2: error: ld returned 1 exit status
  CMakeFiles/cmTC_f18b2.dir/build.make:97: recipe for target 'cmTC_f18b2' failed
  make[1]: *** [cmTC_f18b2] Error 1
  make[1] : on quitte le répertoire « /home/***********/obs-v4l2sink/build/CMakeFiles/CMakeTmp »
  Makefile:126: recipe for target 'cmTC_f18b2/fast' failed
  make: *** [cmTC_f18b2/fast] Error 2
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags:  
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: -c 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --c++ 
  
  The output was:
  No such file or directory
  
  
  Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
  Compiler: CMAKE_CXX_COMPILER-NOTFOUND 
  Build flags: 
  Id flags: --ec++ 
  
  The output was:
  No such file or directory
  
  
  Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
  c++: fatal error: no input files
  compilation terminated.
  Checking whether the CXX compiler is IAR using "" did not match "IAR .+ Compiler":
  c++: fatal error: no input files
  compilation terminated.
  </code></pre>