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
Related
I created a really simple Swift package, that contain only a few Objective-C source files, but when I try to build another project that it, it fail compiling because:
ld: bitcode bundle could not be generated because 'MySwiftPackage.o' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build file 'MySwiftPackage.o' for architecture arm64
I also tried to force Bitcode to be enable by adding settings:
cSettings: [.define("OTHER_CFLAGS", to: "-fembed-bitcode")] and .define("ENABLE_BITCODE", to: "YES") with no luck.
How can I identify what is causing the bitcode to be disabled ?
Here is my package.swift:
let package = Package(
name: "MySwiftPackage",
platforms: [.iOS(.v11)],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "MySwiftPackage",
targets: ["MySwiftPackage"]),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.target(
name: "MySwiftPackage",
publicHeadersPath: "Public",
cSettings: [
.headerSearchPath("Internal")
])
]
)
the error broke during the make period
this is the procedure before the error came out
1.download the source code from github of opencv and opencv_contrib 4.3.0
2.creat a dir under opencv source code dir name opencv_contrib
3.enter the build dir and enter the code
cmake -D CMAKE_INSTALL_PREFIX=/usr/local -D CMAKE_BUILD_TYPE=Release -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
some of the files to download while cmake didn't download but I manually download those and all of the fail-to-download files are copied to the required route
then begin to make
make -j7
error break while making
Scanning dependencies of target opencv_test_xfeatures2d
[ 90%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_detectors.cpp.o
[ 90%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/internal/gapi_transactions_test.cpp.o
[ 90%] Building CXX object modules/gapi/CMakeFiles/opencv_test_gapi.dir/test/own/conc_queue_tests.cpp.o
[ 90%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o
[ 90%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_surf.ocl.cpp.o
/home/wang/Documents/opencv-4.3.0/opencv_contrib/modules/xfeatures2d/test/test_features2d.cpp: In member function ‘virtual void opencv_test::{anonymous}::Features2d_SIFTHomographyTest_regression_Test::Body()’:
/home/wang/Documents/opencv-4.3.0/opencv_contrib/modules/xfeatures2d/test/test_features2d.cpp:366:88: error: ‘SIFT’ has not been declared
TEST(Features2d_SIFTHomographyTest, regression) { CV_DetectPlanarTest test("SIFT", 80, SIFT::create()); test.safe_run(); }
^~~~
/home/wang/Documents/opencv-4.3.0/opencv_contrib/modules/xfeatures2d/test/test_features2d.cpp: In member function ‘virtual void opencv_test::{anonymous}::Features2d_SIFT_using_mask_regression_Test::Body()’:
/home/wang/Documents/opencv-4.3.0/opencv_contrib/modules/xfeatures2d/test/test_features2d.cpp:435:39: error: ‘SIFT’ has not been declared
FeatureDetectorUsingMaskTest test(SIFT::create());
reference websites
https://www.cnblogs.com/fx-blog/p/8213704.html
https://blog.csdn.net/u011736771/article/details/85960300
I had the same problem with the 4.3.0 release, SIFT was moved out of xfeatures2d but I dont think it was inserted in the main branch for the 4.3.0 release. Just download the master (development) branch and the problem is solved
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
I am trying to compile a project that depends on PCL and OpenCV.
The CMakeLists.txt looks like:
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(pcl_visualizer_viewports)
find_package(PCL 1.2 REQUIRED)
find_package(OpenCV REQUIRED)
message("this is my message " ${OpenCV_LIBRARIES} )
message("this is my message " ${OpenCV_INCLUDE_DIRS} )
message("this is my message " ${OpenCV_INSTALL_PATH} )
include_directories(${PCL_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_executable (pcl_visualizer_demo pcl_visualizer_demo.cpp readInputFile.cpp readInputFile.h defines.h helper.cpp helper.h Image_Safety.h Image_Safety.cpp)
target_link_libraries (pcl_visualizer_demo ${PCL_LIBRARIES} ${OpenCV_LIBRARIES})
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
The result is however a segmentation fault and core dumped. I have read through the Cmake tutorial, but I have not found the issue. CMake generates the object files for all:
Scanning dependencies of target pcl_visualizer_demo
[ 20%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/Image_Safety.cpp.o
[ 40%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/helper.cpp.o
[ 60%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/image_converter.cpp.o
[ 80%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/readInputFile.cpp.o
[100%] Building CXX object CMakeFiles/pcl_visualizer_demo.dir/pcl_visualizer_demo.cpp.o
Linking CXX executable pcl_visualizer_demo
Looking at the linking verbose information, the different object files are mentioned and I interpret this as they are linked.
What am I missing?
update
Weird so the error occurs in some part of the code using basic opencv functions cv::waitKey and cv::imshow, it may seem to be an issue with QT according to this and this.
I had a similar issue. In the end I had to build PCL without QT (I also found several posts which stated interference, but found no solution)
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.