openCV mingw-32 error in cmd - opencv

I've got an error. The error is occurred in cmd directory where openCV is when I use the command mingw32-make. My OS is win 7 64 bit. I followed this user guide:
http://www.ti.com/lit/ug/dlpu042/dlpu042.pdf
Any help is appreciated!Here is the error in cmd:
C:\OpenCV>mingw32-make
[ 0%] Built target gen-pkgconfig
[ 2%] Built target zlib
[ 5%] Built target libjpeg-turbo
[ 8%] Built target libtiff
[ 16%] Built target libwebp
[ 19%] Built target libjasper
[ 20%] Built target libpng
[ 25%] Built target IlmImf
[ 25%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/goog
le/protobuf/stubs/io_win32.cc.obj
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc:94:3: warning: identifier 'nullptr' is a keyword in C++11 [-W
c++0x-compat]
return s == nullptr || *s == 0;
^
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
ous}::null_or_empty(const char_type*)':
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc:94:15: error: 'nullptr' was not declared in this scope
return s == nullptr || *s == 0;
^
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
ous}::null_or_empty(const char_type*) [with char_type = char]':
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc:95:1: error: control reaches end of non-void function [-Werro
r=return-type]
}
^
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc: In function 'bool google::protobuf::internal::win32::{anonym
ous}::null_or_empty(const char_type*) [with char_type = wchar_t]':
C:\Users\xxx\Downloads\opencv\sources\3rdparty\protobuf\src\google\protobuf
\stubs\io_win32.cc:95:1: error: control reaches end of non-void function [-Werro
r=return-type]
}
^
cc1plus.exe: some warnings being treated as errors
3rdparty\protobuf\CMakeFiles\libprotobuf.dir\build.make:258: recipe for target '
3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.
cc.obj' failed
mingw32-make[2]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/pr
otobuf/stubs/io_win32.cc.obj] Error 1
CMakeFiles\Makefile2:715: recipe for target '3rdparty/protobuf/CMakeFiles/libpro
tobuf.dir/all' failed
mingw32-make[1]: *** [3rdparty/protobuf/CMakeFiles/libprotobuf.dir/all] Error 2
Makefile:161: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Related

Invoking "make -j4 -l4" failed

