clementfarabet / lua---camera

A very simple camera interface (frame grabber) for Torch7.
34 stars 18 forks source link

Installation problem - cv.h: No such file or directory #21

Closed karandwivedi42 closed 8 years ago

karandwivedi42 commented 8 years ago

I tried to install camera with luarocks install camera on ubuntu 15.10 but got the following error

karan@karan-ThinkPad-L412:~$ luarocks install camera
Installing https://raw.githubusercontent.com/torch/rocks/master/camera-1.1-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/camera-1.1-0.rockspec... switching to 'build' mode
Cloning into 'lua---camera'...
remote: Counting objects: 29, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 29 (delta 3), reused 14 (delta 0), pack-reused 0
Receiving objects: 100% (29/29), 18.57 KiB | 0 bytes/s, done.
Resolving deltas: 100% (3/3), done.
Checking connectivity... done.
cmake -E make_directory build;
cd build;
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/karan/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/karan/torch/install/lib/luarocks/rocks/camera/1.1-0"; 
make

-- The C compiler identification is GNU 5.2.1
-- The CXX compiler identification is GNU 5.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- Found Torch7 in /home/karan/torch/install
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp  
-- OpenMP Found with compiler flag : -fopenmp
CMake Warning at video4linux/CMakeLists.txt:13 (FIND_PACKAGE):
  By not providing "FindARM.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "ARM", but
  CMake did not find one.

  Could not find a package configuration file provided by "ARM" with any of
  the following names:

    ARMConfig.cmake
    arm-config.cmake

  Add the installation prefix of "ARM" to CMAKE_PREFIX_PATH or set "ARM_DIR"
  to a directory containing one of the above files.  If "ARM" provides a
  separate development package or SDK, be sure it has been installed.

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/luarocks_camera-1.1-0-1500/lua---camera/build
Scanning dependencies of target camopencv
[ 25%] Building C object opencv/CMakeFiles/camopencv.dir/opencv.c.o
/tmp/luarocks_camera-1.1-0-1500/lua---camera/opencv/opencv.c:29:16: fatal error: cv.h: No such file or directory
compilation terminated.
opencv/CMakeFiles/camopencv.dir/build.make:54: recipe for target 'opencv/CMakeFiles/camopencv.dir/opencv.c.o' failed
make[2]: *** [opencv/CMakeFiles/camopencv.dir/opencv.c.o] Error 1
CMakeFiles/Makefile2:77: recipe for target 'opencv/CMakeFiles/camopencv.dir/all' failed
make[1]: *** [opencv/CMakeFiles/camopencv.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2

Error: Build error: Failed building.
karandwivedi42 commented 8 years ago

Also, I installed torch-opencv as told here (https://github.com/clementfarabet/lua---camera/issues/20)

I am still getting the same error.

karandwivedi42 commented 8 years ago

https://github.com/clementfarabet/lua---camera/issues/20