Hi,
I am having some issues trying to build the latest version of OpenCV (from the GIT repo).
I can build OpenCV without errors if I disable WITH_CUDA in CMake, but if I enable it (I want CUDA support), then I get an error when building the gpu module.
I use Windows 7, Visual Studio Community Edition 2013, and CUDA Toolkit 7.5. The CUDA samples work properly on my Visual Studio installation.
When building the gpu module, everything goes fine until it starts to build "generalized_hough.cu", and then I start getting lots of warnings. Then, I finally get an error when compiling "gftt.cu".
This error says:
"C:\Program Files (x86)\Windows Kits\8.1\Include\um\combaseapi.h(229): error : identifier "IUnknown" is undefined"
Below are the CMake and Visual Studio logs:
CMake: http://pastebin.com/axs4kJ5v
Visual Studio build: http://pastebin.com/4yetHqxq
Anyone knows what is going wrong?
Thanks,
Carlos
↧
Error building gpu module (OpenCV 2.4.13, Win7, VS 2013 and Cuda 7.5)
↧
Unable to build OpenCV due to missing ninja
I'm trying to build OpenCV3, as part of a dependency for the [diagnostics](http://wiki.ros.org/diagnostics) ROS Kinetic. My build steps are:
rosinstall_generator diagnostics --rosdistro kinetic --deps | wstool merge -t src -
wstool update -t src -j2 --delete-changed-uris
rosdep install --from-paths src --ignore-src --rosdistro kinetic -y -r --os=debian:jessie
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release --install-space /opt/ros/kinetic -j1
The last command builds several packages, but fails on OpenCV3 with the error:
==> Processing plain cmake package: 'opencv3'
==> Building with env: '/opt/ros/kinetic/env.sh'
Makefile exists, skipping explicit cmake invocation...
==> make cmake_check_build_system in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
==> ninja -j1 in '/home/pi/ros_catkin_ws/build_isolated/opencv3/install'
ninja: error: loading 'build.ninja': No such file or directory<== Failed to process package 'opencv3':
Command '['/opt/ros/kinetic/env.sh', 'ninja', '-j1']' returned non-zero exit status 1
Reproduce this error by running:
==> cd /home/pi/ros_catkin_ws/build_isolated/opencv3 && /opt/ros/kinetic/env.sh ninja -j1
What's causing this error? Why doesn't OpenCV3 include a Ninja build file? I've asked about this on the [corresponding ROS answers site](http://answers.ros.org/question/244214/unable-to-install-because-of-missing-ninja/), but they have no idea what's causing this.
↧
↧
error: 'pthread_self' wa s not declared in this scope return (int)(size_t)(void*)pthread_self(); // no zero-based indexing
I use OpenCV31 in Eclipse under win7 and have to build source from git since there are no minGW libs available for download. It was ok before, but today(just now) I updated all sources and now mingw32-make suddenly fails:
C:\opencv\sources\modules\core\src\parallel.cpp: In function 'int cv::getThreadN
um()':
C:\opencv\sources\modules\core\src\parallel.cpp:457:45: error: 'pthread_self' wa
s not declared in this scope
return (int)(size_t)(void*)pthread_self(); // no zero-based indexing
^
modules\core\CMakeFiles\opencv_core.dir\build.make:965: recipe for target 'modul
es/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.obj' failed
mingw32-make[2]: *** [modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o
bj] Error 1
CMakeFiles\Makefile2:1500: recipe for target 'modules/core/CMakeFiles/opencv_cor
e.dir/all' failed
mingw32-make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:159: recipe for target 'all' failed
mingw32-make: *** [all] Error 2
↧
how to build custom opencv for android (and test application using c++ client code as well as java ui)
Hello.
How can I build opencv myself on android such that I can write other native c++ application code that interacts with it?
Im using Android studio 2.2 with ndk installed. Most examples/documentation seems to be geared toward eclipse and the older .mk build system rather tham Android Studio and gradle.
More details:
----------------
I have a windows c++ application thst uses opencv. I want to port this application to android. So I need to port not only my application (c++) code but also opencv to android. My application code can be split into 2 parts: User interface part and the lower level part that interacts directly with opencv. The part of my application code that interacts with opencv I want to leave in c++, and just create a user interface in java. So I want an android (java) ui, that "talks" to my other c++ native code, which in turn "talks" to the opencv library code. (This way I can presumably port more easily later to iOS).
Is there an exmaple anywhere of this (ideally using Android Studio, and gradle)?
I have downloaded the opencv android sdk (linked from http://opencv.org/downloads.html)
[https://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.9/OpenCV-2.4.9-android-sdk.zip/download](https://sourceforge.net/projects/opencvlibrary/files/opencv-android/2.4.9/OpenCV-2.4.9-android-sdk.zip/download)
to create an application with Android Studio solely in java that talks to opencv. I followed the advice here:
http://stackoverflow.com/questions/17767557/how-to-use-opencv-in-android-studio-using-gradle-build-tool
To do this I had to copy the precompiled libraries that came with the sdk (sdk/native/libs/libopencv_core.a etc) to my android project dir. One probblem I have with this is that the precompiled libraries are not available for my android test device (which requires "arm64-v8a") . So Id like to be able to compile them myself and specify that it should also build for arm64-v8a, and not just: "armeabi" "armeabi-v7a" "mips" "x86". (The opencv sdk 3.1.0 has "arm64-v8a" "armeabi" "armeabi-v7a" "mips" "mips64" "x86" "x86_64") but I need to use earlier versions of opencv too. the other problem is that it wasnt quite clear how to write other c++ code that interacts with opencv here (only java).
Id be very grateful for any help.
Thanks in Advance.
↧
Unable to build OpenCV (with CUDA) error
I am unable to build openCV v3.1 with Cuda. I followed the instruction as given in the link http://docs.opencv.org/master/d3/d52/tutorial_windows_install.html
In CMAKE I just select all flags with CUDA besides CUDA_BUILD_EMULATION and WITH CUDA and leave the rest as it is
Cmake generates the file and with Visual 2013 x64 I try building it in Debug first but then the build never completes.
>
10>
10>
10>C:\Users\rahul\Desktop\opencv\opencv\modules\core\include\opencv2/core/base.hpp(365): warning : function declared with "noreturn" does return
After some time his is the warning I continuously get...and continues indefinitely...getting the same warning
Any solutions to this problem??
ps - I tried using the for loop in base.hpp line 365 still no use
Compiler Ms Visual studio 2013 x64, Os is windows 10 and with_cuda is ON
↧
↧
Android add Native OpenCV
I made a console application in c++ and want to add it now to Android.
I already configured everything and added a JNIInterface for my SourceFiles.
After that I builded OpenCV Libraries for Android and added the following code from the Face-detection Example and configured it for my locations of the OpenCV.mk File.
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#OPENCV_CAMERA_MODULES:=off
#OPENCV_INSTALL_MODULES:=off
#OPENCV_LIB_TYPE:=SHARED
ifdef OPENCV_ANDROID
ifneq ("","$(wildcard $(OPENCV_ANDROID_SDK)/OpenCV.mk)")
include ${OPENCV_ANDROID)/OpenCV.mk
else
include ${OPENCV_ANDROID}/OpenCV.mk
endif
else
include /Users/mtuchner/Desktop/opencv-master/platforms/build_android_arm/unix-install/OpenCV.mk
endif
LOCAL_SRC_FILES := ExtractorManager.cpp hpoint.cpp hrect.cpp JNIInterface.cpp kdnode.cpp kdtree.cpp KdtreeManager.cpp nnl.cpp priorityQueue.cpp
LOCAL_C_INCLUDES += $(LOCAL_PATH)
LOCAL_LDLIBS += -llog -ldl
LOCAL_MODULE := fast_sift_detector
include $(BUILD_SHARED_LIBRARY)
Also I set the Application.mk:
APP_STL := gnustl_static
APP_CPPFLAGS := -frtti -fexceptions -std=c++11
APP_ABI := armeabi-v7a
APP_PLATFORM := android-8
Then I started the building with the ndk-build
But it seems, like I am missing something... it gives me this Errors, and says, that it cant find methods which I use in my sourcefiles. Does anyone know what is wrong there?
Here is the complete Error Message:
/Users/mtuchner/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: cannot find -lopencv_java3
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:54: error: undefined reference to 'cv::hal::exp32f(float const*, float*, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:55: error: undefined reference to 'cv::hal::fastAtan2(float const*, float const*, float*, int, bool)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:56: error: undefined reference to 'cv::hal::magnitude32f(float const*, float const*, float*, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:145: error: undefined reference to 'cv::hal::fastAtan32f(float const*, float const*, float*, int, bool)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:146: error: undefined reference to 'cv::hal::magnitude32f(float const*, float const*, float*, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:147: error: undefined reference to 'cv::hal::exp32f(float const*, float*, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:254: error: undefined reference to 'cv::resize(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:256: error: undefined reference to 'cv::GaussianBlur(cv::_InputArray const&, cv::_OutputArray const&, cv::Size_, double, double, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:258: error: undefined reference to 'cv::FAST(cv::_InputArray const&, std::vector>&, int, bool)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:260: error: undefined reference to 'cv::Mat::convertTo(cv::_OutputArray const&, int, double, double) const'
/usr/local/include/opencv2/core/mat.inl.hpp:647: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
/usr/local/include/opencv2/core/mat.inl.hpp:687: error: undefined reference to 'cv::Mat::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:1182: error: undefined reference to 'cv::fastFree(void*)'
/usr/local/include/opencv2/core/mat.inl.hpp:687: error: undefined reference to 'cv::Mat::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:575: error: undefined reference to 'cv::fastFree(void*)'
/usr/local/include/opencv2/core/mat.inl.hpp:687: error: undefined reference to 'cv::Mat::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:575: error: undefined reference to 'cv::fastFree(void*)'
/usr/local/include/opencv2/core/mat.inl.hpp:687: error: undefined reference to 'cv::Mat::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:575: error: undefined reference to 'cv::fastFree(void*)'
/usr/local/include/opencv2/core/mat.inl.hpp:404: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)'
/usr/local/include/opencv2/core/cvstd.inl.hpp:81: error: undefined reference to 'cv::String::allocate(unsigned int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:325: error: undefined reference to 'cv::imread(cv::String const&, int)'
/usr/local/include/opencv2/core/cvstd.hpp:664: error: undefined reference to 'cv::String::deallocate()'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:331: error: undefined reference to 'cv::cvtColor(cv::_InputArray const&, cv::_OutputArray const&, int, int)'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:333: error: undefined reference to 'cv::Mat::copyTo(cv::_OutputArray const&) const'
/Users/mtuchner/Desktop/FASTSIFT/app/src/main/jni/ExtractorManager.cpp:357: error: undefined reference to 'cv::KeyPointsFilter::removeDuplicated(std::vector>&)'
/usr/local/include/opencv2/core/mat.inl.hpp:667: error: undefined reference to 'cv::Mat::create(int, int const*, int)'
/usr/local/include/opencv2/core/cvstd.hpp:664: error: undefined reference to 'cv::String::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:596: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)'
/usr/local/include/opencv2/core/cvstd.hpp:664: error: undefined reference to 'cv::String::deallocate()'
/usr/local/include/opencv2/core/cvstd.hpp:664: error: undefined reference to 'cv::String::deallocate()'
/usr/local/include/opencv2/core/mat.inl.hpp:404: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)'
/usr/local/include/opencv2/core/mat.inl.hpp:404: error: undefined reference to 'cv::Mat::copySize(cv::Mat const&)'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/mtuchner/Desktop/FASTSIFT/app/src/main/obj/local/armeabi-v7a/libfast_sift_detector.so] Error 1
↧
What better way of passing extra parameters to compile?
I am compiling OpenCV in order to make it more optimized possible to run on Cortex-A53 processor in a NanoPI M3 produced by FriendlyARM.
I have used in my projects the following keys:
-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc
Enabling the CMake with the following option besides "ENABLE_NEON = ON:
-D EXTRA_C_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc"
I did not succeed because the OpenCV settings do not use it.
What better way of passing those extra parameters to compile?
I do this:
mkdir CortexA53Release
cd CortexA53Release
cmake -G "Unix Makefiles" \
-D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
-D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
-D CMAKE_BUILD_TYPE=RELEASE-NANOPI \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=ON \
-D WITH_V4L=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D WITH_IMAGEIO=ON \
-D WITH_GSTREAMER=ON \
-D ENABLE_NEON=ON \
-D ENABLE_FAST_MATH=ON \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_NEW_PYTHON_SUPPORT=OFF \
-D BUILD_EXAMPLES=ON \
-D BUILD_FAT_JAVA_LIB=OFF \
-D BUILD_TBB=ON \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D INSTALL_TO_MANGLED_PATHS=ON \
-D INSTALL_CREATE_DISTRIB=ON \
-D INSTALL_TESTS=ON \
-D EXTRA_C_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" \
-D EXTRA_CXX_FLAGS_RELEASE="-mtune=cortex-a53 -mcpu=cortex-a53 -mfloat-abi=hard -march=armv8-a+crc" \
..
And get:
...
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
EXTRA_CXX_FLAGS_RELEASE
EXTRA_C_FLAGS_RELEASE
-- Build files have been written to: /home/fa/Workspace/opencv/CortexA53Release
↧
How to select package type on build distribution processes
When compiling OpenCV the package creation process creates three packages type, as must be done to select only a specific package type in the building?
↧
Selecting the name of the package to be created during the building process compiled OpenCV.
The packet creating proceso for distribution creates three packets being two type tar and a third compressed binary type in a shell file.
how can I select the name of these files created or intervene in this name.
For example, this were created in my build configured with the make command:
- OpenCV-unknown-armv7l.sh
- OpenCV-unknown-armv7l.tar.gz
- OpenCV-unknown-armv7l.tar.Z
Comando usado para configuração:
cmake -G "Unix Makefiles" \
-D CMAKE_CXX_COMPILER=/usr/bin/arm-linux-gnueabihf-g++ \
-D CMAKE_C_COMPILER=/usr/bin/arm-linux-gnueabihf-gcc \
-D CMAKE_BUILD_TYPE=RELEASE-NANOPI \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D WITH_TBB=ON \
-D WITH_V4L=ON \
-D WITH_QT=ON \
-D WITH_OPENGL=ON \
-D WITH_IMAGEIO=ON \
-D WITH_GSTREAMER=ON \
-D ENABLE_NEON=ON \
-D ENABLE_FAST_MATH=ON \
-D BUILD_SHARED_LIBS=OFF \
-D BUILD_NEW_PYTHON_SUPPORT=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_FAT_JAVA_LIB=OFF \
-D BUILD_TBB=ON \
-D BUILD_opencv_apps=OFF -D BUILD_opencv_nofree=OFF -D BUILD_opencv_java=OFF \
-D BUILD_opencv_objdetect=ON -D BUILD_opencv_core=ON -D BUILD_opencv_imgproc=ON -D BUILD_opencv_ml=ON -D BUILD_opencv_flann=OFF \
-D BUILD_opencv_highgui=ON \
-D BUILD_OPTIONAL=Off \
-D BUILD_DOCS=OFF \
-D INSTALL_C_EXAMPLES=OF \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D INSTALL_TO_MANGLED_PATHS=ON \
-D INSTALL_CREATE_DISTRIB=ON \
-D INSTALL_TESTS=OFF \
-D CMAKE_VERBOSE=ON \
..
↧
↧
MIDL2025 Error when building OpenCV using Visual Studio 2015?
So, I'm kind of new to C++ and I'm having some problems trying to build OpenCV using Visual Studio 2015.
I'm not sure if this is the correct way to do it, but I dragged all the source files from opencv into my own project so it now looks like this :

However when I build it I get these 2 errors :
MIDL2025 - syntax error : expecting an interface name or DispatchInterfaceName or CoclassName or ModuleName or LibraryName or ContractName or a type specifier near "namespace" - IVectorChangedEventArgs.idl - line 11
MIDL2026 - cannot recover from earlier syntax errors; aborting compilation - IVectorChangedEventArgs.idl - line 11
I'm trying to build it in Debug x86 mode, if that matters.
↧
How to add JPEG support in TIFF
I built *OpenCV* and I'm trying to open various TIFF images. Most of them works, unless they're compressed with *JPEG*. After adding an error handler for TIFFs in my code, I'm getting this:> JPEG compression support is not configured
Is there a way to compile the *libtiff* included in the *OpenCV* project to support the *JPEG compression*?
I haven't found any options yet.
↧
what does generate.sh do here?
Hello, can some tell me what the script generate.sh in here do
https://github.com/opencv/opencv/blob/873884aa47490ecbe8fda2aa92dbbeefbe05b00d/modules/core/src/opencl/runtime/generator/generate.sh
I am unable to find any documentation regarding this
Edit:
This seems to have something to do with building OpenCV with OpenCL1.1 which I need to do and currently cant by just changing the include path for OpenCL (I get build errors for some APIs which are in 1.2 but absent in 1.1)
And I think this would in-turn generate some of the files in opencv/modules/core/src/opencl/runtime/autogenerated
↧
Easy Woodworking Tasks - Inexpensive Tasks!
Woodworking using hand tools may be completely new to you if you are a modern day woodworker. Most people avoid old tools at all costs. They think that they are outdated, less accurate and slower than the modern day machines. This simply is not true in most cases. This article will provide you with some facts about using planes and saws in your every day wood working projects.
The beauty of Teds Woodworking package is that you don't need any previous experience. These plans contain everything you need so you're never left in the dark and you never have to worry about how to do something. It's all laid out nice and neat for you.
Oh, and it all has a money back guarantee - if I did not like it I could have just opted out of the member's area for a refund. Now I would never want to do that but if I wanted I could.
Unless you want to sand every piece of wood and project by hand for hours on end, you will need a drum sander to get things done in a timely manner. Drum sanders will smooth and finish the wood for you with very little effort or time needed.
Whether you're an overall beginner, have some past experiences using woodworking tools in addition to creating coloncolon93.de.tl, or are an exceptionally skilled woodworking professional, it's important that the woodworking plans match your evel of skill. Beginners need easy projects which were simple to construct and relatively quick in order to complete. Actually finishing a project will offer a beginner satisfaction together with a feeling of accomplishment and may bring about their starting another woodworking project that's more complicated.
Wood backyard sheds are the most common type, and is usually built away from the house and not as an extension considering the fire hazard materials. It is the type that can easily blend with any environment especially with your garden. But sturdy and beautiful as it may appear, treating of the wood should not be overlooked. Untreated lumber can easily rot and become susceptible to mold and mildew. Wood sheds will need more maintenance, among all other types of backyard sheds. Occasional rot-proofing is necessary as well as keeping plants and some debris to pile up beside the walls to avoid rotting.
There are tons of places to find great woodworking plans and projects online today. You can get or build a complete library of projects right on your own computer to use any time.
Oh, and it all has a money back guarantee - if I did not like it I could have just opted out of the member's area for a refund. Now I would never want to do that but if I wanted I could.
Unless you want to sand every piece of wood and project by hand for hours on end, you will need a drum sander to get things done in a timely manner. Drum sanders will smooth and finish the wood for you with very little effort or time needed.
Whether you're an overall beginner, have some past experiences using woodworking tools in addition to creating coloncolon93.de.tl, or are an exceptionally skilled woodworking professional, it's important that the woodworking plans match your evel of skill. Beginners need easy projects which were simple to construct and relatively quick in order to complete. Actually finishing a project will offer a beginner satisfaction together with a feeling of accomplishment and may bring about their starting another woodworking project that's more complicated.
Wood backyard sheds are the most common type, and is usually built away from the house and not as an extension considering the fire hazard materials. It is the type that can easily blend with any environment especially with your garden. But sturdy and beautiful as it may appear, treating of the wood should not be overlooked. Untreated lumber can easily rot and become susceptible to mold and mildew. Wood sheds will need more maintenance, among all other types of backyard sheds. Occasional rot-proofing is necessary as well as keeping plants and some debris to pile up beside the walls to avoid rotting.
There are tons of places to find great woodworking plans and projects online today. You can get or build a complete library of projects right on your own computer to use any time.
↧
↧
Trouble installing opencv_contrib
I have a perfectly good opencv 3 installation on debian 8.5, and can use it via python or c++, and even works with my webcams.
The problem is that it doesn't have opencv_contrib, and I can't figure out how to add it. When I do the following, it complains of missing gstreamer and vtk packages:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_C_EXAMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules -D BUILD_EXAMPLES=ON .
The output of the compile is here:
http://pastebin.com/2mfx6Yvg
Maybe it can't find it during build, but I did verify that gstreamer and vtk are installed.. these are the packages that are also installed:
kernel 3.16, gcc 4.9.2, python 2.7.9, opencv 3.1, vtk 6.1.0, QtCore 4.8.6, pyqt 4.11.2 (sip 4.16.4), matplotlib 1.5.2, scipy 0.18.0, skimage 0.12.3, IPython 2.3.0, sympy 1.0, dlib 19.1.0, h5py 2.6, progressbar 2.3, scikit-learn 0.17.1, cPickle 1.71
What could be the problem?
↧
Simple way to install openCV
I constantly have problem building openCV on different systems and get different errors for each new version. Most of those problem I can resolve by hand, but there are some where I just get stuck and I cannot find any help (http://answers.opencv.org/question/103591/opencv-cmake-error-with-testendianessc/)
Is there a simpler way to install openCV with SIFT and python bindings than to build it from source?
↧
Building "Tracking" module in OpenCV extra modules with Cmake does not generate relevant headers of that module
I am not able to get a working custom build for implementation of some OpenCV sample motion tracking examples which requires the module "tracking" part of **opencv_contrib**. I tried to custom build on on VC12.0 x64 on windows. But it does not generate headers like **tracking.hpp** and **tracker.hpp** specific to tracking inside its own folder (C:\OpenCV\build\install\include\opencv2\tracking) like in the case of all other extra modules.
I followed the building procedure as [here][1]
My ultimate aim is to run the sample: tutorial_introduction_to_tracker.cpp found [here][2].
Any assistance would be appreciated.
[1]: https://putuyuwono.wordpress.com/2015/04/23/building-and-installing-opencv-3-0-on-windows-7-64-bit/
[2]: http://docs.opencv.org/3.1.0/d2/d0a/tutorial_introduction_to_tracker.html
↧
How do I build the doc with OpenCV 3.1?
I am trying to build the documents, after installation on Ubuntu 16.04, following instructions at:
http://docs.opencv.org/3.1.0/d7/d9f/tutorial_linux_install.html
At step 7 I got:
> pwd
/home/fanta/opt/opencv-3.1.0/build/doc> make -j7 html_docs
make: *** No rule to make target 'html_docs'. Stop.
I have tried also with the [doxygen tutorial](http://docs.opencv.org/trunk/d4/db1/tutorial_documentation.html), and I got the same kind of error (after running cmake):
> pwd
/home/fanta/opt/opencv-3.1.0/build> make doxygen
make: *** No rule to make target 'doxygen'. Stop.> cd doc> make doxygen
make: *** No rule to make target 'doxygen'. Stop.
How can I build the OpenCV documentation?
Thanks!
↧
↧
CMake error while building MultiTarget-tracker library.
I'm trying to build [Multitarget-tracker][1] using CMake in windows. Initially i had the warning below,> You should manually point CMake variable OpenCV_DIR to your build of OpenCV library.> Call Stack (most recent call first):> CMakeLists.txt:57 (find_package)
I manually pointed out the directory of build version of OpenCV library and tried to **build**. I referred this [link][2] while building.
**Warning:**
> CMake Warning at CMakeLists.txt:23 (FIND_PACKAGE):> Found package configuration file:> C:/OpenCV/opencv/build/x86/vc12/lib/OpenCVConfig.cmake> but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be> NOT FOUND.
I checked the OpenCV_FOUND, but after i press 'configure' again, it automatically unchecks.
[1]: https://github.com/Smorodov/Multitarget-tracker
[2]: http://answers.opencv.org/question/12074/cmake-opencv_dir/
↧
Ubuntu build fails with memcpy not declared in string.h
Ubuntu Linux 16.04 LTS with GEForce GTX-950 GPU X86_64
Trying to build OpenCV on Ubuntu 16.04, make fails with an error compiling cuda file:
**[ 16%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o
/usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’:
/usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at cuda_compile_generated_gpu_mat.cu.o.cmake:266 (message):
Error generating file
/home/johann/Downloads/opencv-3.1.0/release/modules/core/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_gpu_mat.cu.o
modules/core/CMakeFiles/opencv_core.dir/build.make:63: recipe for target** 'modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o' failed
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/src/cuda/cuda_compile_generated_gpu_mat.cu.o] Error 1
CMakeFiles/Makefile2:1722: recipe for target 'modules/core/CMakeFiles/opencv_core.dir/all' failed
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Below is the output from the CMAKE configuration step:
johann@mars:~/Downloads/opencv-3.1.0/release$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON ..
-- Detected version of GNU GCC: 54 (504)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found suitable version "1.2.8", minimum required is "1.2.3")
-- Could NOT find TIFF (missing: TIFF_LIBRARY TIFF_INCLUDE_DIR)
-- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR)
-- Could NOT find Jasper (missing: JASPER_LIBRARIES JASPER_INCLUDE_DIR)
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
-- Checking for module 'gstreamer-base-1.0'
-- No package 'gstreamer-base-1.0' found
-- Checking for module 'gstreamer-video-1.0'
-- No package 'gstreamer-video-1.0' found
-- Checking for module 'gstreamer-app-1.0'
-- No package 'gstreamer-app-1.0' found
-- Checking for module 'gstreamer-riff-1.0'
-- No package 'gstreamer-riff-1.0' found
-- Checking for module 'gstreamer-pbutils-1.0'
-- No package 'gstreamer-pbutils-1.0' found
-- Checking for module 'gstreamer-base-0.10'
-- No package 'gstreamer-base-0.10' found
-- Checking for module 'gstreamer-video-0.10'
-- No package 'gstreamer-video-0.10' found
-- Checking for module 'gstreamer-app-0.10'
-- No package 'gstreamer-app-0.10' found
-- Checking for module 'gstreamer-riff-0.10'
-- No package 'gstreamer-riff-0.10' found
-- Checking for module 'gstreamer-pbutils-0.10'
-- No package 'gstreamer-pbutils-0.10' found
-- Checking for module 'libdc1394-2'
-- No package 'libdc1394-2' found
-- Checking for module 'libdc1394'
-- No package 'libdc1394' found
-- Checking for module 'libv4l1'
-- No package 'libv4l1' found
-- Checking for module 'libv4l2'
-- No package 'libv4l2' 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 'libavresample'
-- No package 'libavresample' 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'
-- No package 'libgphoto2' found
-- found IPP (ICV version): 9.0.1 [9.0.1]
-- at: /home/johann/Downloads/opencv-3.1.0/3rdparty/ippicv/unpack/ippicv_lnx
-- CUDA detected: 7.5
-- CUDA NVCC target flags: -gencode;arch=compute_20,code=sm_20;-gencode;arch=compute_20,code=sm_21;-gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_30,code=compute_30
-- 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.12", minimum required is "2.7")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "3.4")
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.5.2")
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named 'numpy'
-- 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
--
-- General configuration for OpenCV 3.1.0 =====================================
-- Version control: unknown
--
-- Platform:
-- Host: Linux 4.4.0-47-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/c++ (ver 5.4.0)
-- 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/libpng.so /usr/lib/x86_64-linux-gnu/libz.so gtk-3 gdk-3 pangocairo-1.0 pango-1.0 atk-1.0 cairo-gobject cairo gdk_pixbuf-2.0 gio-2.0 gobject-2.0 gthread-2.0 glib-2.0 avcodec-ffmpeg avformat-ffmpeg avutil-ffmpeg swscale-ffmpeg dl m pthread rt cudart nppc nppi npps cufft -L/usr/lib/x86_64-linux-gnu
-- 3rdparty dependencies: libjpeg libwebp libtiff libjasper IlmImf
--
-- OpenCV modules:
-- To be built: cudev core cudaarithm flann imgproc ml video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui objdetect ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab python2
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: java python3 viz
--
-- GUI:
-- QT: NO
-- GTK+ 3.x: YES (ver 3.18.9)
-- GThread : YES (ver 2.48.1)
-- GtkGlExt: NO
-- OpenGL support: NO
-- VTK support: NO
--
-- Media I/O:
-- ZLib: /usr/lib/x86_64-linux-gnu/libz.so (ver 1.2.8)
-- JPEG: libjpeg (ver 90)
-- WEBP: build (ver 0.3.1)
-- PNG: /usr/lib/x86_64-linux-gnu/libpng.so (ver 1.2.54)
-- 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:
-- 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: 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/johann/Downloads/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: NO
-- USE NVCUVID: NO
-- NVIDIA GPU arch: 20 21 30 35
-- NVIDIA PTX archs: 30
-- Use fast math: NO
--
-- OpenCL:
-- Version: dynamic
-- Include path: /home/johann/Downloads/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)
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)
-- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.11.0)
-- packages path: lib/python2.7/dist-packages
--
-- Python 3:
-- Interpreter: /usr/bin/python3 (ver 3.5.2)
--
-- Python (for build): /usr/bin/python2.7
--
-- Java:
-- ant: NO
-- JNI: /usr/lib/jvm/default-java/include /usr/lib/jvm/default-java/include/linux /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.11)
-- PlantUML: NO
--
-- Tests and samples:
-- Tests: YES
-- Performance tests: YES
-- C/C++ Examples: NO
--
-- Install path: /usr/local
--
-- cvconfig.h is in: /home/johann/Downloads/opencv-3.1.0/release
-- -----------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /home/johann/Downloads/opencv-3.1.0/release
↧
Ubuntu Opencv with cuda 8.0 compiler error
Hi,
First of all I did my research before posting, if I missed something I am sorry.
I have been trying to compiler opencv from master branch with Cuda 8.0.44.
My cmake command is:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCUDA_ARCH_BIN=52 -DCUDA_ARCH_PTX=52 -DCUDA_NVCC_FLAGS="-D_FORCE_INLINES" -DENABLE_PRECOMPILED_HEADERS=0 ..
and the configuration output is at the link (for compactness):
https://gist.github.com/andreanicastro/8f9eecdfb3ac74ae330415ff2f6114c8
however when it comes to compile cudarithm I get the following error
https://gist.github.com/andreanicastro/b9060f10c55e9f731c19134b471774a4
I am using
Ubuntu 16.04
gcc 5.4.0
Thank you for your help
↧