I am trying to install the ego-planner package. When I run catkin_make, I get an error. I am running ROS Melodic on Ubuntu 18.04. How do I fix this? This is the output I get (I have included most of the output, because I wasn't sure what was relevant. Please feel free to edit my question and remove unnecessary lines):
...
-- ==> add_subdirectory(uav_simulator/so3_quadrotor_simulator)
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message):
catkin_package() DEPENDS on 'Eigen3' but neither 'Eigen3_INCLUDE_DIRS' nor
'Eigen3_LIBRARIES' is defined.
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
uav_simulator/so3_quadrotor_simulator/CMakeLists.txt:29 (catkin_package)
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message):
catkin_package() DEPENDS on 'system_lib' but neither
'system_lib_INCLUDE_DIRS' nor 'system_lib_LIBRARIES' is defined.
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
uav_simulator/so3_quadrotor_simulator/CMakeLists.txt:29 (catkin_package)
-- +++ processing catkin package: 'rviz_plugins'
-- ==> add_subdirectory(uav_simulator/Utils/rviz_plugins)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at /opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:166 (message):
catkin_package() DEPENDS on 'system_lib' but neither
'system_lib_INCLUDE_DIRS' nor 'system_lib_LIBRARIES' is defined.
Call Stack (most recent call first):
/opt/ros/melodic/share/catkin/cmake/catkin_package.cmake:102 (_catkin_package)
uav_simulator/Utils/rviz_plugins/CMakeLists.txt:12 (catkin_package)
-- Using Qt5 based on the rviz_QT_VERSION: 5.9.5
-- +++ processing catkin package: 'waypoint_generator'
-- ==> add_subdirectory(uav_simulator/Utils/waypoint_generator)
-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Configuring done
CMake Warning (dev) at uav_simulator/Utils/multi_map_server/CMakeLists.txt:167 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "multi_map_server_messages_cpp" of target
"multi_map_visualization" does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /home/kadhir/catkin_ws/src/ego-planner/build
####
#### Running command: "make -j4 -l4" in "/home/kadhir/catkin_ws/src/ego-planner/build"
####
[ 0%] Built target geometry_msgs_generate_messages_py
[ 0%] Built target nav_msgs_generate_messages_py
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_Odometry
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_StatusData
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_Serial
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_LQRTrajectory
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_PPROutputData
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_PolynomialTrajectory
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_PositionCommand
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_OutputData
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_SO3Command
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_Gains
[ 0%] Built target nav_msgs_generate_messages_nodejs
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_Corrections
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_AuxCommand
[ 0%] Built target geometry_msgs_generate_messages_nodejs
[ 0%] Built target _quadrotor_msgs_generate_messages_check_deps_TRPYCommand
[ 0%] Built target nav_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_cpp
[ 0%] Built target geometry_msgs_generate_messages_eus
[ 0%] Built target nav_msgs_generate_messages_eus
[ 0%] Built target nav_msgs_generate_messages_lisp
[ 0%] Built target geometry_msgs_generate_messages_lisp
[ 1%] Built target pose_utils
[ 2%] Built target random_forest
[ 4%] Built target plan_env
[ 4%] Built target _multi_map_server_generate_messages_check_deps_MultiSparseMap3D
[ 4%] Built target _multi_map_server_generate_messages_check_deps_MultiOccupancyGrid
[ 4%] Built target _multi_map_server_generate_messages_check_deps_VerticalOccupancyGridList
[ 4%] Built target _multi_map_server_generate_messages_check_deps_SparseMap3D
[ 5%] Built target SO3Control
[ 7%] Built target mockamap_node
[ 7%] Built target std_msgs_generate_messages_lisp
[ 7%] Built target std_msgs_generate_messages_nodejs
[ 7%] Built target _ego_planner_generate_messages_check_deps_Bspline
[ 7%] Built target std_msgs_generate_messages_cpp
[ 7%] Built target std_msgs_generate_messages_eus
[ 7%] Built target std_msgs_generate_messages_py
[ 7%] Built target _ego_planner_generate_messages_check_deps_DataDisp
[ 8%] Built target quadrotor_dynamics
[ 17%] Built target quadrotor_msgs_generate_messages_py
[ 19%] Built target waypoint_generator
[ 27%] Built target quadrotor_msgs_generate_messages_nodejs
[ 35%] Built target quadrotor_msgs_generate_messages_cpp
[ 43%] Built target quadrotor_msgs_generate_messages_lisp
[ 52%] Built target quadrotor_msgs_generate_messages_eus
[ 55%] Built target multi_map_server_generate_messages_cpp
[ 58%] Built target multi_map_server_generate_messages_py
[ 59%] Built target path_searching
[ 61%] Built target multi_map_server_generate_messages_nodejs
[ 65%] Built target multi_map_server_generate_messages_lisp
[ 66%] Built target ego_planner_generate_messages_lisp
[ 67%] Built target ego_planner_generate_messages_nodejs
[ 69%] Built target multi_map_server_generate_messages_eus
[ 70%] Built target ego_planner_generate_messages_cpp
[ 72%] Built target ego_planner_generate_messages_py
[ 75%] Built target ego_planner_generate_messages_eus
[ 75%] Built target quadrotor_msgs_generate_messages
[ 76%] Built target encode_msgs
[ 77%] Built target decode_msgs
[ 77%] Built target multi_map_server_generate_messages
[ 77%] Built target ego_planner_generate_messages
[ 79%] Built target bspline_opt
[ 80%] Built target multi_map_visualization
[ 80%] Building CXX object uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/src/odom_visualization.cpp.o
[ 81%] Built target pcl_render_node
[ 82%] Built target control_example
Scanning dependencies of target traj_utils
[ 83%] Built target so3_control_nodelet
[ 84%] Built target quadrotor_simulator_so3
[ 93%] Built target rviz_plugins
[ 94%] Building CXX object planner/traj_utils/CMakeFiles/traj_utils.dir/src/polynomial_traj.cpp.o
[ 94%] Building CXX object planner/traj_utils/CMakeFiles/traj_utils.dir/src/planning_visualization.cpp.o
In file included from /opt/ros/melodic/include/ros/node_handle.h:32:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/publisher.h:53:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
Publisher& operator=(const Publisher& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:33:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/subscriber.h:52:52: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
Subscriber& operator=(const Subscriber& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:34:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/service_server.h:51:58: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
ServiceServer& operator=(const ServiceServer& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:35:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/service_client.h:49:58: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
ServiceClient& operator=(const ServiceClient& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:36:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/timer.h:52:42: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
Timer& operator=(const Timer& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:38:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/wall_timer.h:52:50: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
WallTimer& operator=(const WallTimer& other) = default;
^
In file included from /opt/ros/melodic/include/ros/node_handle.h:39:0,
from /opt/ros/melodic/include/ros/ros.h:45,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:3:
/opt/ros/melodic/include/ros/steady_timer.h:52:54: warning: defaulted and deleted functions only available with -std=c++11 or -std=gnu++11
SteadyTimer& operator=(const SteadyTimer& other) = default;
^
In file included from /opt/ros/melodic/include/tf/transform_broadcaster.h:36:0,
from /home/kadhir/catkin_ws/src/ego-planner/src/uav_simulator/Utils/odom_visualization/src/odom_visualization.cpp:4:
/opt/ros/melodic/include/tf/tf.h:354:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<tf2_ros::Buffer> getTF2BufferPtr() { return tf2_buffer_ptr_;};
^
/opt/ros/melodic/include/tf/tf.h:403:8: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr<tf2_ros::Buffer> tf2_buffer_ptr_;
^
/opt/ros/melodic/include/tf/tf.h: In member function ‘ros::Duration tf::Transformer::getCacheLength()’:
/opt/ros/melodic/include/tf/tf.h:331:43: error: ‘tf2_buffer_ptr_’ was not declared in this scope
ros::Duration getCacheLength() { return tf2_buffer_ptr_->getCacheLength();}
^
/opt/ros/melodic/include/tf/tf.h: In member function ‘void tf::Transformer::setUsingDedicatedThread(bool)’:
/opt/ros/melodic/include/tf/tf.h:349:46: error: ‘tf2_buffer_ptr_’ was not declared in this scope
void setUsingDedicatedThread(bool value) { tf2_buffer_ptr_->setUsingDedicatedThread(value);};
^
/opt/ros/melodic/include/tf/tf.h: In member function ‘bool tf::Transformer::isUsingDedicatedThread()’:
/opt/ros/melodic/include/tf/tf.h:351:42: error: ‘tf2_buffer_ptr_’ was not declared in this scope
bool isUsingDedicatedThread() { return tf2_buffer_ptr_->isUsingDedicatedThread();};
^
uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/build.make:62: recipe for target 'uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/src/odom_visualization.cpp.o' failed
make[2]: *** [uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/src/odom_visualization.cpp.o] Error 1
CMakeFiles/Makefile2:4424: recipe for target 'uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/all' failed
make[1]: *** [uav_simulator/Utils/odom_visualization/CMakeFiles/odom_visualization.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 94%] Linking CXX shared library /home/kadhir/catkin_ws/src/ego-planner/devel/lib/libtraj_utils.so
[ 94%] Built target traj_utils
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

Facing issue installing openCV 2.4.9 on ubuntu 18.04

I am trying to install openCv on ubuntu 18.0
I have followed steps of this blog
But when I run this command
make
it throws the following error
[ 57%] Built target opencv_perf_ocl
[ 57%] Built target opencv_nonfree
[ 57%] Built target opencv_perf_nonfree
[ 58%] Built target opencv_test_nonfree
[ 58%] Building CXX object modules/contrib/CMakeFiles/opencv_contrib.dir/src/chamfermatching.cpp.o
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp: In member function ‘void cv::ChamferMatcher::Matching::computeDistanceTransform(cv::Mat&, cv::Mat&, cv::Mat&, float, float, float)’:
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:969:30: error: the compiler can assume that the address of ‘annotate_img’ will never be NULL [-Werror=address]
if (&annotate_img!=NULL) {
^
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:1016:34: error: the compiler can assume that the address of ‘annotate_img’ will never be NULL [-Werror=address]
if (&annotate_img!=NULL) {
^
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp: In member function ‘cv::ChamferMatcher::Match* cv::ChamferMatcher::Matching::localChamferDistance(cv::Point, cv::Mat&, cv::Mat&, cv::ChamferMatcher::Template*, float)’:
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:1111:25: error: the compiler can assume that the address of ‘orientation_img’ will never be NULL [-Werror=address]
if (&orientation_img!=NULL) {
^
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:1111:5: warning: nonnull argument ‘orientation_img’ compared to NULL [-Wnonnull-compare]
if (&orientation_img!=NULL) {
^~
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp: In member function ‘void cv::ChamferMatcher::Matching::computeDistanceTransform(cv::Mat&, cv::Mat&, cv::Mat&, float, float, float)’:
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:1016:17: warning: nonnull argument ‘annotate_img’ compared to NULL [-Wnonnull-compare]
if (&annotate_img!=NULL) {
^~
/home/knoldus/opencv-2.4.9/modules/contrib/src/chamfermatching.cpp:969:13: warning: nonnull argument ‘annotate_img’ compared to NULL [-Wnonnull-compare]
if (&annotate_img!=NULL) {
^~
cc1plus: some warnings being treated as errors
modules/contrib/CMakeFiles/opencv_contrib.dir/build.make:158: recipe for target 'modules/contrib/CMakeFiles/opencv_contrib.dir/src/chamfermatching.cpp.o' failed
make[2]: *** [modules/contrib/CMakeFiles/opencv_contrib.dir/src/chamfermatching.cpp.o] Error 1
CMakeFiles/Makefile2:2974: recipe for target 'modules/contrib/CMakeFiles/opencv_contrib.dir/all' failed
make[1]: *** [modules/contrib/CMakeFiles/opencv_contrib.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
Installing old versions of opencv can cause a lot problems as stated in this question (check comments).
Solution for Cmake errors regarding detection of CXXCompiler can be
found here
Solution for fatal error: stdlib.h: No such file or directory can
be found here
Solution for the make error stated in the latest edition of the
question can be found in the patch here

SIZE_MAX not declared when trying to build opencv-2.4.10 on raspbian wheezy

I'm trying to build opencv-2.4.10 on my Raspberry Pi model B (wheezy) following these instructions but am getting the error below. What's the best way of fixing this?
[ 14%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o
In file included from /usr/include/jasper/jasper.h:77:0,
from /home/pi/opencv-2.4.10/modules/highgui/src/grfmt_jpeg2000.cpp:58:
/usr/include/jasper/jas_math.h: In function ‘int jas_safe_size_mul(size_t, size_t, size_t*)’:
/usr/include/jasper/jas_math.h:117:22: error: ‘SIZE_MAX’ was not declared in this scope
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:422: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o' failed
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/grfmt_jpeg2000.cpp.o] Error 1
CMakeFiles/Makefile2:1772: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
I'm not sure if its best practice but after trying to correct by defining __STDC_LIMIT_MACROS, I gave up and edited /usr/include/jasper/jas_math.h, adding
#if ! defined SIZE_MAX
#define SIZE_MAX (4294967295U)
#endif
right after
#include <stdint.h>

Error building opencv on a raspberry pi 3

I was following this example and received the following error when running make
In file included from /root/src/opencv-3.1.0/modules/videoio/src/cap_ffmpeg.cpp:45:0:
/root/src/opencv-3.1.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In member function ‘bool OutputMediaStream_FFMPEG::open(const char*, int, int, double)’:
/root/src/opencv-3.1.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2207:41: warning: ignoring return value of ‘int avformat_write_header(AVFormatContext*, AVDictionary**)’, declared with attribute warn_unused_result [-Wunused-result]
avformat_write_header(oc_, NULL);
^
Linking CXX shared library ../../lib/libopencv_videoio.so
/usr/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libx264.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:215: recipe for target 'lib/libopencv_videoio.so.3.1.0' failed
make[2]: *** [lib/libopencv_videoio.so.3.1.0] Error 1
CMakeFiles/Makefile2:4058: recipe for target 'modules/videoio/CMakeFiles/opencv_videoio.dir/all' failed
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make: *** [all] Error 2
I have successfully installed opencv on Raspberry Pi 3 by following the steps in the link http://www.pyimagesearch.com/2015/02/23/install-opencv-and-python-on-your-raspberry-pi-2-and-b/
The changes i made while following the steps are:
Use 'aptitude' instead of 'apt-get' and accept all recommendations given
Before following Step 11, run 'source ~/.profile'. To quit, run 'deactivate'
Hope this helps :)

Opencv make error

I see this during make opencv:
I download source for opencv git
[ 22%] Built target pch_Generate_opencv_highgui
[ 22%] Built target opencv_highgui
[ 22%] Built target opencv_videoio_pch_dephelp
[ 22%] Built target pch_Generate_opencv_videoio
[ 22%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o
/home/fhwa/opencv/modules/videoio/src/cap_v4l.cpp: In function ‘bool mjpeg_to_rgb24(int, int, unsigned char*, int, unsigned char*)’:
/home/fhwa/opencv/modules/videoio/src/cap_v4l.cpp:1740:16: error: ‘imdecode’ is not a member of ‘cv’
cv::Mat temp=cv::imdecode(cv::Mat(std::vector<uchar>(src, src + length)), 1);
^
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o] Error 1
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [all] Error 2
any hint? do I miss some packages?
Try a stable version
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.9/opencv-2.4.9.zip/download
not cutting-edge version(from git)
You can either use plhn solution, or do git checkout on latest stable tag:
$git tag -l #list all tags
$git checkout 2.4.9 #thats the latest stable version
This will checkout the same version as in latest stable packages. But as a bonus, You can look into the sourcecode if some not clear exceptions appear.

Resources