hbriese/fancon

Build fails: cannot find source file

ChristopherRabotin opened this issue · 1 comments

Describe the bug

Cannot build fancon despite all dependencies

Steps to Reproduce

  1. Install all dependencies
  2. mkdir build; cd build && cmake -DCMAKE_BUILD_TYPE=Release -DNVIDIA_SUPPORT=ON .. && make -j && sudo make install
  3. Build fails
$ mkdir build; cd build && cmake -DCMAKE_BUILD_TYPE=Release -DNVIDIA_SUPPORT=ON .. && make -j && sudo make install
-- The CXX compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   log
--   thread
--   system
--   filesystem
--   date_time
--   log_setup
--   chrono
-- Found Sensors: /usr/include/sensors  
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so
-- Looking for XOpenDisplay in /usr/lib64/libX11.so;/usr/lib64/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib64/libX11.so
-- Found NVCtrl: /usr/include/NVCtrl  
NVIDIA support enabled
-- Found Protobuf: /usr/lib64/libprotobuf.so;-lpthread (found version "3.5.0") 
-- Found GRPC: /usr/lib64/libgrpc.so  
-- Configuring done
CMake Error at CMakeLists.txt:54 (add_executable):
  Cannot find source file:

    /home/chris/Software/fancon/src/proto/DevicesSpec.grpc.pb.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: fancon
CMake Error: Cannot determine link language for target "fancon".
-- Generating done
-- Build files have been written to: /home/chris/Software/fancon/build

Expected behavior

Environment

  • Tested on versions: 1ca6aaa and d5ec8c7 (v0.20.0).
  • OS: Opensuse Leap 15.1
  • Kernel: 4.12.14-lp151.28.40-default

Additional context

Please pull the latest commits and retry. Thanks for reporting this