We are trying to learn how to use opencv, and to do so we would like to fiddle with the FaceDetection sample that comes with it. But we haven't been able to build it, as we have had a plethora of errors.
First, I built a new proyect, and followed all steps posted here:
http://stackoverflow.com/questions/27406303/opencv-in-android-studio
Then, I copied all files inside the FaceDetection folder to the project in the folders they should go (res on src/main/res, src on the project package, jni on jni... etc). Then, I change any project specific value, like package names, and press build gradle.
This works with most apps, but here it gives me some erros. First, it says the ndk is deprecated, and then I should either use an experimental one, o turn the "useDeprecatedNdk=true". A new ndk doesn't fix the error, and the second option gives new errors on its own, specifically with DetectionBasedTracker_jni.cpp, as those includes are never, ever found.
Obviously, we are doing something wrong with the whole thing, ndk and all, so we are desperated. How can we make this thing run? We downloaded OpenCV 3.1.0, are using AndroidStudio on Ubuntu, SDK 23. We would be evergrateful if someone helped us, we are completely lost.
↧
How to build FaceDetection example on AndroidStudio
↧
issue with setting /MT flag while building
I am having problems while building OpenCV with /MT flags using Intel Compiler for Windows.
OpenCV version: 3.1
Host OS: Windows 7
Compiler: Intel Compiler
In which part of the OpenCV library you got the issue?
Building OpenCV
Expected behaviour: To be able to build with /MT flag
Actual behaviour: the /nodefaultlib:libcmt.lib causes my links to fail with unresolved C runtime symbols
If I remove the /nodefault:libcmt.lib flags from the CMakeLists.txt files, then my build is successful. Why is this flag present, and can it be removed to allow static-runtime builds without requiring modifications?
↧
↧
Build shared for Android libc++ fails
I'm did a clone from https://github.com/Itseez/opencv.git
@ commit 6e5e5d87df4212b91839704ff153ec6d8f2549f6
I used this cmake command:
cmake \
-DBUILD_SHARED_LIBS=YES \
-DANDROID_ABI=arm64-v8a \
-DBUILD_ANDROID_EXAMPLES=OFF \
-DINSTALL_PYTHON_EXAMPLES=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_PERF_TESTS=OFF \
-DBUILD_TESTS=OFF \
-DANDROID_NATIVE_API_LEVEL=android-14 \
-DANDROID_STL=c++_shared \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
-DANDROID_STL_FORCE_FEATURES=ON \
-DCMAKE_TOOLCHAIN_FILE=../../opencv/platforms/android/android.toolchain.cmake $@ ../../opencv
The third party libraries built ok. I got c++ standard library link errors when linking opencv_core:
CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o: In function `std::string::_Rep::_M_dispose(std::allocator const&) [clone .part.1]':
command_line_parser.cpp:(.text.unlikely._ZNSs4_Rep10_M_disposeERKSaIcE.part.1+0x38): undefined reference to `std::string::_Rep::_M_destroy(std::allocator const&)'
CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o: In function `cv::from_str(cv::String const&, int, void*)':
command_line_parser.cpp:(.text._ZN2cvL8from_strERKNS_6StringEiPv+0x44): undefined reference to `VTT for std::basic_stringstream, std::allocator>'
command_line_parser.cpp:(.text._ZN2cvL8from_strERKNS_6StringEiPv+0x48): undefined reference to `std::basic_string, std::allocator>::basic_string(char const*, std::allocator const&)'
command_line_parser.cpp:(.text._ZN2cvL8from_strERKNS_6StringEiPv+0x50): undefined reference to `std::ios_base::ios_base()'
etc.
↧
Multiple opencv 3 & IPP build issues
This post started out as a question, but morphed into a notification of multiple problems I had building opencv 3 with IPP "out of the box", and to provide a workaround, which works for me at least.
Here's a summary of my issues:
==============================
1. Opencv3 does not build out of the box with the supplied IPP libraries. This is an apparent link failure, and happens with several objects.
2. Opencv3 does not recognize the IPPROOT environment variable, which I believe is a standard environment variable used when IPP is already installed on a system
3. I could find no documentation on how to direct OpenCV to look for the existing IPP on the system, and had to search thru included cmake files to find the right flag.
4. OpenCV3 does not work with IPP 9, due to Intel removing the libippm.a library, and OpenCV still looking for it.
5. sudo make install doesnt work, as the linker cannot find several of the IPP libraries (libirc, libimf, libsvml)
Solution (at least for me):
===========================
1. edit cmake/OpenCVFindIPP.cmake, and comment out the line _ipp_add_library(m)
2. build with D IPPROOT='pathToMyIPP'
3. instead of sudo make install, need to ensure that the root user has sourced the appropriate Intel compilervars script (for me its /opt/intel/bin/compilervars.sh intel64), then do
su
make install
Details:
========
I've been using opencv 2.4.x for awhile now but need to upgrade to 3 to get functionality that doesnt exist in 2.4.x. I downloaded 3.1.0 from the website and tried to build i (only flag I used was -D CMAKE_BUILD_TYPE=RELEASE) . It fails when trying to link with the IPP that comes bundled in the 3rdparty directory of opencv 3. I have a CentOS version of linux, but I'm fairly certain that CentOS does not play in any of these problems.
Problems using OpenCV-provided IPP:
-----------------------------------
On compile (make stage), there's a ton of errors that look like:
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiCopySubpixIntersect_8u_C1R'
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiCopy_32f_AC4C3R'
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiDistanceTransform_5x5_8u32f_C1R'
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiFilterBorder_32f_C1R'
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiFilterBorderInit_32f'
../../lib/libopencv_imgproc.so.3.1.0: undefined reference to `ippiResizeCubic_32f_C3R'
../../lib/libopencv_core.so.3.1.0: undefined reference to `ippiNorm_L2_16u_C1MR'
I see that theres a libippicv.a file included under 3rdparty, and I checked a few of the symbols for existence using nm libippicv.a, and all the symbols I checked exist. I also did a search on the entire opencv3 tree for inclusion of this library in the link line of make files, and it seems to exist. So I'm really confused. Since I have IPP as part of the intel compiler suite I gave up and used the IPP that came from Intel.
Directing CMake to use system IPP
---------------------------------
It turns out I have the intel compiler on my system so I tried to use that version of IPP instead. I couldn't find any documentation on how to get that done, I had to search thru various cmake files in order to find that you need to provide the flag -DIPPROOT=. This gem was found in cmake/OpenCVFindIPP.cmake, along with a note that says backwards compatibility is broken, and the environment variable IPPROOT is no longer recognized.
Fixing IPP v9.0.1 compatibility problem:
----------------------------------------
Even after supplying the correct path to IPP, the build failed because OpenCVFindIPP.cmake tries to find/add the library libippm.a to the link line. The offending line in OpenCVFindIPP.cmake is "_ipp_add_library(m). This is the "small matrix" support from intel and was deprecated out of version 9 of the IPP.
Soilving link/install problem (sudo make install)
----------------------------------------
For me, this was the hardest of the bunch, as I'm not really familiar with the intricacies of CMake. It appears that cmake will strip the full path to a library, if that path exists in the LIBRARY_PATH environment variable (might be other conditions/prerequisites too, like I said I'm Cmake-stupid). This "feature" is in the cmake source code, and exists nowhere in the cmake scripts provided by a user of cmake (ie. you cannot find it thru grep, or trying to unravel cmake scripts and then altering those scripts).
So since I was running the configure and make stages as myself, and I had the path to intel libraries in my LIBRARY_PATH environment variable, the paths to the libraries libirc.so, libimf.so, and libsvml.so were stripped and their place went: -lirc -limf -lsvml.
Now if I try to do: sudo make install, then these libraries are not found for two reasons:
a. my root user never ran intel's compilervars.sh script, so when make install is run as root the path to those libraries does not exist in LIBRARY_PATH
b. even after fixing that, sudo make install still doesnt work, because it doesnt run (some of????, all of???
) the bash loginn scripts (is sudo an non-interactive login maybe?)
So I had to both run compilervars.sh script for root logins, and then do:
su
make install
None if this is standard in my experiences with building/installing codesets.
In Closing.,..
=======
The people involved with OpenCV have created a really awesome framework to learn image/video processing techniques, and then put together solutions to actual problems. I've done a lot of signal processing in my lifetime, and have used many frameworks. From every angle (utility, speed, documentation, provided example code), OpenCV is phenomenal.
It is because it is so awesome that I was willing to spend over a week of very frustrating effort trying to make it work. However I believe you risk turning many away if they have to go thru the same install agonies that I have. Most of my colleagues would have given up on the install and either just gone with OpenCV v2, which to my recollection build and installed normally, OR they would have just rolled their own software.
I realize that as a user I have no right to ask the OpenCV developers to do any additional work. But may I at least suggest that if you have some time that you have put aside to work on OpenCV that you spend a little time trying to address these issues. Specifically:
1. determine/fix why the compile stage fails with the OpenCV provided IPP libraries
2. check for the existence of the IPPROOT environment variable, and then use system-provided IPP before OpenCV's provided IPP. Probably means modifying cmake/OpenCVFindIPP.cmake
--- OR ---
document the IPPROOT flag on the "cmake" step For me, the first option is preferred, but the second is clearly less work and would suffice.
3. Check the version of IPP being linked with and if it's version 9, dont look for the "m" library (ie. remove the line _ipp_add_library(m) from cmake/OpenCVFindIPP.cmake)
4. If it's possible stop cmake from stripping library paths, OR provide a "-L" directive prior to libraries whose path was stripped OR put a warning in the build documentation that root needs to have the same LIBRARY_PATH, and that you cannot use a non-interactive root login (ie. sudo make install) to complete the install step.
↧
Building opencv 3.1.0 on Ubuntu 16.04
Hi,
I'm trying to build opencv from scratch on ubuntu 16.04 following instructions from here. (http://milq.github.io/install-opencv-ubuntu-debian/), but keep running into this libtiff error see below:> //usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFClose@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFDefaultStripSize@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFFdOpen@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFWriteScanline@LIBTIFF_4.0'
//usr/lib/x86_64-linux-gnu/libpoppler.so.58: undefined reference to `TIFFSetField@LIBTIFF_4.0'
To be sure I installed libtiff5-dev and it was already installed.
Looks like some version differences is there? If so how can I leave out this dependency and go on with compiling and building?
↧
↧
Cannot build OpenCV 3.1.0 from source with FFMPEG
I've been trying all week to build OpenCV 3.1.0 from sourcefor Python3.5 and Python2.7 on my local computer (Ubuntu 15.04 Vivid 64-bit), since there does not appear to be a compatible version available through aptitude. However, FFMPEG and libav are the impasses I cannot solve - several other issues with not finding HDF5 or Eigen3 I was able to fix relatively easily. Some of the tutorials and lessons I want to do use video as input, so I need to be the video tools working for OpenCV. I have been able to build OpenCV 3.1.0 successfully using the option `WITH_FFMPEG=OFF` and confirmed I could `import cv2` and use all of its non-video functions without a problem. I have tried installing ffmpeg and the libav dev libraries using aptitude as well as building FFMPEG from source. For the messages below, I'm using the FFMPEG I built myself.
The error I get is the following after calling `make` in the `~/github/opencv/build` directory:
make[2]: *** No rule to make target `/home/grant/github/ffmpeg/libavcodec.a`, needed by 'lib/libopencv_videoio.so.3.1.0'. Stop.
CMakeFiles/Makefile2:6038: 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
This is the error I want to solve. The rest of this post provides more information on what I've done and my setup. Note that FFMPEG I built from source (as well as libavcodec, libavfilter, libavutils, etc.) is in the `~/github/ffmpeg` directory.
When looking up this error, the most common suggestions involved static libraries and shared objects, namely that ffmpeg needed to be compiled with `--enable-shared` and `--disable-static` for the opencv build to work. This is why I built FFMPEG from source. Here's the output when I call `./ffmpeg` from the appropriate directory, confirming it was built with those options enabled: see the `configuration` line.
ffmpeg version N-80096-gdefab08 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
configuration: --enable-shared --disable-static
libavutil 55. 24.100 / 55. 24.100
libavcodec 57. 43.100 / 57. 43.100
libavformat 57. 37.100 / 57. 37.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 46.100 / 6. 46.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 0.101 / 2. 0.101
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
The subdirectories `libavcodec`, `libavfilter`, `libavutil`, `libavformat`, `libavdevice`, `libswscale`, and `libswresample` are all in the aforementioned `~/github/ffmpeg` directory. Each of those contains the `.so` shared object file created by `make`, which I *think* is what I should be using to build OpenCV, but it seems to be looking for static `.a` files (e.g. `libavcodec.a`), which is in my `/usr/lib/x86_64-linux-gnu/` directory. I **HAVE** tried pointing the `FFMPEG_LIB_DIR` option to this directory, but this just throws the same error at the same point in compilation. This is what also led me to building FFMPEG with the `--enable-shared` and `--disable-static` options. Should I instead enable static so that `make` creates the `.a` files?
Additionally, I cloned both the opencv and opencv_contrib projects from their respective github repos, then called `git checkout 3.1.0` on both. I suspect the fix I need to make is to add a rule to `Makefile2`specifying to use the `.so` libraries instead of `.a`, though I'm inexperienced with using `make` and with shared objects. Any suggestions for what to modify would be appreciated. For completeness, below is the configuration done by `cmake`. Note that at one point the configuration says `libavcodec`, `libavfilter`, `libavformat`, etc. modules are not found. I don't know if this is related to the error or how to fix it.
> Detected version of GNU GCC: 49 (409)> Found ZLIB:> /usr/lib/x86_64-linux-gnu/libz.so> (found suitable version "1.2.8",> minimum required is "1.2.3") Found> ZLIB:> /usr/lib/x86_64-linux-gnu/libz.so> (found version "1.2.8") Found> OpenEXR:> /usr/lib/x86_64-linux-gnu/libIlmImf.so> CMake Warning at> cmake/OpenCVFindLibsGUI.cmake:18> (find_package): By not providing> "FindQt5Core.cmake" in> CMAKE_MODULE_PATH this project has > asked CMake to find a package> configuration file provided by> "Qt5Core", but CMake did not find> one.>> Could not find a package> configuration file provided by> "Qt5Core" with any of the following> names:>> Qt5CoreConfig.cmake> qt5core-config.cmake>> Add the installation prefix of> "Qt5Core" to CMAKE_PREFIX_PATH or set > "Qt5Core_DIR" to a directory> containing one of the above files. If> "Qt5Core" provides a separate> development package or SDK, be sure it> has been installed. Call Stack (most> recent call first): > CMakeLists.txt:535 (include)>>> CMake Warning at> cmake/OpenCVFindLibsGUI.cmake:19> (find_package): By not providing> "FindQt5Gui.cmake" in> CMAKE_MODULE_PATH this project has > asked CMake to find a package> configuration file provided by> "Qt5Gui", but CMake did not find> one.>> Could not find a package> configuration file provided by> "Qt5Gui" with any of the following> names:>> Qt5GuiConfig.cmake> qt5gui-config.cmake>> Add the installation prefix of> "Qt5Gui" to CMAKE_PREFIX_PATH or set > "Qt5Gui_DIR" to a directory containing> one of the above files. If "Qt5Gui" > provides a separate development> package or SDK, be sure it has been > installed. Call Stack (most recent> call first): CMakeLists.txt:535> (include)>>> CMake Warning at> cmake/OpenCVFindLibsGUI.cmake:20> (find_package): By not providing> "FindQt5Widgets.cmake" in> CMAKE_MODULE_PATH this project has> asked CMake to find a package> configuration file provided by > "Qt5Widgets", but CMake did not find> one.>> Could not find a package> configuration file provided by> "Qt5Widgets" with any of the> following names:>> Qt5WidgetsConfig.cmake> qt5widgets-config.cmake>> Add the installation prefix of> "Qt5Widgets" to CMAKE_PREFIX_PATH or> set "Qt5Widgets_DIR" to a directory> containing one of the above files. If> "Qt5Widgets" provides a separate> development package or SDK, be sure it> has been installed. Call Stack (most> recent call first): > CMakeLists.txt:535 (include)>>> CMake Warning at> cmake/OpenCVFindLibsGUI.cmake:21> (find_package): By not providing> "FindQt5Test.cmake" in> CMAKE_MODULE_PATH this project has > asked CMake to find a package> configuration file provided by> "Qt5Test", but CMake did not find> one.>> Could not find a package> configuration file provided by> "Qt5Test" with any of the following> names:>> Qt5TestConfig.cmake> qt5test-config.cmake>> Add the installation prefix of> "Qt5Test" to CMAKE_PREFIX_PATH or set > "Qt5Test_DIR" to a directory> containing one of the above files. If> "Qt5Test" provides a separate> development package or SDK, be sure it> has been installed. Call Stack (most> recent call first): > CMakeLists.txt:535 (include)>>> CMake Warning at> cmake/OpenCVFindLibsGUI.cmake:22> (find_package): By not providing> "FindQt5Concurrent.cmake" in> CMAKE_MODULE_PATH this project has> asked CMake to find a package> configuration file provided by > "Qt5Concurrent", but CMake did not> find one.>> Could not find a package> configuration file provided by> "Qt5Concurrent" with any of the> following names:>> Qt5ConcurrentConfig.cmake> qt5concurrent-config.cmake>> Add the installation prefix of> "Qt5Concurrent" to CMAKE_PREFIX_PATH> or set "Qt5Concurrent_DIR" to a> directory containing one of the above> files. If "Qt5Concurrent" provides> a separate development package or SDK,> be sure it has been installed. Call> Stack (most recent call first): > CMakeLists.txt:535 (include)>>> checking for module> 'gstreamer-base-1.0' package> 'gstreamer-base-1.0' not found> checking for module> 'gstreamer-video-1.0' package> 'gstreamer-video-1.0' not found> checking for module> 'gstreamer-app-1.0' package> 'gstreamer-app-1.0' not found checking> for module 'gstreamer-riff-1.0' > package 'gstreamer-riff-1.0' not found> checking for module> 'gstreamer-pbutils-1.0' package> 'gstreamer-pbutils-1.0' not found> checking for module> 'gstreamer-base-0.10' package> 'gstreamer-base-0.10' not found> checking for module> 'gstreamer-video-0.10' package> 'gstreamer-video-0.10' not found> checking for module> 'gstreamer-app-0.10' package> 'gstreamer-app-0.10' not found> checking for module> 'gstreamer-riff-0.10' package> 'gstreamer-riff-0.10' not found> checking for module> 'gstreamer-pbutils-0.10' package> 'gstreamer-pbutils-0.10' not found> checking for module 'libdc1394-2' > package 'libdc1394-2' not found> checking for module 'libdc1394' > package 'libdc1394' not found checking> for module 'libv4l1' package> 'libv4l1' not found checking for> module 'libv4l2' package 'libv4l2'> not found Looking for linux/videodev.h> Looking for linux/videodev.h - not> found Looking for linux/videodev2.h> Looking for linux/videodev2.h - found> Looking for sys/videoio.h Looking for> sys/videoio.h - not found checking for> module 'libavcodec' package> 'libavcodec' not found checking for> module 'libavformat' package> 'libavformat' not found checking for> module 'libavutil' package> 'libavutil' not found checking for> module 'libswscale' package> 'libswscale' not found checking for> module 'libavresample' package> 'libavresample' not found Looking for> libavformat/avformat.h Looking for> libavformat/avformat.h - found Looking> for ffmpeg/avformat.h Looking for> ffmpeg/avformat.h - not found checking> for module 'libgphoto2' package> 'libgphoto2' not found found IPP (ICV> version): 9.0.1 [9.0.1] at:> /home/grant/github/opencv/3rdparty/ippicv/unpack/ippicv_lnx> Could NOT find Doxygen (missing: > DOXYGEN_EXECUTABLE) To enable> PlantUML support, set PLANTUML_JAR> environment variable or pass> -DPLANTUML_JAR= option to cmake Found PythonInterp:> /usr/bin/python2.7 (found suitable> version "2.7.9", minimum required is> "2.7") Found PythonLibs:> /usr/lib/x86_64-linux-gnu/libpython2.7.so> (found suitable exact version "2.7.9")> Found PythonInterp:> /usr/local/bin/python3.5 (found> suitable version "3.5", minimum> required is "3.4") Found PythonLibs:> /usr/lib/x86_64-linux-gnu/libpython3.4m.so> (found suitable exact version "3.5.0")> VTK is not found. Please set -DVTK_DIR> in CMake to VTK build directory, or to> VTK install subdirectory with> VTKConfig.cmake file Caffe: NO> Protobuf: NO Glog: NO HDF5: YES> Module opencv_sfm disabled because the> following dependencies are not found:> Glog/Gflags Tesseract: NO HDF5: > YES Could NOT find PROTOBUF (missing: > PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)> Build libprotobuf from sources:> libprotobuf not found into system> The protocol buffer compiler not found Tesseract: NO>> General configuration for OpenCV 3.1.0> ===================================== Version control: 3.1.0>> Platform:> Host: Linux 3.19.0-25-generic x86_64> CMake: 3.0.2> CMake generator: Unix Makefiles> CMake build tool: /usr/bin/make> Configuration: RELEASE>> C/C++:> Built as dynamic libs?: YES> C++ Compiler: /usr/bin/c++ (ver 4.9.2)> C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG> C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG> C Compiler: /usr/bin/cc> C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG> C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG> Linker flags (Release): > Linker flags (Debug): > Precompiled headers: YES> Extra dependencies: /usr/lib/x86_64-linux-gnu/libQtGui.so> /usr/lib/x86_64-linux-gnu/libQtTest.so> /usr/lib/x86_64-linux-gnu/libQtCore.so> /usr/lib/x86_64-linux-gnu/libpng.so> /usr/lib/x86_64-linux-gnu/libtiff.so> /usr/lib/x86_64-linux-gnu/libjasper.so> /usr/lib/x86_64-linux-gnu/libjpeg.so> /usr/lib/x86_64-linux-gnu/libImath.so> /usr/lib/x86_64-linux-gnu/libIlmImf.so> /usr/lib/x86_64-linux-gnu/libIex.so> /usr/lib/x86_64-linux-gnu/libHalf.so> /usr/lib/x86_64-linux-gnu/libIlmThread.so> /home/grant/github/ffmpeg//libavcodec.a> /home/grant/github/ffmpeg//libavformat.a> /home/grant/github/ffmpeg//libavutil.a> /home/grant/github/ffmpeg//libswscale.a> /home/grant/github/ffmpeg//libavresample.a> /usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so> /usr/lib/x86_64-linux-gnu/libpthread.so> /usr/lib/x86_64-linux-gnu/libz.so> /usr/lib/x86_64-linux-gnu/libdl.so> /usr/lib/x86_64-linux-gnu/libm.so dl m> pthread rt> 3rdparty dependencies: libwebp libprotobuf>> OpenCV modules:> To be built: core flann hdf imgproc ml photo reg> surface_matching video dnn fuzzy> imgcodecs shape videoio highgui> objdetect plot superres ts xobjdetect> xphoto bgsegm bioinspired dpm face> features2d line_descriptor saliency> text calib3d ccalib datasets rgbd> stereo structured_light tracking> videostab xfeatures2d ximgproc aruco> optflow stitching python2 python3> Disabled: world contrib_world> Disabled by dependency: -> Unavailable: cudaarithm cudabgsegm cudacodec> cudafeatures2d cudafilters cudaimgproc> cudalegacy cudaobjdetect cudaoptflow> cudastereo cudawarping cudev java viz> cvv matlab sfm>> GUI: > QT 4.x: YES (ver 4.8.6 EDITION = OpenSource)> QT OpenGL support: NO> OpenGL support: NO> VTK support: NO>> Media I/O: > ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver> 1.2.8)> JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so> (ver )> WEBP: build (ver 0.3.1)> PNG: /usr/lib/x86_64-linux-gnu/libpng.so> (ver 1.2.51)> TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so> (ver 42 - 4.0.3)> JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so> (ver 1.900.1)> OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so> /usr/lib/x86_64-linux-gnu/libIlmImf.so> /usr/lib/x86_64-linux-gnu/libIex.so> /usr/lib/x86_64-linux-gnu/libHalf.so> /usr/lib/x86_64-linux-gnu/libIlmThread.so> (ver Unknown)> GDAL: NO>> Video I/O:> DC1394 1.x: NO> DC1394 2.x: NO> FFMPEG: YES> codec: YES (ver Unknown)> format: YES (ver Unknown)> util: YES (ver Unknown)> swscale: YES (ver Unknown)> resample: YES (ver Unknown)> gentoo-style: YES> GStreamer: NO> OpenNI: NO> OpenNI PrimeSensor Modules: NO> OpenNI2: NO> PvAPI: NO> GigEVisionSDK: NO> UniCap: NO> UniCap ucil: NO> V4L/V4L2: NO/YES> XIMEA: NO> Xine: NO> gPhoto2: NO>> Parallel framework: > pthreads>> Other third-party libraries:> Use IPP: 9.0.1 [9.0.1]> at: /home/grant/github/opencv/3rdparty/ippicv/unpack/ippicv_lnx> Use IPP Async: NO> Use VA: NO> Use Intel VA-API/OpenCL: NO> Use Eigen: YES (ver 3.2.2)> Use Cuda: NO> Use OpenCL: YES> Use custom HAL: NO>> OpenCL:> Version: dynamic> Include path: /home/grant/github/opencv/3rdparty/include/opencl/1.2> Use AMDFFT: NO> Use AMDBLAS: NO>> Python 2:> Interpreter: /usr/bin/python2.7 (ver 2.7.9)> Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so> (ver 2.7.9)> numpy: /usr/local/lib/python2.7/dist-packages/numpy/core/include> (ver 1.11.0)> packages path: lib/python2.7/dist-packages>> Python 3:> Interpreter: /usr/local/bin/python3.5 (ver 3.5)> Libraries: /usr/lib/x86_64-linux-gnu/libpython3.4m.so> (ver 3.5.0)> numpy: /usr/local/lib/python3.5/site-packages/numpy/core/include> (ver 1.11.0)> packages path: /usr/local/lib/python3.5/site-packages>> Python (for build): > /usr/bin/python2.7>> Java:> ant: NO> JNI: /usr/lib/jvm/default-java/include> /usr/lib/jvm/default-java/include> /usr/lib/jvm/default-java/include> Java wrappers: NO> Java tests: NO>> Matlab: NO>> Documentation:> Doxygen: NO> PlantUML: NO>> Tests and samples:> Tests: YES> Performance tests: YES> C/C++ Examples: YES>> Install path: > /usr/local>> cvconfig.h is in: > /home/grant/github/opencv/build> ----------------------------------------------------------------->> Configuring done Generating done
↧
OpenCV 3.1 Build for multiple virtual machines
If I build openc 3.1 on Ubuntu 14.04 with default jdk do I have to build it again to use on another virtual machine if the OS version is the same?
↧
OpenCV 3.0 Build Error Cuda 8.0
I've pulled the newest version of OpenCV (3.0?) from GitHub, as well as the additional opencv_modules. I'm attempting to build with the following build flags, but am getting an error. Does this error look like it's from the CUDA 8.0 Toolkit, or from OpenCV? Additionally, is there anything I can do to fix it?
Build:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=/home/hades/Downloads/opencv/opencv_contrib/modules -D PYTHON3_EXECUTABLE=/usr/bin/python3 -D PYTHON_INCLUDE_DIR=/usr/include/python3.5 -D PYTHON_INCLUDE_DIR2=/usr/include/x86_64-linux-gnu/python3.5m -D PYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.5m.so -D PYTHON3_NUMPY_INCLUDE_DIRS=/usr/local/lib/python3.5/dist-packages/numpy/core/include -D WITH_TBB=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 -D CUDA_ARCH_BIN="5.0" -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_EXAMPLES=OFF /home/hades/Downloads/opencv/opencv
Complete error text below. I think the important lines are as follows:
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(127): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(98): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
Full:
[ 87%] Built target opencv_traincascade
[ 87%] Building CXX object modules/optflow/CMakeFiles/opencv_optflow.dir/src/sparsetodenseflow.cpp.o
[ 87%] Building CXX object modules/optflow/CMakeFiles/opencv_optflow.dir/src/optical_flow_io.cpp.o
[ 87%] Linking CXX shared library ../../lib/libopencv_ccalib.so
[ 87%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_match_template.cu.o
[ 87%] Built target opencv_ccalib
[ 87%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_bilateral_filter.cu.o
[ 87%] Building CXX object modules/optflow/CMakeFiles/opencv_optflow.dir/opencl_kernels_optflow.cpp.o
[ 87%] Building NVCC (Device) object modules/cudastereo/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_util.cu.o
[ 87%] Linking CXX shared library ../../lib/libopencv_optflow.so
[ 87%] Built target opencv_optflow
[ 87%] Building NVCC (Device) object modules/cudastereo/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_stereocsbp.cu.o
[ 87%] Building NVCC (Device) object modules/cudastereo/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_disparity_bilateral_filter.cu.o
[ 87%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gftt.cu.o
[ 89%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_clahe.cu.o
[ 89%] Building NVCC (Device) object modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_debayer.cu.o
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(127): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
detected during:
instantiation of "void thrust::reference::assign_from(OtherPointer) [with Element=float2, Pointer=thrust::pointer, thrust::use_default, thrust::use_default>, Derived=thrust::use_default, OtherPointer=const float2 *]"
(65): here
instantiation of "thrust::reference::derived_type &thrust::reference::operator=(const thrust::reference::value_type &) [with Element=float2, Pointer=thrust::pointer, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/block/copy.h(209): here
instantiation of "RandomAccessIterator2 thrust::system::cuda::detail::block::async_copy_n(Context &, RandomAccessIterator1, Size, RandomAccessIterator2) [with Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, RandomAccessIterator1=float2 *, Size=unsigned int, RandomAccessIterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/block/copy.h(220): here
instantiation of "RandomAccessIterator2 thrust::system::cuda::detail::block::copy_n(Context &, RandomAccessIterator1, Size, RandomAccessIterator2) [with Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, RandomAccessIterator1=float2 *, Size=unsigned int, RandomAccessIterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/stable_sort_each.inl(258): here
instantiation of "void thrust::system::cuda::detail::detail::stable_sort_each_detail::stable_sort_each_copy_closure::operator()(RandomAccessIterator) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, RandomAccessIterator1=thrust::device_ptr, Size=signed long, RandomAccessIterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Compare=cv::cuda::device::gfft::EigGreater, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/virtualized_smem_closure.h(55): here
[ 11 instantiation contexts not shown ]
instantiation of "thrust::system::cuda::detail::stable_sort_detail::enable_if_comparison_sort::type thrust::system::cuda::detail::stable_sort_detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/sort.inl(213): here
instantiation of "void thrust::system::cuda::detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(83): here
instantiation of "void thrust::stable_sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/detail/generic/sort.inl(63): here
instantiation of "void thrust::system::detail::generic::sort(thrust::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(56): here
instantiation of "void thrust::sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/home/hades/Downloads/opencv/opencv/modules/cudaimgproc/src/cuda/gftt.cu(139): here
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(98): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
detected during:
instantiation of "thrust::reference::operator thrust::reference::value_type() const [with Element=thrust::detail::uint32_t, Pointer=thrust::pointer, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/stable_merge_sort.inl(209): here
instantiation of "void thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure::operator()(RandomAccessIterator) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, Size=thrust::detail::uint32_t, Iterator1=thrust::device_ptr, Iterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Iterator3=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Compare=cv::cuda::device::gfft::EigGreater, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/virtualized_smem_closure.h(55): here
instantiation of "void thrust::system::cuda::detail::detail::virtualized_smem_closure::operator()() [with Closure=thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure<7U, thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, thrust::detail::uint32_t, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(52): here
instantiation of "void thrust::system::cuda::detail::detail::launch_closure_by_value(Closure) [with Closure=thrust::system::cuda::detail::detail::virtualized_smem_closure, thrust::detail::uint32_t, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, float2 *>]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(81): here
instantiation of "thrust::system::cuda::detail::detail::closure_launcher_base::launch_function_t thrust::system::cuda::detail::detail::closure_launcher_base::get_launch_function() [with Closure=thrust::system::cuda::detail::detail::virtualized_smem_closure, thrust::detail::uint32_t, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, float2 *>, launch_by_value=true]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(89): here
[ 8 instantiation contexts not shown ]
instantiation of "thrust::system::cuda::detail::stable_sort_detail::enable_if_comparison_sort::type thrust::system::cuda::detail::stable_sort_detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/sort.inl(213): here
instantiation of "void thrust::system::cuda::detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(83): here
instantiation of "void thrust::stable_sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/detail/generic/sort.inl(63): here
instantiation of "void thrust::system::detail::generic::sort(thrust::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(56): here
instantiation of "void thrust::sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/home/hades/Downloads/opencv/opencv/modules/cudaimgproc/src/cuda/gftt.cu(139): here
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(98): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
detected during:
instantiation of "thrust::reference::operator thrust::reference::value_type() const [with Element=float2, Pointer=thrust::pointer, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/block/copy.h(243): here
instantiation of "RandomAccessIterator2 thrust::system::cuda::detail::block::async_copy_n_global_to_shared(Context &, RandomAccessIterator1, Size, RandomAccessIterator2) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, RandomAccessIterator1=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Size=unsigned int, RandomAccessIterator2=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/stable_merge_sort.inl(113): here
instantiation of "void thrust::system::cuda::detail::detail::stable_merge_sort_detail::block::staged_bounded_merge(Context &, Iterator1, Size1, Iterator2, Size2, Iterator3, Iterator4, Compare) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, Iterator1=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Size1=unsigned int, Iterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Size2=unsigned int, Iterator3=float2 *, Iterator4=thrust::device_ptr, Compare=thrust::detail::wrapped_function]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/stable_merge_sort.inl(216): here
instantiation of "void thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure::operator()(RandomAccessIterator) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, Size=thrust::detail::uint32_t, Iterator1=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Iterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Iterator3=thrust::device_ptr, Compare=cv::cuda::device::gfft::EigGreater, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/virtualized_smem_closure.h(55): here
instantiation of "void thrust::system::cuda::detail::detail::virtualized_smem_closure::operator()() [with Closure=thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure<7U, thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, thrust::detail::uint32_t, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::device_ptr, cv::cuda::device::gfft::EigGreater>, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(52): here
[ 10 instantiation contexts not shown ]
instantiation of "thrust::system::cuda::detail::stable_sort_detail::enable_if_comparison_sort::type thrust::system::cuda::detail::stable_sort_detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/sort.inl(213): here
instantiation of "void thrust::system::cuda::detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(83): here
instantiation of "void thrust::stable_sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/detail/generic/sort.inl(63): here
instantiation of "void thrust::system::detail::generic::sort(thrust::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(56): here
instantiation of "void thrust::sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/home/hades/Downloads/opencv/opencv/modules/cudaimgproc/src/cuda/gftt.cu(139): here
/usr/local/cuda-8.0/include/thrust/detail/reference.inl(98): error: no default constructor exists for class "thrust::detail::execute_with_allocator"
detected during:
instantiation of "thrust::reference::operator thrust::reference::value_type() const [with Element=signed long, Pointer=thrust::pointer, thrust::use_default, thrust::use_default>, Derived=thrust::use_default]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/stable_merge_sort.inl(209): here
instantiation of "void thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure::operator()(RandomAccessIterator) [with work_per_thread=7U, Context=thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, Size=signed long, Iterator1=thrust::device_ptr, Iterator2=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Iterator3=thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, Compare=cv::cuda::device::gfft::EigGreater, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/virtualized_smem_closure.h(55): here
instantiation of "void thrust::system::cuda::detail::detail::virtualized_smem_closure::operator()() [with Closure=thrust::system::cuda::detail::detail::stable_merge_sort_detail::merge_adjacent_partitions_closure<7U, thrust::system::cuda::detail::detail::statically_blocked_thread_array<256U>, signed long, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, RandomAccessIterator=float2 *]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(52): here
instantiation of "void thrust::system::cuda::detail::detail::launch_closure_by_value(Closure) [with Closure=thrust::system::cuda::detail::detail::virtualized_smem_closure, signed long, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, float2 *>]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(81): here
instantiation of "thrust::system::cuda::detail::detail::closure_launcher_base::launch_function_t thrust::system::cuda::detail::detail::closure_launcher_base::get_launch_function() [with Closure=thrust::system::cuda::detail::detail::virtualized_smem_closure, signed long, thrust::device_ptr, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, thrust::detail::normal_iterator, thrust::use_default, thrust::use_default>>, cv::cuda::device::gfft::EigGreater>, float2 *>, launch_by_value=true]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/detail/launch_closure.inl(89): here
[ 8 instantiation contexts not shown ]
instantiation of "thrust::system::cuda::detail::stable_sort_detail::enable_if_comparison_sort::type thrust::system::cuda::detail::stable_sort_detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/cuda/detail/sort.inl(213): here
instantiation of "void thrust::system::cuda::detail::stable_sort(thrust::system::cuda::detail::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(83): here
instantiation of "void thrust::stable_sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/system/detail/generic/sort.inl(63): here
instantiation of "void thrust::system::detail::generic::sort(thrust::execution_policy&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/usr/local/cuda-8.0/include/thrust/detail/sort.inl(56): here
instantiation of "void thrust::sort(const thrust::detail::execution_policy_base&, RandomAccessIterator, RandomAccessIterator, StrictWeakOrdering) [with DerivedPolicy=thrust::detail::execute_with_allocator, RandomAccessIterator=thrust::device_ptr, StrictWeakOrdering=cv::cuda::device::gfft::EigGreater]"
/home/hades/Downloads/opencv/opencv/modules/cudaimgproc/src/cuda/gftt.cu(139): here
4 errors detected in the compilation of "/tmp/tmpxft_00000fac_00000000-9_gftt.compute_30.cpp1.ii".
CMake Error at cuda_compile_generated_gftt.cu.o.cmake:266 (message):
Error generating file
/home/hades/Downloads/opencv/build/modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gftt.cu.o
modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/build.make:98: recipe for target 'modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gftt.cu.o' failed
make[2]: *** [modules/cudaimgproc/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gftt.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 89%] Building NVCC (Device) object modules/cudafeatures2d/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_fast.cu.o
[ 89%] Building NVCC (Device) object modules/cudafeatures2d/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_bf_radius_match.cu.o
[ 89%] Building NVCC (Device) object modules/cudafeatures2d/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_bf_knnmatch.cu.o
Scanning dependencies of target opencv_cudastereo
[ 89%] Building CXX object modules/cudastereo/CMakeFiles/opencv_cudastereo.dir/src/disparity_bilateral_filter.cpp.o
[ 89%] Building CXX object modules/cudastereo/CMakeFiles/opencv_cudastereo.dir/src/stereocsbp.cpp.o
[ 89%] Building CXX object modules/cudastereo/CMakeFiles/opencv_cudastereo.dir/src/stereobp.cpp.o
[ 89%] Building CXX object modules/cudastereo/CMakeFiles/opencv_cudastereo.dir/src/util.cpp.o
[ 89%] Building CXX object modules/cudastereo/CMakeFiles/opencv_cudastereo.dir/src/stereobm.cpp.o
CMakeFiles/Makefile2:3651: recipe for target 'modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all' failed
make[1]: *** [modules/cudaimgproc/CMakeFiles/opencv_cudaimgproc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 89%] Linking CXX shared library ../../lib/libopencv_cudastereo.so
[ 89%] Built target opencv_cudastereo
Scanning dependencies of target opencv_cudafeatures2d
[ 89%] Building CXX object modules/cudafeatures2d/CMakeFiles/opencv_cudafeatures2d.dir/src/feature2d_async.cpp.o
[ 89%] Building CXX object modules/cudafeatures2d/CMakeFiles/opencv_cudafeatures2d.dir/src/fast.cpp.o
[ 89%] Building CXX object modules/cudafeatures2d/CMakeFiles/opencv_cudafeatures2d.dir/src/orb.cpp.o
[ 89%] Building CXX object modules/cudafeatures2d/CMakeFiles/opencv_cudafeatures2d.dir/src/brute_force_matcher.cpp.o
[ 90%] Linking CXX shared library ../../lib/libopencv_cudafeatures2d.so
[ 90%] Built target opencv_cudafeatures2d
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
↧
OpenCV 2.4.13 Does not build with CUDA 4.2
The most recent OpenCV build on github says that the minimum CUDA version is 4.2 (`opencv/cmake/OpenCVMinDepVersions.cmake`), but `modules/cudaarithm/src/cuda/lut.cu` utilizes the cudaTextureObject feature which was introduced in CUDA 5.0.
↧
↧
Can't build opencv headers and libraries in eclipse CDT luna + windows
Hi
I've followed all the steps in [this](http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html) up to the point that I need to build the project and get the headers and binary files to add to my projects. But when I try to build the project in eclipse, I get the following error:
error: .../tif_stream.cxx:367:49:cast from 'tiffos_data*' to 'thandle_t {aka int}' loses precision [-fpermissive]
What should I do to make the project?
Thank you in advance
↧
Opencv 3.1 build error
Hi, I am trying to build opencv-3.1 from source using Visual studio 2013. I have followed the procedure of installing opencv-3.1 from http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html#gsc.tab=0
When building it from VS 2013 in debug/release mode, it gives following build errors:
Error 5799 error LNK1104: cannot open file '..\..\lib\Debug\opencv_cudaobjdetect310d.lib' C:\opencv3\opencv\build\samples\cpp\LINK (TUTORIAL) imageSegmentation
**opencv_cudaobjdetect310d.lib** is creating problem.
And many more like this.
My laptop: **Win8.1 64 bit, Nvidia Geforce 940M Graphics Card, Cuda tookit 7.5, Python 2.7.12, Numpy 1.11.1.**
I want to build opencv with CUDA only, so please somebody help in solving my issue.
**My CMake Configuration Output is**:
Windows RT support: NO
GUI:
QT: NO
Win32 UI: YES
OpenGL support: YES (glu32 opengl32)
VTK support: NO
Media I/O:
ZLib: build (ver 1.2.8)
JPEG: build (ver 90)
WEBP: build (ver 0.3.1)
PNG: build (ver 1.6.19)
TIFF: build (ver 42 - 4.0.2)
JPEG 2000: build (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
Video I/O:
Video for Windows: YES
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: YES (prebuilt binaries)
codec: YES (ver 56.41.100)
format: YES (ver 56.36.101)
util: YES (ver 54.27.100)
swscale: YES (ver 3.1.101)
resample: NO
gentoo-style: YES
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: YES (ver 2.2.0, build 33)
PvAPI: NO
GigEVisionSDK: NO
DirectShow: YES
Media Foundation: NO
XIMEA: NO
Intel PerC: NO
Parallel framework: Concurrency
Other third-party libraries:
Use IPP: 9.0.1 [9.0.1]
at: C:/opencv3/opencv/3rdparty/ippicv/unpack/ippicv_win
Use IPP Async: NO
Use Eigen: YES (ver 3.2.8)
Use Cuda: YES (ver 7.5)
Use OpenCL: YES
Use custom HAL: NO
NVIDIA CUDA
Use CUFFT: YES
Use CUBLAS: NO
USE NVCUVID: NO
NVIDIA GPU arch: 20 30 35 50
NVIDIA PTX archs:
Use fast math: NO
OpenCL:
Include path: C:/opencv3/opencv/3rdparty/include/opencl/1.2
Use AMDFFT: NO
Use AMDBLAS: NO
Python 2:
Interpreter: C:/Python27/python.exe (ver 2.7.12)
Python 3:
Interpreter: NO
Python (for build): C:/Python27/python.exe
Java:
ant: NO
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: Matlab not found or implicitly disabled
Documentation:
Doxygen: NO
PlantUML: NO
Tests and samples:
Tests: YES
Performance tests: YES
C/C++ Examples: YES
Install path: C:/opencv3/opencv/build/install
cvconfig.h is in: C:/opencv3/opencv/build
-----------------------------------------------------------------
Configuring done
↧
sys/videoio.h: No such file or directory
Hi, when I try to install opencv and run this code
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
So,I got an error sys/videoio.h: No such file or directory.See the output.
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR=
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.6", minimum required is "2.7")
-- Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (found suitable exact version "2.7.6")
-- Found PythonInterp: /usr/bin/python3.4 (found suitable version "3.4.3", minimum required is "3.4")
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES) (Required is exact version "3.4.3")
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK support is disabled. Possible incompatible combination: OpenCV+Qt5, and VTK ver.6.0.0 with Qt4
-- If it is known that VTK was compiled without Qt4, please define '-DFORCE_VTK=TRUE' flag in CMake
CMake Error at cmake/OpenCVModule.cmake:295 (message):
No extra modules found in folder: /home/MY_NAME/opencv_contrib/modules
Please provide path to 'opencv_contrib/modules' folder.
Call Stack (most recent call first):
modules/CMakeLists.txt:7 (ocv_glob_modules)
--
-- General configuration for OpenCV 3.1.0 =====================================
-- Version control: unknown
--
-- Platform:
-- Host: Linux 4.2.0-35-generic x86_64
-- CMake: 2.8.12.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/make
-- Configuration: RELEASE
--
-- C/C++:
-- Built as dynamic libs?: NO
-- C++ Compiler: /usr/bin/c++ (ver 4.8.4)
-- C++ flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fPIC -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: YES
-- Extra dependencies: Qt5::Core Qt5::Gui Qt5::Widgets Qt5::Test Qt5::Concurrent Qt5::OpenGL /usr/lib/x86_64-linux-gnu/libwebp.so /usr/lib/x86_64-linux-gnu/libpng.so /usr/lib/x86_64-linux-gnu/libz.so /usr/lib/x86_64-linux-gnu/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so gstvideo-1.0 gstapp-1.0 gstbase-1.0 gstriff-1.0 gstpbutils-1.0 gstreamer-1.0 gobject-2.0 glib-2.0 dc1394 xine v4l1 v4l2 gphoto2 gphoto2_port exif stdc++ dl m pthread rt /usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so tbb
-- 3rdparty dependencies:
--
-- OpenCV modules:
-- To be built: core flann imgproc ml photo video imgcodecs shape videoio highgui objdetect superres ts features2d calib3d stitching videostab
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev java python2 python3 viz
--
-- GUI:
-- QT 5.x: YES (ver 5.2.1)
-- QT OpenGL support: YES (Qt5::OpenGL 5.2.1)
-- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so)
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
-- JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (ver )
-- WEBP: /usr/lib/x86_64-linux-gnu/libwebp.so (ver encoder: 0x0202)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.50)
-- TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (ver 42 - 4.0.3)
-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
-- OpenEXR: /usr/lib/x86_64-linux-gnu/libImath.so /usr/lib/x86_64-linux-gnu/libIlmImf.so /usr/lib/x86_64-linux-gnu/libIex.so /usr/lib/x86_64-linux-gnu/libHalf.so /usr/lib/x86_64-linux-gnu/libIlmThread.so (ver 1.6.1)
-- GDAL: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.1)
-- FFMPEG: NO
-- codec: NO
-- format: NO
-- util: NO
-- swscale: NO
-- resample: NO
-- gentoo-style: NO
-- GStreamer:
-- base: YES (ver 1.8.0)
-- video: YES (ver 1.2.4)
-- app: YES (ver 1.2.4)
-- riff: YES (ver 1.2.4)
-- pbutils: YES (ver 1.2.4)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: Using libv4l1 (ver 1.0.1) / libv4l2 (ver 1.0.1)
-- XIMEA: NO
-- Xine: YES (ver 1.1.21)
-- gPhoto2: YES
--
-- Parallel framework: TBB (ver 4.2 interface 7000)
--
-- Other third-party libraries:
-- Use IPP: NO
-- Use IPP Async: NO
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Eigen: YES (ver 3.2.0)
-- Use Cuda: NO
-- Use OpenCL: YES
-- Use custom HAL: NO
--
-- OpenCL:
-- Version: dynamic
-- Include path: /home/tirth/opencv/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /usr/bin/python2.7 (ver 2.7.6)
-- Libraries: NO
-- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3.4 (ver 3.4.3)
-- Libraries: NO
-- numpy: /usr/lib/python3/dist-packages/numpy/core/include (ver 1.8.2)
-- packages path: lib/python3.4/dist-packages
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include
-- Java wrappers: NO
-- Java tests: NO
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: /usr/bin/doxygen (ver 1.8.6)
-- PlantUML: NO
--
-- Tests and samples:
-- Tests: NO
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/tirth/opencv/build
-- -----------------------------------------------------------------
--
-- Configuring incomplete, errors occurred!
See also "/home/tirth/opencv/build/CMakeFiles/CMakeOutput.log".
See also "/home/tirth/opencv/build/CMakeFiles/CMakeError.log".
Any help would be highly appreciated.
↧
imread not working in opencv2.4.13 on centos6.5
Hello All
I built opencv2.4.13 from source in RELEASE mode like so:
>> I created a directory named 'build' inside the folder and from inside the 'build' ran cmake :
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/ssomesh/usr/local/opencv -D WITH_CUDA=ON ..
This I followed with
>>>> make; sudo make install
When I run the sample code provided in the 'samples' folder by openCV, it is able to read and display images. However when I compile my program, the imread() function does not seem to work.
Here's the code that is throwing error:
#include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui.hpp" using namespace cv; using namespace std; int main( int argc, char** argv ) { if( argc != 2) { printf(" Usage: display_image ImageToLoadAndDisplay\n"); return -1; } Mat image; image = imread(argv[1], CV_LOAD_IMAGE_UNCHANGED); // Read the file if( image.empty() ) // Check for invalid input { cout << "Could not open or find the image" << std::endl ; return -1; } namedWindow( "Display window", WINDOW_AUTOSIZE );// Create a window for display. imshow( "Display window", image ); // Show our image inside it. waitKey(0); // Wait for a keystroke in the window return 0; } I compile my code like this: >> g++ read-display-images.cpp -o read-display-images \`pkg-config opencv --cflags --libs\` The code compiles fine. But every time I run it, it exits and displays >> Could not open or find the image The image is in the same folder as the source and the executable. I want help in resolving the issue. Is there a problem with the configuration during the build, or else am I not setting some flags correctly? Any help is greatly appreciated. Thanks.
↧
↧
OpenCV3, Python3, Missing xFeatures
On Ubuntu 16.04 trying to build OpenCV3.1.0 with the contrib module. I have a clean build with CUDA fully enabled (which is awesome!). I can get the python 3.x bindings to build without issue, but can not seem to get xfeatures2d bindings to be built.
I see that Python2 is unavailable, but am not concerned as I am trying to get bindings for Python 3. Otherwise, the config looks reasonable (I think?). Perhaps I am missing something pretty basic in the config?
CMAKE:
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=ON \
-D WITH_V4L=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D WITH_CUDA=ON \
-D ENABLE_FAST_MATH=1 \
-D CUDA_FAST_MATH=1 \
-D CUDA_NVCC_FLAGS="-D_FORCE_INLINES" \
-D WITH_CUBLAS=1 \
-D OPENCV_EXTRAS_MODULES_PATH=../../opencv_contrib-3.1.0/modules \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_OPENCV_PYTHON3=1 \
-D PYTHON3_EXECUTABLE=$(which python3) \
-D PYTHON3_INCLUDE_DIR=$(python3 -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") \
-D PYTHON3_LIBRARIES=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") \
-D PYTHON3_LIBRARY=/home/jlaura/anaconda3/lib/libpython3.5m.so ..
cv2.getBuildInformation()
General configuration for OpenCV 3.1.0 =====================================
Version control: unknown
Platform:
Host: Linux 4.4.0-34-generic x86_64
CMake: 3.5.1
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: RELEASE
C/C++:
Built as dynamic libs?: YES
C++ Compiler: /usr/bin/g++-4.8 (ver 4.8.5)
C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
C Compiler: /usr/bin/gcc-4.8
C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
Linker flags (Release):
Linker flags (Debug):
Precompiled headers: YES
Extra dependencies: /home/jlaura/anaconda3/lib/libQtGui.so /home/jlaura/anaconda3/lib/libQtTest.so /home/jlaura/anaconda3/lib/libQtCore.so /home/jlaura/anaconda3/lib/libpng.so /home/jlaura/anaconda3/lib/libz.so /home/jlaura/anaconda3/lib/libtiff.so /usr/lib/x86_64-linux-gnu/libjasper.so /home/jlaura/anaconda3/lib/libjpeg.so v4l1 v4l2 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg dl m pthread rt cudart nppc nppi npps cublas cufft -L/usr/local/cuda-7.5/lib64
3rdparty dependencies: libwebp IlmImf
OpenCV modules:
To be built: cudev core cudaarithm flann imgproc ml video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui objdetect features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab python3
Disabled: world
Disabled by dependency: -
Unavailable: java python2 ts viz
GUI:
QT 4.x: YES (ver 4.8.7 EDITION = OpenSource)
QT OpenGL support: NO
OpenGL support: NO
VTK support: NO
Media I/O:
ZLib: /home/jlaura/anaconda3/lib/libz.so (ver 1.2.8)
JPEG: /home/jlaura/anaconda3/lib/libjpeg.so (ver 80)
WEBP: build (ver 0.3.1)
PNG: /home/jlaura/anaconda3/lib/libpng.so (ver 1.6.17)
TIFF: /home/jlaura/anaconda3/lib/libtiff.so (ver 42 - 4.0.6)
JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)
OpenEXR: build (ver 1.7.1)
GDAL: NO
Video I/O:
DC1394 1.x: NO
DC1394 2.x: NO
FFMPEG: YES
codec: YES (ver 56.60.100)
format: YES (ver 56.40.101)
util: YES (ver 54.31.100)
swscale: YES (ver 3.1.101)
resample: NO
gentoo-style: YES
GStreamer: NO
OpenNI: NO
OpenNI PrimeSensor Modules: NO
OpenNI2: NO
PvAPI: NO
GigEVisionSDK: NO
UniCap: NO
UniCap ucil: NO
V4L/V4L2: Using libv4l1 (ver 1.10.0) / libv4l2 (ver 1.10.0)
XIMEA: NO
Xine: NO
gPhoto2: NO
Parallel framework: pthreads
Other third-party libraries:
Use IPP: 9.0.1 [9.0.1]
at: /usr/local/src/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx
Use IPP Async: NO
Use VA: NO
Use Intel VA-API/OpenCL: NO
Use Eigen: NO
Use Cuda: YES (ver 7.5)
Use OpenCL: YES
Use custom HAL: NO
NVIDIA CUDA
Use CUFFT: YES
Use CUBLAS: YES
USE NVCUVID: NO
NVIDIA GPU arch: 20 21 30 35
NVIDIA PTX archs: 30
Use fast math: YES
OpenCL:
Version: dynamic
Include path: /usr/local/src/opencv-3.1.0/3rdparty/include/opencl/1.2
Use AMDFFT: NO
Use AMDBLAS: NO
Python 2:
Interpreter: /usr/bin/python2.7 (ver 2.7.12)
Python 3:
Interpreter: /home/jlaura/anaconda3/bin/python3 (ver 3.5.1)
Libraries: /home/jlaura/anaconda3/lib/libpython3.5m.so (ver 3.5.1)
numpy: /home/jlaura/anaconda3/lib/python3.5/site-packages/numpy/core/include (ver 1.11.1)
packages path: lib/python3.5/site-packages
Python (for build): /usr/bin/python2.7
Java:
ant: /usr/bin/ant (ver 1.9.6)
JNI: NO
Java wrappers: NO
Java tests: NO
Matlab: Matlab not found or implicitly disabled
Documentation:
Doxygen: NO
PlantUML: NO
Tests and samples:
Tests: NO
Performance tests: NO
C/C++ Examples: NO
Install path: /usr/local
cvconfig.h is in: /usr/local/src/opencv-3.1.0/build
-----------------------------------------------------------------
↧
opencv build issues in VS2010
Hi
I am trying to build opencv for windows from latest opencv source. I am using cmake with Visual Studio 2010 generator.
When i try to build from visual studio solution, i am getting some errors like
"..\..\..\3rdparty\libpng\contrib\intel\filter_sse2_intrinsics.c(59): error C2275: 'png_uint_16' : illegal use of this type as an expression"
I can see that in the file "filter_sse2_intrinsics.c", there are some variable declarations in the middle of the code block.
Is there any fixes available for this already?
Thanks!
↧
Problem building Opencv 3.1 - cap_gphoto2.cpp errors
I've been running into the same problem with both the release version of 3.1 and the current cloned version of the repository. The problem appears to be in the videoio module when compiling the cap_gphoto2.cpp file. I've run into this issue on two separate computer systems both running RHEL 6.6. Here's the relevant error messages:
At the end of the post is the configuration output and the error log.
[ 42%] Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_row_filter.8uc3.cu.o
Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_column_filter.16uc1.cu.o
Building NVCC (Device) object modules/cudafilters/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_row_filter.32sc1.cu.o
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:171: error: ISO C++ forbids initialization of member ‘context’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:171: error: making ‘context’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:171: error: invalid in-class initialization of static data member of non-integral type ‘GPContext*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:177: error: ISO C++ forbids initialization of member ‘camera’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:177: error: making ‘camera’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:177: error: invalid in-class initialization of static data member of non-integral type ‘Camera*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:181: error: ISO C++ forbids initialization of member ‘rootWidget’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:181: error: making ‘rootWidget’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:181: error: invalid in-class initialization of static data member of non-integral type ‘CameraWidget*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:213: error: ISO C++ forbids initialization of member ‘abilitiesList’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:213: error: making ‘abilitiesList’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:213: error: invalid in-class initialization of static data member of non-integral type ‘CameraAbilitiesList*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:214: error: ISO C++ forbids initialization of member ‘capablePorts’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:214: error: making ‘capablePorts’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:214: error: invalid in-class initialization of static data member of non-integral type ‘GPPortInfoList*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:215: error: ISO C++ forbids initialization of member ‘allDevices’ [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:215: error: making ‘allDevices’ static [-fpermissive]
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:215: error: invalid in-class initialization of static data member of non-integral type ‘CameraList*’
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘void cv::gphoto2::DigitalCameraCapture::initContext()’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:323: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:332: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:333: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:336: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:337: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:340: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:341: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:342: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In destructor ‘virtual cv::gphoto2::DigitalCameraCapture::~DigitalCameraCapture()’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:388: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:389: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:390: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:391: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:392: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:393: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:394: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘bool cv::gphoto2::DigitalCameraCapture::open(int)’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:418: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:419: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:420: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:423: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:424: error: ‘abilitiesList’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:425: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:428: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:429: error: ‘capablePorts’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:430: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:433: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:433: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘void cv::gphoto2::DigitalCameraCapture::close()’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:476: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:478: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:492: error: ‘rootWidget’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘virtual double cv::gphoto2::DigitalCameraCapture::getProperty(int) const’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:607: error: ‘rootWidget’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘virtual bool cv::gphoto2::DigitalCameraCapture::setProperty(int, double)’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:805: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:805: error: ‘rootWidget’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:805: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘virtual bool cv::gphoto2::DigitalCameraCapture::grabFrame()’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:839: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:839: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:844: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:844: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:845: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:845: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:847: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:847: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘int cv::gphoto2::DigitalCameraCapture::findDevice(const char*) const’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:914: error: ‘allDevices’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp: In member function ‘void cv::gphoto2::DigitalCameraCapture::reloadConfig()’:
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:936: error: ‘rootWidget’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:945: error: ‘camera’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:945: error: ‘rootWidget’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:945: error: ‘context’ was not declared in this scope
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/modules/videoio/src/cap_gphoto2.cpp:949: error: ‘rootWidget’ was not declared in this scope
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_gphoto2.cpp.o] Error 1
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CONFIGURATION LOG
-- Detected version of GNU GCC: 44 (404)
-- FP16: Compiler support is not available
-- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.2.3", minimum required is "1.2.3")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.3")
-- checking for module 'gtk+-3.0'
-- package 'gtk+-3.0' not found
-- checking for module 'gstreamer-base-1.0'
-- package 'gstreamer-base-1.0' not found
-- checking for module 'gstreamer-video-1.0'
-- package 'gstreamer-video-1.0' not found
-- checking for module 'gstreamer-app-1.0'
-- package 'gstreamer-app-1.0' not found
-- checking for module 'gstreamer-riff-1.0'
-- package 'gstreamer-riff-1.0' not found
-- checking for module 'gstreamer-pbutils-1.0'
-- package 'gstreamer-pbutils-1.0' not found
-- Looking for linux/videodev.h
-- Looking for linux/videodev.h - found
-- Looking for linux/videodev2.h
-- Looking for linux/videodev2.h - found
-- Looking for sys/videoio.h
-- Looking for sys/videoio.h - not found
-- checking for module 'libavresample'
-- package 'libavresample' not found
-- Looking for libavformat/avformat.h
-- Looking for libavformat/avformat.h - found
-- Looking for ffmpeg/avformat.h
-- Looking for ffmpeg/avformat.h - not found
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/3rdparty/ippicv/unpack/ippicv_lnx
-- CUDA detected: 7.5
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-D_FORCE_INLINES
-- To enable PlantUML support, set PLANTUML_JAR environment variable or pass -DPLANTUML_JAR= option to cmake
-- Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.4" (found /usr/local/palomar/anaconda/envs/astroconda/bin/python)
-- Could NOT find PythonInterp: Found unsuitable version "2.7.12", but required is at least "3.2" (found /usr/local/palomar/anaconda/envs/astroconda/bin/python)
-- Found apache ant 1.9.7: /usr/bin/ant
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_ROOT_DIR MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Caffe: NO
-- Protobuf: NO
-- Glog: NO
-- HDF5: YES
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- HDF5: YES
-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
-- Build libprotobuf from sources:
-- libprotobuf not found into system
-- The protocol buffer compiler not found
-- Checking for C++ hash_map implementation...
-- C++ hash_map found in 'ext' dir in namespace __gnu_cxx::
-- Checking for C++ hash_set implementation...
-- C++ hash_set found in 'ext' dir in namespace __gnu_cxx::
-- Tesseract: NO
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
--
-- General configuration for OpenCV 3.1.0-dev =====================================
-- Version control: 3.1.0-1242-g595fd27
--
-- Extra modules:
-- Location (extra): /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv_contrib/modules
-- Version control (extra): 3.1.0-286-g4886ca6
--
-- Platform:
-- Timestamp: 2016-08-31T16:11:19Z
-- Host: Linux 2.6.32-504.el6.x86_64 x86_64
-- CMake: 2.8.12.2
-- CMake generator: Unix Makefiles
-- CMake build tool: /usr/bin/gmake
-- Configuration: RELEASE
--
-- C/C++:
-- Built as dynamic libs?: YES
-- C++ Compiler: /usr/bin/c++ (ver 4.4.7)
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG
-- C Compiler: /usr/bin/cc
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG
-- Linker flags (Release):
-- Linker flags (Debug):
-- Precompiled headers: YES
-- Extra dependencies: /usr/lib64/libpng.so /usr/lib64/libtiff.so /usr/lib64/libjasper.so /usr/lib64/libjpeg.so gtk-x11-2.0 gdk-x11-2.0 atk-1.0 gio-2.0 pangoft2-1.0 pangocairo-1.0 gdk_pixbuf-2.0 cairo pango-1.0 freetype fontconfig gstvideo-0.10 gstapp-0.10 gstbase-0.10 gstriff-0.10 gstpbutils-0.10 gstreamer-0.10 gobject-2.0 gmodule-2.0 xml2 gthread-2.0 glib-2.0 dc1394 avformat avcodec Xv Xext xcb-shm xcb-xfixes xcb-render xcb-shape xcb X11 asound SDL lzma bz2 z swresample swscale avutil gphoto2 gphoto2_port /usr/lib64/libbz2.so /usr/local/palomar/anaconda/envs/astroconda/lib/libhdf5_hl.so /usr/local/palomar/anaconda/envs/astroconda/lib/libhdf5.so /usr/lib64/librt.so /usr/lib64/libpthread.so /usr/lib64/libz.so /usr/lib64/libdl.so /usr/lib64/libm.so dl m pthread rt cudart nppc nppi npps cufft -L/usr/local/cuda-7.5/lib64
-- 3rdparty dependencies: libwebp IlmImf libprotobuf
--
-- OpenCV modules:
-- To be built: cudev core cudaarithm flann hdf imgproc ml reg surface_matching video cudabgsegm cudafilters cudaimgproc cudawarping dnn fuzzy imgcodecs photo shape videoio cudacodec highgui objdetect plot ts xobjdetect xphoto bgsegm bioinspired dpm face features2d line_descriptor saliency text calib3d ccalib cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo datasets rgbd stereo structured_light superres tracking videostab xfeatures2d ximgproc aruco java optflow stitching python2
-- Disabled: world contrib_world
-- Disabled by dependency: -
-- Unavailable: python3 viz cvv matlab sfm
--
-- GUI:
-- QT: NO
-- GTK+ 2.x: YES (ver 2.24.23)
-- GThread : YES (ver 2.28.8)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib64/libz.so (ver 1.2.3)
-- JPEG: /usr/lib64/libjpeg.so (ver )
-- WEBP: build (ver 0.3.1)
-- PNG: /usr/lib64/libpng.so (ver 1.2.49)
-- TIFF: /usr/lib64/libtiff.so (ver 42 - 3.9.4)
-- JPEG 2000: /usr/lib64/libjasper.so (ver 1.900.1)
-- OpenEXR: build (ver 1.7.1)
-- GDAL: NO
-- GDCM: NO
--
-- Video I/O:
-- DC1394 1.x: NO
-- DC1394 2.x: YES (ver 2.2.4)
-- FFMPEG: YES
-- codec: YES (ver 57.48.101)
-- format: YES (ver 57.41.100)
-- util: YES (ver 55.28.100)
-- swscale: YES (ver 4.1.100)
-- resample: NO
-- gentoo-style: YES
-- GStreamer:
-- base: YES (ver 0.10.29)
-- video: YES (ver 0.10.29)
-- app: YES (ver 0.10.29)
-- riff: YES (ver 0.10.29)
-- pbutils: YES (ver 0.10.29)
-- OpenNI: NO
-- OpenNI PrimeSensor Modules: NO
-- OpenNI2: NO
-- PvAPI: NO
-- GigEVisionSDK: NO
-- UniCap: NO
-- UniCap ucil: NO
-- V4L/V4L2: YES/YES
-- XIMEA: NO
-- Xine: NO
-- gPhoto2: YES
--
-- Parallel framework: pthreads
--
-- Other third-party libraries:
-- Use IPP: 9.0.1 [9.0.1]
-- at: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/3rdparty/ippicv/unpack/ippicv_lnx
-- Use IPP Async: NO
-- Use VA: NO
-- Use Intel VA-API/OpenCL: NO
-- Use Lapack: NO
-- Use Eigen: NO
-- Use Cuda: YES (ver 7.5)
-- Use OpenCL: YES
-- Use OpenVX: NO
-- Use custom HAL: NO
--
-- NVIDIA CUDA
-- Use CUFFT: YES
-- Use CUBLAS: NO
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 20 30 35 50
-- NVIDIA PTX archs:
-- Use fast math: NO
--
-- OpenCL:
-- Include path: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/3rdparty/include/opencl/1.2
-- Use AMDFFT: NO
-- Use AMDBLAS: NO
--
-- Python 2:
-- Interpreter: /usr/local/palomar/anaconda/envs/astroconda/bin/python2.7 (ver 2.7.12)
-- Libraries: /usr/local/palomar/anaconda/lib
-- numpy: /usr/local/palomar/anaconda/envs/astroconda/lib/python2.7/site-packages/numpy/core/include (ver 1.11.1)
-- packages path: lib/python2.7/site-packages
--
-- Python 3:
-- Interpreter: NO
--
-- Python (for build): /usr/local/palomar/anaconda/envs/astroconda/bin/python2.7
--
-- Java:
-- ant: /usr/bin/ant (ver 1.9.7)
-- JNI: /usr/local/palomar/java/jdk1.8.0_77/include /usr/local/palomar/java/jdk1.8.0_77/include/linux /usr/local/palomar/java/jdk1.8.0_77/include
-- Java wrappers: YES
-- Java tests: YES
--
-- Matlab: Matlab not found or implicitly disabled
--
-- Documentation:
-- Doxygen: /usr/bin/doxygen (ver 1.6.1)
-- PlantUML: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build
-- -----------------------------------------------------------------
--
-- Configuring done
CMake Warning at /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/cmake/OpenCVUtils.cmake:815 (add_library):
Cannot generate a safe runtime search path for target opencv_hdf because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libz.so.1] in /usr/lib64 may be hidden by files in:
/usr/local/palomar/anaconda/envs/astroconda/lib
Some of these libraries may not be found correctly.
Call Stack (most recent call first):
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/cmake/OpenCVModule.cmake:784 (ocv_add_library)
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/cmake/OpenCVModule.cmake:729 (_ocv_create_module)
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/cmake/OpenCVModule.cmake:940 (ocv_create_module)
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv_contrib/modules/hdf/CMakeLists.txt:31 (ocv_define_module)
-- Generating done
-- Build files have been written to: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build
ERROR LOG
Determining if the include file sys/videoio.h exists failed with the following output:
Change Dir: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2352067033/fast"
gmake[1]: Entering directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2352067033.dir/build.make CMakeFiles/cmTryCompileExec2352067033.dir/build
gmake[2]: Entering directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2352067033.dir/CheckIncludeFile.c.o
/usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTryCompileExec2352067033.dir/CheckIncludeFile.c.o -c /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: error: sys/videoio.h: No such file or directory
gmake[2]: *** [CMakeFiles/cmTryCompileExec2352067033.dir/CheckIncludeFile.c.o] Error 1
gmake[2]: Leaving directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2352067033/fast] Error 2
gmake[1]: Leaving directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
Determining if the include file ffmpeg/avformat.h exists failed with the following output:
Change Dir: /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/gmake "cmTryCompileExec2454513801/fast"
gmake[1]: Entering directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec2454513801.dir/build.make CMakeFiles/cmTryCompileExec2454513801.dir/build
gmake[2]: Entering directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2454513801.dir/CheckIncludeFile.c.o
/usr/bin/cc -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -O3 -DNDEBUG -o CMakeFiles/cmTryCompileExec2454513801.dir/CheckIncludeFile.c.o -c /home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:29: error: ffmpeg/avformat.h: No such file or directory
gmake[2]: *** [CMakeFiles/cmTryCompileExec2454513801.dir/CheckIncludeFile.c.o] Error 1
gmake[2]: Leaving directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
gmake[1]: *** [cmTryCompileExec2454513801/fast] Error 2
gmake[1]: Leaving directory `/home/developer/andor_development_stargate/working/opencv/opencv_clone/opencv/build/CMakeFiles/CMakeTmp'
↧
Build another OpenCV 3 library for a different Python interpreter in the same computer
I am using Mac and already installed a computer vision library, OpenCV 3 for my computer (system-wide) and it is compiled with support for Python 2 interpreter. I am now, want to build another OpenCV 3 library, reusing that same git clone of OpenCV, that will be compiled for the Python 3 interpreter. I want to build/install it locally. Before I do anything, I want to confirm if my step would be right since I want to prevent any file tanglation.
1. It is said that I have to delete the `CMakeCache.txt` file inside the `build` folder of my previous build in order to build the new OpenCV. Is it true? I mean, my previous `build` folder (for Python 2) is inside the repo folder such that `~/opencv/build`, but shouldn't it be just fine?
2. I know I have to set up the flag `CMAKE_INSTALL_PREFIX` to somewhere else, but as long as I do not `make install`, it should be just fine, isn't? Since I believe that flag is just to set up the make install target.
↧
↧
How to upgrade version
Hi anyone can help me ?
I was able to install openCV-3.1.0 on Ubuntu 14.04, but I confirmed version using python and version was 2.4.8.
How did this happen?
↧
Problem compiling OpenCV 2.4.13 with Cmake and MinGW
I got this problem when trying to compile opencv using Cmake and mingw.
for Cmake:
sourcecode is located in "C:\CPP Libraries\OpenCV-2.4.13\opencv\sources"
where the binaries are goint to be build is in: "C:/CPP Libraries/OpenCV-2.4.13/opencv/build/x64/mingw"
I've already used Cmake to generate the makefile.
when i run the makefile:
C:\CPP Libraries\OpenCV-2.4.13\opencv\build\x64\mingw>mingw32-make
this is the output that I get after 31%
[ 31%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj
C:\CPP Libraries\OpenCV-2.4.13\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'int icvCreateTrackbar(const char*, const char*, int*, int, CvTrackbarCallback, CvTrackbarCallback2, void*)':
C:\CPP Libraries\OpenCV-2.4.13\opencv\sources\modules\highgui\src\window_w32.cpp:1853:81: error: 'BTNS_AUTOSIZE' was not declared in this scope
WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
^
C:\CPP Libraries\OpenCV-2.4.13\opencv\sources\modules\highgui\src\window_w32.cpp:1853:97: error: 'BTNS_BUTTON' was not declared in this scope
WS_CHILD | CCS_TOP | TBSTYLE_WRAPABLE | BTNS_AUTOSIZE | BTNS_BUTTON,
^
modules\highgui\CMakeFiles\opencv_highgui.dir\build.make:187: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj' failed
mingw32-make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w32.cpp.obj] Error 1
CMakeFiles\Makefile2:2203: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
Does anyone knows a solution, because i have no clue about this one.
↧
cmake error sys/video.h: No such file (OpenCV 3.1)
While doing cmake getting below error (OpenCV 3.1 source):
OpenCV/build/make_dir/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:25: fatal error: sys/videoio.h: No such file or directory. compilation terminated. CMakeFiles/cmTC_01654.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o' failed make[1]: * [CMakeFiles/cmTC_01654.dir/CheckIncludeFile.c.o] Error 1
I'd already installed below libs: libv4l-0:amd64 libv4l-dev:amd64 libv4l2rds0:amd64 libv4lconvert0:amd64 v4l-utils cmake
cmd used: sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_NEW_PYTHON_SUPPORT=ON -D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_EIGEN=OFF -DOPENCV_EXTRA_MODULES_PATH=
↧