All pastes #2114134 Raw Edit

output

public text v1 · immutable
#2114134 ·published 2012-02-09 12:31 UTC
rendered paste body
using 
ubuntu linux 10.04
opencv 2.2

i want to compile opencv 2.2 for arm architecture so am giving a configuration file below to cmake .  
it compiles properly and generates   
libopencv_lapack.a  
libzlib.a  
libopencv_core.so  
libopencv_imgproc.so  
liblibjpeg.a  
liblibjasper.a  
problem arise when compiling for opencv_highgui  
it seems cmake cant find include dir   
it generates error==  

  
////////////////  
Scanning dependencies of target opencv_highgui  
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.o  
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation    
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation  
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.o  
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation  
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation  
/////////////  

  
i am considering all the required lib are included in libopencv_lapack.a  
even though i have compiled required lib and kept in /home/mandar/Desktop/cv2/collect     ///include ///lib ///man  





   
toolchain dir : /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/  
pre compile lib for arm : /home/mandar/Desktop/cv2/collect/include  
  
*************************************  
 OpenCV toolchain file   
**************************************  
SET(CMAKE_SYSTEM_NAME Linux)  
SET(CMAKE_SYSTEM_VERSION 1)  

# specify the cross compiler
set(COMPILER_ROOT /opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin)
set(CMAKE_C_COMPILER ${COMPILER_ROOT}/arm_v5t_le-gcc)
set(CMAKE_CXX_COMPILER ${COMPILER_ROOT}/arm_v5t_le-g++)


SET(PNG_LIBRARY /home/mandar/Desktop/cv2/collect/lib/libpng.so)
SET(TIFF_LIBRARY /home/mandar/Desktop/cv2/collect/lib/libtiff.so)
SET(JPEG_LIBRARY /home/mandar/Desktop/cv2/collect/lib/libjpeg.so)
SET(ZLIB_LIBRARY /home/mandar/Desktop/cv2/collect/lib/libz.so)



SET(PNG_PNG_INCLUDE_DIR /home/mandar/Desktop/cv2/collect/include)
SET(TIFF_INCLUDE_DIR /home/mandar/Desktop/cv2/collect/include)
SET(JPEG_INCLUDE_DIR /home/mandar/Desktop/cv2/collect/include)
SET(ZLIB_INCLUDE_DIR /home/mandar/Desktop/cv2/collect/include)

include_directories ("/home/mandar/Desktop/cv2/collect/include")
include_directories ("/home/mandar/Desktop/cv2/collect/include/libpng12")
include_directories ("/home/mandar/Desktop/cv2/collect/include/libltdl")

# specify how to set the CMake compilation flags
# CPP
SET(CMAKE_CXX_FLAGS $ENV{CXX_FLAGS} CACHE FORCE "")
SET(CMAKE_CXX_FLAGS_DEBUG $ENV{CXX_FLAGS_DEBUG} CACHE FORCE "")
SET(CMAKE_CXX_FLAGS_RELEASE $ENV{CXX_FLAGS_RELEASE} CACHE FORCE "")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO $ENV{CXX_FLAGS_RELWITHDEBINFO} CACHE FORCE "")

SET(CMAKE_CXX_LINK_FLAGS $ENV{CMAKE_EXE_LINKER_FLAGS} CACHE FORCE "")
SET(CMAKE_C_LINK_FLAGS $ENV{CMAKE_EXE_LINKER_FLAGS} CACHE FORCE "")
SET(CMAKE_CXX_LINK_FLAGS_RELEASE $ENV{CMAKE_EXE_LINKER_FLAGS} CACHE FORCE "")
SET(CMAKE_CXX_LINK_FLAGS_DEBUG $ENV{CMAKE_EXE_LINKER_FLAGS} CACHE FORCE "")

# C
#SET(CMAKE_C_FLAGS $ENV{C_FLAGS} CACHE FORCE "")
SET(CMAKE_C_FLAGS_DEBUG $ENV{C_FLAGS_DEBUG} CACHE FORCE "")
SET(CMAKE_C_FLAGS_RELEASE $ENV{C_FLAGS_RELEASE} CACHE FORCE "")
SET(CMAKE_C_FLAGS_RELWITHDEBINFO $ENV{C_FLAGS_RELWITHDEBINFO} CACHE FORCE "")

# where is the target environment 
SET(CMAKE_FIND_ROOT_PATH ${COMPILER_ROOT})

# search for programs in the build host directories
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# for libraries and headers in the target directories
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
****************************************************





Command:

mandar@ubuntu:~/Desktop/cv$ sudo cmake -DCMAKE_TOOLCHAIN_FILE=/home/mandar/Desktop/cv/OpenCV-2.2.0/toolchain.cmake  -DCMAKE_INSTALL_PREFIX=/home/mandar/Desktop/cv/OpenCV-2.2.0/inX/ OpenCV-2.2.0


**********************************************************
Output: (removed some statements to keep Question under limit)

[ 28%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/sgeqrf.o
[ 28%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dormql.o
..
..
..
[ 38%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/sstebz.o
[ 38%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dorm2r.o
[ 39%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dlasq4.o
Linking C static library ../lib/libopencv_lapack.a
[ 39%] Built target opencv_lapack
Scanning dependencies of target zlib
[ 39%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/deflate.o
..
..
..
[ 41%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inflate.o
Linking C static library ../lib/libzlib.a
[ 41%] Built target zlib
Scanning dependencies of target opencv_core
[ 41%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/drawing.o
..
..
..
[ 43%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/precomp.o
Linking CXX shared library ../../lib/libopencv_core.so
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: WARNING: ../../3rdparty/lib/libzlib.a(gzlib.o): a2c35d0(gz_error): PLT refcount was -1 (set to 1)
/opt/mv_pro_4.0.1/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linuxeabi/3.4.3/../../../../armv5tl-montavista-linuxeabi/bin/ld: WARNING: ../../3rdparty/lib/libzlib.a(trees.o): a4b18f8(_tr_stored_block): PLT refcount was -1 (set to 1)
[ 43%] Built target opencv_core
Scanning dependencies of target opencv_imgproc
[ 43%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/morph.o
..
..
..
[ 49%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/geometry.o
[ 49%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.o
Linking CXX shared library ../../lib/libopencv_imgproc.so
[ 49%] Built target opencv_imgproc
Scanning dependencies of target libjpeg
[ 49%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcsample.o
[ 49%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdapistd.o
[ 49%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jquant2.o..
..
..
[ 54%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcmainct.o
[ 54%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jfdctfst.o
[ 54%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdmarker.o
[ 54%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/transupp.o
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c: In function `jtransform_adjust_parameters':
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1312: warning: enumeration value `JXFORM_NONE' not handled in switch
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1312: warning: enumeration value `JXFORM_FLIP_H' not handled in switch
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1312: warning: enumeration value `JXFORM_FLIP_V' not handled in switch
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1312: warning: enumeration value `JXFORM_ROT_180' not handled in switch
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c: In function `jtransform_perfect_transform':
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1449: warning: enumeration value `JXFORM_NONE' not handled in switch
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjpeg/transupp.c:1449: warning: enumeration value `JXFORM_TRANSPOSE' not handled in switch
[ 55%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcphuff.o
[ 55%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jccoefct.o
[ 55%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jfdctint.o
[ 55%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcparam.o
[ 55%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdhuff.o
Linking C static library ../lib/liblibjpeg.a
[ 55%] Built target libjpeg
Scanning dependencies of target libjasper
[ 55%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jp2_enc.o
[ 55%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_cm.o
[ 55%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_mqdec.o
[ 55%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jp2_cod.o
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjasper/jp2_cod.c: In function `jp2_box_put':
/home/mandar/Desktop/cv/OpenCV-2.2.0/3rdparty/libjasper/jp2_cod.c:493: warning: comparison is always false due to limited range of data type
..
..
[ 59%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_malloc.o
Linking C static library ../lib/liblibjasper.a
[ 59%] Built target libjasper
Scanning dependencies of target opencv_highgui
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap.o
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_images.o
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/loadsave.o
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation
[ 59%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/precomp.o
cc1plus: warning: include location "/usr/include/gtk-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/atk-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/cairo" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pango-1.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/gio-unix-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation
[ 60%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/utils.o
cc1plus: warning: include location "/usr/include/glib-2.0" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/pixman-1" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/freetype2" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/directfb" is unsafe for cross-compilation
cc1plus: warning: include location "/usr/include/libpng12" is unsafe for cross-compilation
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:49:27: dc1394/dc1394.h: No such file or directory
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:53: error: `dc1394error_t' does not name a type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:126: error: `dc1394error_t' does not name a type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:157: error: `dc1394camera_t' was not declared in this scope
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:157: error: `camera' was not declared in this scope
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:157: error: expected primary-expression before "offset"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:158: error: initializer expression list treated as compound expression
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:158: error: expected `,' or `;' before '{' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:171: error: ISO C++ forbids declaration of `dc1394_t' with no type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:171: error: expected `;' before '*' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In constructor `CvDC1394::CvDC1394()':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:177: error: `dc' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:177: error: (Each undeclared identifier is reported only once for each function it appears in.)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:177: error: `dc1394_new' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In destructor `CvDC1394::~CvDC1394()':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:183: error: `dc' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:184: error: `dc1394_free' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: At global scope:
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:215: error: ISO C++ forbids declaration of `dc1394camera_t' with no type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:215: error: expected `;' before '*' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:228: error: `dc1394bayer_method_t' does not name a type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:229: error: `dc1394color_filter_t' does not name a type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:233: error: ISO C++ forbids declaration of `dc1394video_frame_t' with no type
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:233: error: expected `;' before '*' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:284: error: `dc1394video_mode_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:284: error: expected `;' before "bestMode"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:290: error: `DC1394_VIDEO_MODE_FORMAT7_MAX' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:293: error: `dc1394color_coding_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:293: error: expected `;' before "colorCoding"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:294: error: `colorCoding' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:294: error: `dc1394_get_color_coding_from_video_mode' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:297: error: `dc1394_get_image_size_from_video_mode' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:300: error: `DC1394_COLOR_CODING_RGB8' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:301: error: `DC1394_COLOR_CODING_RAW8' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:303: error: `bestMode' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:307: error: `DC1394_COLOR_CODING_YUV411' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:308: error: `DC1394_COLOR_CODING_YUV422' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:309: error: `DC1394_COLOR_CODING_YUV444' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:360: error: `dc1394_video_set_framerate' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:365: error: `bayerFilter' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:365: error: `DC1394_COLOR_FILTER_GBRG' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:368: error: `dc1394_get_control_register' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:372: error: `DC1394_CAPTURE_FLAGS_DEFAULT' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:372: error: `dc1394_capture_setup' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:375: error: `dc1394_capture_get_fileno' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:376: error: `DC1394_ON' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:376: error: `dc1394_video_set_transmission' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:384: error: `dc1394_set_control_register' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In member function `virtual bool CvCaptureCAM_DC1394_v2_CPP::open(int)':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:396: error: `dc1394camera_list_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:396: error: `cameraList' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:397: error: `dc1394error_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:397: error: expected `;' before "err"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:401: error: 'struct CvDC1394' has no member named 'dc'
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:404: error: `err' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:404: error: 'struct CvDC1394' has no member named 'dc'
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:404: error: `dc1394_camera_enumerate' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:409: error: `dcCam' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:409: error: 'struct CvDC1394' has no member named 'dc'
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:409: error: `dc1394_camera_new' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:418: error: `dc1394_camera_free_list' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In member function `virtual void CvCaptureCAM_DC1394_v2_CPP::close()':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:425: error: `dcCam' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:427: error: `dc1394_capture_get_fileno' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:429: error: `DC1394_OFF' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:429: error: `dc1394_video_set_transmission' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:430: error: `dc1394_capture_stop' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:431: error: `dc1394_camera_free' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:442: error: `frameC' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In member function `virtual bool CvCaptureCAM_DC1394_v2_CPP::grabFrame()':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:454: error: `dc1394capture_policy_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:454: error: expected `;' before "policy"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:456: error: `dc1394video_frame_t' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:456: error: `dcFrame' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:456: error: `fs' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:459: error: `dcCam' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:462: error: `policy' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:462: error: `dc1394_capture_dequeue' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:467: error: `dc1394_capture_is_frame_corrupt' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:467: error: `DC1394_TRUE' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:472: error: `DC1394_COLOR_CODING_MONO8' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:473: error: `DC1394_COLOR_CODING_MONO16' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:474: error: `DC1394_COLOR_CODING_MONO16S' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:478: error: expected primary-expression before ')' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:478: error: expected `;' before "calloc"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:481: error: `DC1394_STEREO_METHOD_INTERLACED' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:481: error: `dc1394_deinterlace_stereo_frames_fixed' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:483: error: `dc1394_capture_enqueue' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:494: error: expected `;' before "f"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:495: error: `f' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:499: error: `frameC' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:500: error: expected primary-expression before ')' token
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:500: error: expected `;' before "calloc"
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:501: error: `DC1394_COLOR_CODING_RGB8' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:504: error: `dc1394_convert_frames' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:510: error: `bayerFilter' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:511: error: `bayer' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:511: error: `dc1394_debayer_frames' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:513: error: `fc' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp: In member function `virtual bool CvCaptureCAM_DC1394_v2_CPP::getVidereCalibrationInfo(char*, int)':
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:633: error: `dcCam' undeclared (first use this function)
/home/mandar/Desktop/cv/OpenCV-2.2.0/modules/highgui/src/cap_dc1394_v2.cpp:633: error: `getControlRegister' cannot be used as a function
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_dc1394_v2.o] Error 1
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [all] Error 2
mandar@ubuntu:~/Desktop/cv$