elsampsa / valkka-core

Valkka - Create video surveillance, management and analysis programs with PyQt
GNU Lesser General Public License v3.0
181 stars 35 forks source link

cmake error #6

Closed FarK closed 5 years ago

FarK commented 5 years ago

I have this error doing cmake ..:

> cd build
> cmake ..
*** PYTHON INTERFACE ***
PYTHON INSTALL DIR           : lib/python3/dist-packages
PYTHON NUMPY HEADER FILES IN : /usr/lib/python3/dist-packages/numpy/core/include

GENERATING valkka_core.i

LIVE555 ROOT: /home/carlos/workspace/valka_test/valkka-core/ext/live
FFMPEG  ROOT: /home/carlos/workspace/valka_test/valkka-core/ext/ffmpeg
-- Configuring done
CMake Error at CMakeLists.txt:247 (add_library):
  Cannot find source file:

    /home/carlos/workspace/valka_test/valkka-core/python/valkka/core/valkka_core_wrap.cpp

  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: valkka_core
CMake Error: Cannot determine link language for target "valkka_core".
-- Generating done
-- Build files have been written to: /home/carlos/workspace/valka_test/valkka-core/build_dir

The file valkka_core_wrap.cpp does not exists

scipioni commented 5 years ago

try to run ./prepare_build.bash before

FarK commented 5 years ago

I found the solution: sudo apt install swig It is in the dependencies section in the readme :man_facepalming: