Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all 304 articles
Browse latest View live

DLL and Lib files not being generated

$
0
0
I have been trying for a couple of days to get OpenCV to compile and output dll and lib files from the tutorial (http://docs.opencv.org/3.1.0/d3/d52/tutorial_windows_install.html#gsc.tab=0). I go through the CMake list, and all of the dlls are selected to be output, but when I open the OpenCV sln file and build for both Debug and Release, none of the dlls are output to the bin folder. Am I doing something obviously wrong?

Build Opencv3.1.0 on window x64 with visual studio 2011 into one dll

$
0
0
Since ORB use 500 as its default feature point number. I want to change its default value to 30000. That will need to rebuild the opencv DLLs. I found that there is only one opencv_java310.dll. I ran cmake-gui to generate the visual studio project file and build it with visual studio 2011. I have some question on the build procedure. 1. After compilation, I got several opencv_xxxx.dll. How can I build one DLL which contains all opencv_xxx.dll just like the opencv_java310.dll in the opencv windows installation package? 2. When I run cmake-gui it always shows java compilation option as unavailable. I have installed ant on my PC. which step does I miss? 3. I found feature point in ORB FeatureDetector is 500. In Opecv 3.1.0 java interface there is no method to change that value. Is it a good way if FeatureDetector provide public interface for user to change the default feature pointer value? why not? Thanks/Zongjun

Build Opencv 3.1 + Contrib (face module) for Java

$
0
0
Hi guys, I'm looking to use in my Java application the face recognition features provided in the contrib modules but I'm facing a blocking issue : I can't manage to build the opencv_java310.dll. I have read a lot and tried all that I could think about and today I'm requesting your help please. In brief, the log file (opencv\build\modules\java\opencv_java.dir\Debug\opencv_java.log) after the build process fails show: >[...]> face.cpp 1>C:\DEV\C\opencv\build\modules\java\face.cpp(1726):> error C2664: 'bool> cv::face::TopNPredictCollector::filter(int> *,double *,const int)' : cannot convert argument 1 from 'jint *' to> 'int *'> Types pointed to are unrelated; conversion requires> reinterpret_cast, C-style cast or> function-style cast>>1>C:\DEV\C\opencv\build\modules\java\face.cpp(1961):> error C2664: 'bool> cv::face::PredictCollector::defaultFilter(int> *,double *,const int)' : cannot convert argument 1 from 'jint *' to> 'int *'> Types pointed to are unrelated; conversion requires> reinterpret_cast, C-style cast or> function-style cast>>1>C:\DEV\C\opencv\build\modules\java\face.cpp(2032):> error C2664: 'bool> cv::face::PredictCollector::filter(int> *,double *,const int)' : cannot convert argument 1 from 'jint *' to> 'int *'> Types pointed to are unrelated; conversion requires> reinterpret_cast, C-style cast or> function-style cast>>1>C:\DEV\C\opencv\build\modules\java\face.cpp(2504):> error C2664: 'bool> cv::face::MinDistancePredictCollector::filter(int> *,double *,const int)' : cannot convert argument 1 from 'jint *' to> 'int *'> Types pointed to are unrelated; conversion requires> reinterpret_cast, C-style cast or> function-style cast>>1>Done Building Project "C:\DEV\C\opencv\build\modules\java\opencv_java.vcxproj">(Rebuild target(s)) -- FAILED. My cmake log shows: -Python 3.4.4 64 bits -Ant 1.8.4 -Java jdk 1.7 64 bits I'm building with Visual Studio 12 (2013) Below are the changes I made in cmake: - BUILD_SHARED_LIBS:BOOL=0 - BUILD_opencv_line_descriptor:BOOL=0 - BUILD_opencv_bgsegm:BOOL=0 - OPENCV_EXTRA_MODULES_PATH:PATH=C:/DEV/C/opencv_contrib-master/modules - BUILD_opencv_rgbd:BOOL=0 - BUILD_opencv_stitching:BOOL=0 - BUILD_TESTS:BOOL=0 - BUILD_opencv_surface_matching:BOOL=0 - BUILD_opencv_videostab:BOOL=0 - BUILD_opencv_saliency:BOOL=0 - BUILD_opencv_reg:BOOL=0 - BUILD_opencv_bioinspired:BOOL=0 - BUILD_opencv_calib3d:BOOL=0 - BUILD_PERF_TESTS:BOOL=0 - BUILD_opencv_datasets:BOOL=0 - BUILD_opencv_features2d:BOOL=0 - BUILD_DOCS:BOOL=0 - BUILD_opencv_ccalib:BOOL=0 - BUILD_opencv_optflow:BOOL=0 I have also tried to build contrib with the version 2.4.9 and 3.0 in case there was a compatibiliy issue but no luck. Please let me know if you need any other information. That's my last hope I fear. Thanks.

Build for Visual Studio 2015

$
0
0
Hello, Please could you help me - I'm struggling to get going with OpenCV. I'm having significant difficulties Building OpenCV 3.0.0 for Microsoft Visual Studio 2015 v14.0.24720.00 Following the steps in a [tutorial blog](http://dogfeatherdesign.com/opencv-3-0-microsoft-visual-studio-2015-cmake-and-c/), I have used cmake to create a set of build files, and then attempted to build from the solution created. I encounter a series of build errors relating to missing The build errors I have encountered are included here: [C:\fakepath\OpenCV_3_Build Errors.JPG](/upfiles/1456337304111034.jpg) [C:\fakepath\OpenCV_3_Build Errors2.JPG](/upfiles/14563373234848207.jpg) [C:\fakepath\OpenCV_3_Build Errors3.JPG](/upfiles/14563373418913407.jpg) Please could you give me some advice on whether these could be related to a known issue Thank you for your help James

Building OpenCV 3.1.0 on Windows with viz3d

$
0
0
Hi, I tried to build opencv 3.1.0 from source on windows (windows 10, visual studio 2015, 64 bit), to get the viz3d module. I downloaded and build the vtk (I tried both 7.0.0 and 6.3.0). But I get the following error on building **Error C2143 syntax error: missing ';' before '*' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2825 'cv::viz::vtkCloudMatSink': must be a class or namespace when followed by '::' Error C2510 'vtkCloudMatSink': left of '::' must be a class/struct/union Error C2059 syntax error: '{' Error C2143 syntax error: missing ';' before '{' Error C2447 '{': missing function header (old-style formal list?) Error C3083 'vtkCloudMatSink': the symbol to the left of a '::' must be a type Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2063 'cv::viz::vtkCloudMatSink': not a function Error C2084 function 'int cv::viz::vtkCloudMatSink' already has a body Error C3755 'vtkCloudMatSink': a delegate may not be defined Error C3083 'vtkCloudMatSink': the symbol to the left of a '::' must be a type Error C2588 '::~vtkCloudMatSink': illegal global destructor Error C1903 unable to recover from previous error(s); stopping compilation in \vizsrc\vtk\vtkCloudMatSink.cpp 55 Error C2065 'vtkCloudMatSource': undeclared identifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2065 'VTK_FLOAT': undeclared identifier Error C2131 expression did not evaluate to a constant Error C3646 'array_type': unknown override specifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2065 'VTK_DOUBLE': undeclared identifier Error C2131 expression did not evaluate to a constant Error C3646 'array_type': unknown override specifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3083 'vtkCloudMatSource': the symbol to the left of a '::' must be a type Error C2039 'vtkCloudMatSource': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3861 'SetNumberOfInputPorts': identifier not found Error C3083 'vtkCloudMatSource': the symbol to the left of a '::' must be a type Error C2588 '::~vtkCloudMatSource': illegal global destructor Error C1903 unable to recover from previous error(s); stopping compilation Error C2065 'vtkImageMatSource': undeclared identifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'vtkImageMatSource': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers Error C2227 left of '->SetNumberOfInputPorts' must point to class/struct/union/generic type Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers Error C2227 left of '->ImageData' must point to class/struct/union/generic type Error C2065 'vtkSmartPointer': undeclared identifier Error C2065 'vtkImageData': undeclared identifier Error C2039 'New': is not a member of '`global namespace'' Error C3861 'New': identifier not found Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'RequestInformation': is not a member of 'cv::viz' Error C2065 'vtkInformation': undeclared identifier Error C2059 syntax error: ',' Error C2143 syntax error: missing ';' before '{' Error C2447 '{': missing function header (old-style formal list?) Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'RequestData': is not a member of 'cv::viz' Error C2065 'vtkInformation': undeclared identifier Error C2059 syntax error: ',' Error C2143 syntax error: missing ';' before '{' Error C2447 '{': missing function header (old-style formal list?) Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'SetImage': is not a member of 'cv::viz' Error C2065 'InputArray': undeclared identifier Error C2146 syntax error: missing ')' before identifier '_image' Error C2143 syntax error: missing ';' before '{' Error C2447 '{': missing function header (old-style formal list?) Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'copyGrayImage': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2143 syntax error: missing ',' before '&' Error C2065 'output': undeclared identifier Error C2227 left of '->GetScalarPointer' must point to class/struct/union/generic type Error C2065 'output': undeclared identifier Error C2227 left of '->GetIncrements' must point to class/struct/union/generic type Error C2065 'source': undeclared identifier Error C2228 left of '.rows' must have class/struct/union Error C2065 'source': undeclared identifier Error C2228 left of '.ptr' must have class/struct/union Error C2062 type 'unsigned char' unexpected Error C2065 'source': undeclared identifier Error C2228 left of '.cols' must have class/struct/union Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'copyRGBImage': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2143 syntax error: missing ',' before '&' Error C2065 'Vec3b': undeclared identifier Error C2065 'dptr': undeclared identifier Error C2061 syntax error: identifier 'Vec3b' Error C2065 'output': undeclared identifier Error C2227 left of '->GetIncrements' must point to class/struct/union/generic type Error C2065 'Vec3b': undeclared identifier Error C2065 'source': undeclared identifier Error C2228 left of '.rows' must have class/struct/union Error C2065 'Vec3b': undeclared identifier Error C2065 'drow': undeclared identifier Error C2065 'dptr': undeclared identifier Error C2065 'source': undeclared identifier Error C2228 left of '.ptr' must have class/struct/union Error C2062 type 'unsigned char' unexpected Error C2065 'source': undeclared identifier Error C2228 left of '.cols' must have class/struct/union Error C2228 left of '.channels' must have class/struct/union Error C2065 'drow': undeclared identifier Error C3861 'Vec3b': identifier not found Error C3083 'vtkImageMatSource': the symbol to the left of a '::' must be a type Error C2039 'copyRGBAImage': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2143 syntax error: missing ',' before '&' Error C2065 'Vec4b': undeclared identifier Error C2065 'dptr': undeclared identifier Error C2061 syntax error: identifier 'Vec4b' Error C2065 'output': undeclared identifier Error C2227 left of '->GetIncrements' must point to class/struct/union/generic type Error C2065 'Vec4b': undeclared identifier Error C2065 'source': undeclared identifier Error C2228 left of '.rows' must have class/struct/union Error C2065 'Vec4b': undeclared identifier Error C2065 'drow': undeclared identifier Error C2065 'dptr': undeclared identifier Error C2065 'source': undeclared identifier Error C2228 left of '.ptr' must have class/struct/union Error C2062 type 'unsigned char' unexpected Error C2065 'source': undeclared identifier Error C2228 left of '.cols' must have class/struct/union Error C2228 left of '.channels' must have class/struct/union Error C2065 'drow': undeclared identifier Error C3861 'Vec4b': identifier not found in \viz\src\vtk\vtkImageMatSource.cpp Error C2065 'vtkOBJWriter': undeclared identifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3083 'vtkOBJWriter': the symbol to the left of a '::' must be a type Error C2039 'vtkOBJWriter': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2079 'fout' uses undefined class 'std::basic_ofstream>' Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers Error C2227 left of '->DecimalPrecision' must point to class/struct/union/generic type Error C2228 left of '.precision' must have class/struct/union Error C2355 'this': can only be referenced inside non-static member functions or non-static data member initializers Error C2227 left of '->FileName' must point to class/struct/union/generic type Error C3083 'vtkOBJWriter': the symbol to the left of a '::' must be a type Error C2588 '::~vtkOBJWriter': illegal global destructor Error C1903 unable to recover from previous error(s); stopping compilation in \viz\src\vtk\vtkOBJWriter.cpp Error C2065 'vtkTrajectorySource': undeclared identifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3083 'vtkTrajectorySource': the symbol to the left of a '::' must be a type Error C2039 'vtkTrajectorySource': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C3861 'SetNumberOfInputPorts': identifier not found Error C3083 'vtkTrajectorySource': the symbol to the left of a '::' must be a type Error C2588 '::~vtkTrajectorySource': illegal global destructor Error C1903 unable to recover from previous error(s); stopping compilation in \viz\src\vtk\vtkTrajectorySource.cpp Error C2065 'vtkVizInteractorStyle': undeclared identifier Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2059 syntax error: '}' Error C2143 syntax error: missing ';' before '}' Error C3083 'vtkVizInteractorStyle': the symbol to the left of a '::' must be a type Error C2039 'vtkVizInteractorStyle': is not a member of 'cv::viz' Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int Error C2065 'FlyMode': undeclared identifier Error C2065 'MotionFactor': undeclared identifier Error C2065 'keyboardCallback_': undeclared identifier Error C2065 'keyboard_callback_cookie_': undeclared identifier Error C2065 'mouseCallback_': undeclared identifier Error C2065 'mouse_callback_cookie_': undeclared identifier Error C2065 'win_size_': undeclared identifier Error C3861 'Vec2i': identifier not found Error C2065 'win_pos_': undeclared identifier Error C3861 'Vec2i': identifier not found Error C2065 'max_win_size_': undeclared identifier Error C3861 'Vec2i': identifier not found Error C2065 'stereo_anaglyph_redblue_': undeclared identifier Error C2065 'KeysDown': undeclared identifier Error C2065 'UseTimers': undeclared identifier Error C2065 'DiagonalLength': undeclared identifier Error C2065 'MotionStepSize': undeclared identifier Error C2065 'MotionUserScale': undeclared identifier Error C2065 'MotionAccelerationFactor': undeclared identifier Error C2065 'AngleStepSize': undeclared identifier Error C3083 'vtkVizInteractorStyle': the symbol to the left of a '::' must be a type in \viz\src\vtk\vtkVizInteractorStyle.cpp** Any help on this would be appreciated.

Building OpenCV 3.1 with VTK 6.3

$
0
0
I am trying to build OpenCV with VTK but i am getting following error > /usr/bin/ld:> /usr/local/lib/libvtkRenderingOpenGL-6.3.a(vtkRenderingOpenGLObjectFactory.cxx.o):> relocation R_X86_64_32 against> `.rodata.str1.1' can not be used when> making a shared object; recompile with> -fPIC /usr/local/lib/libvtkRenderingOpenGL-6.3.a:> error adding symbols: Bad value> collect2: error: ld returned 1 exit> status make[2]: ***> [lib/libopencv_viz.so.3.1.0] Error 1> make[1]: ***> [modules/viz/CMakeFiles/opencv_viz.dir/all]> Error 2 make[1]: *** Waiting for> unfinished jobs.... Can anybody point out what the problem is?

Build problem: libz.a(gzlib.o): relocation R_X86_64_32S against `.rodata'...

$
0
0
I am trying to `cmake` the source cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=OFF \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D BUILD_EXAMPLES=ON .. and I am getting: Linking CXX shared library ../../lib/libopencv_core.so /usr/bin/ld: /usr/local/lib/libz.a(gzlib.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libz.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [lib/libopencv_core.so.3.1.0] Error 1 make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] Error 2 make: *** [all] Error 2 I removed and re-installed zlib but I am still getting this error. Any idea how to proceed?

Setup.py for python bindings?

$
0
0
This is somewhere between a question and a feature request. We have a handful of requests for opencv to be installed on our computational cluster which we've done, however getting it to import into different python environments is a huge problem with the way the bindings are built currently. We could use the standard approach, but this will only add it to the root versions of python included in the OS and would only be available on the non build nodes with some additional RPM work. Additionally it would be unavailable to anybody that decides to spin up a virtualenv, add an anaconda environment, or attempts to evaluate the intel python variant. If it were possible to build the python libraries separately against to current environment version of python either with a setup.py or separate cmake call this would resolve this issue and make the tool significantly easier to deploy to end users. Especially compared to the current model where python discovery is done by cmake during the initial setup so you have to rebuild the entire toolset in order to target a different python version (I've found no easy way to change the version of python discovered and issue a new 'make' command at least). Any help would be appreciated.

Error while mingw32-make

$
0
0
Hi, I want to use Code::Blocks as IDE. So i have to build the OpenCV on my own. Currently I am trying to make OpenCV Version 2.4.11. But every time the process fails at 28% with following errors: > F:\Programme\opencv\sources\modules\highgui\src\window_w32.cpp: In function 'int icvCreateTrackbar(const char*, const char*, int*, int, CvTrackbarCallback, CvTr ackbarCallback2, void*)': F:\Programme\opencv\sources\modules\highgui\src\window_w32.cpp:1853:81: error: ' BTNS_AUTOSIZE' was not declared in this scope F:\Programme\opencv\sources\modules\highgui\src\window_w32.cpp:1853:97: error: ' BTNS_BUTTON' was not declared in this scope mingw32-make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_w 32.cpp.obj] Error 1 mingw32-make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2 mingw32-make: *** [all] Error 2 Does anyone know what the problem could be? I have searched in many forums, but did not found any solution. So, please help me! Regards Robo11

the environment to build OpenCV sdk for android-x86

$
0
0
Hi, I was trying to build my own OpenCV SDK for android-x86 platform. I've cloned the repo from https://github.com/Itseez/opencv , and set "opencv/platforms/android/android.toolchain.cmake" as CMake toolchain file. And my environment is - Host: Ubuntu 14.04 x86_64 - Toolchain: android-ndk-r10e - CMake version: 3.2.2 And my target device is an x86 tablet which runs Android L. The cmake command is as following > cmake \
-DANDROID_ABI=x86 \
-DCMAKE_TOOLCHAIN_FILE=$OPENCV_SRC_DIR/platforms/android/android.toolchain.cmake \
-DCMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_INSTALL_PREFIX=$OPENCV_INSTALL_DIR \
-DEIGEN_INCLUDE_PATH=$EXT_SRC_DIR/Eigen \
-DOPENCV_EXTRA_MODULES_PATH=$EXT_SRC_DIR/opencv_contrib/modules \
$OPENCV_SRC_DIR
However, the libraries I built can't work well, which always cause segmentation fault when any of OpenCV functions was invoked. Would you please tell me how did you build the official OpenCV-3.1.0-android-sdk ? Because the official sdk libraries works very well on my device, I'd like to know the difference. Please let me know if any further information is required. Thanks.

VideoWriter undefined

$
0
0
I am writing some code to work with superres. In a cpp I include the following "opencv2/core/core.hpp" "opencv2/videoio.hpp" "opencv2/highgui/highgui.hpp" however when I go to build I get the following error: "cv::VideoWriter::open(cv::String const&, int, double, cv::Size_, bool)", referenced from: _main "cv::VideoWriter::VideoWriter()", referenced from: _main "cv::VideoWriter::~VideoWriter()", referenced from: _main "cv::VideoWriter::operator<<(cv::Mat const&)", referenced from: _main what am I missing ? Thanks Ahead of time

Build OpenCV 2.4.9 for Android

$
0
0
Hello, I'm looking for a way to compile the OpenCV sources for Android architectures. I tried with any single tutorial and guide existing on the internet including this one: http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk but I got no luck. I also noticed that each one guide I found comes out with a custom, undocumented solution. Can you please provide a straightforward way to do that? Thanks in advance.

Incompatible library version: libopencv_sfm.3.1.dylib requires version 4.0.0 or later, but libgflags.2.dylib provides version 2.0.0

$
0
0
Hi everyone, I've successfully upgraded to OpenCV 3.1 built and configured from source on my mac. When try to test the built libs I always get the following error (python for example) (cv) sir:build sir$ python Python 2.7.10 (default, Jul 13 2015, 12:18:59) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "", line 1, in ImportError: dlopen(/Users/sir/.virtualenvs/cv/lib/python2.7/site-packages/cv2.so, 2): Library not loaded: /usr/local/lib/libgflags.2.dylib Referenced from: /usr/local/lib/libopencv_sfm.3.1.dylib Reason: Incompatible library version: libopencv_sfm.3.1.dylib requires version 4.0.0 or later, but libgflags.2.dylib provides version 2.0.0>>> Now, since there is no version 4.0.0 of libgflags I wonder what's going on? Anyone has an idea? I'd really appreciate it, since I cannot compile my OpenCV-Based projects anymore atm *disaster* *help* :)

OpenCV build errors:error MSB6006: "cmd.exe" exited with code 1

$
0
0
I built my opencv source(**opencv3.1.0**) using **VS2013** with **CUDA7.5**, **TBB**, **Python2.7.11**, **Eigen3.2.8**, and then I get a error message as follows. ``` Error 45333: error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_python2 ``` Whichever I built it in Debug mode or Release mode, the same error happened. I know that python do not provide python27_d.lib, so when I built in Debug mode before (e.g. opencv2.4.9), link error (`can not find python27_d.lib`) happened. But this time, although I built in Release mode, error 35333 happened as mentioned before. Here is my cmake configuration about python modules. ![image description](/upfiles/14593890477967814.png) I google similar questions but do not get what I want, so anyone can solve it ? Thanks in advance !

Compiling Opencv for Android using clang

$
0
0
I am able to build opencv sdk for Android using gcc but am not able to figure out how to do the same using clang. I see that there are options for clang in the python build script but when I actually try to enable those options another part of the build process complains saying that only the gcc specific options can be used. Did anyone succeed in compiling with clang ? Any help is greatly appreciated.

Having trouble Building Opencv 3.1

$
0
0
Hi! It's not my first openCV build just to know :) Now, i made my own libary with cMake with contribute lib.-s and CUDA 7.5. I build 64 bit and my compiler is VS 12 2013 x64 (a read that u canot use CUDA lib.-s if its not compiled 64 bit.). Now i did as before, just like many tutorials and so ever, and i cannot build my opencv_videoio300.dll. I have the lib, but nothing else. Error 97 error LNK2019: unresolved external symbol "private: long __cdecl videoInput::getDevice(struct IBaseFilter * *,int,wchar_t *,char *)" (?getDevice@videoInput@@AEAAJPEAPEAUIBaseFilter@@HPEA_WPEAD@Z) referenced in function "public: virtual double __cdecl cv::VideoCapture_DShow::getProperty(int)const " (?getProperty@VideoCapture_DShow@cv@@UEBANH@Z) C:\opencv3\build\modules\videoio\cap_dshow.obj 1 Error 98 error LNK1120: 1 unresolved externals C:\opencv3\build\bin\Release\opencv_videoio300.dll This is the only error in the whole INSTALL build. Cannot figure out whats the problem. Any suggestion?

Create opencv_world310.lib for x86

$
0
0
I'm trying to compile opencv3.1 for x86 application using VS2015. Everything goes okay but when the building is done,inside the lib folder, I get all the libraries while I would like to get only the opencv_world310.lib as in the x64 folder. What am I doing wrong? Is there some options to use? Thanks!

TBB libraries not found

$
0
0
Building OpenCV 3.1 with TBB 4.4 results in link failure, TBB libraries not found. CMake is using tbb\intel_64 as lib path. Lib files are located in tbb\intel_64_win Build environment: VS 2015 x64 TBB ver: 4.4 Have updated cmake files been created to correct the problem?

Build opencv 3.1 with Visual Studio 2008

$
0
0
I'm trying to build Opencv 3.1 with Visual Studio 2008 but I get some errors as: - `stdint.h` not found - `__cpuidex` not defined - `data()` is not a member function of `std::vector` Is it possible buld Opencv 3.1 with VS2008? If yes, what do I have to do? If no, which is the last version compatible with VS2008? Thanks!

How to build opencv 3.1 with CUDA 7.5 and contrib modules?

$
0
0
System: - Windows 8.1 Pro 64 bit - Visual Studio 2013 Professional - CUDA Toolkit 7.5 64 bit - Newest version of OpenCV master and contrib source files from the official git repo I read just about every tutorial on the subject, but they seem to be really out of date. The newest ones I could find where posted around 2014 for OpenCV 2.4. Even after reading all that was available, resolving all the errors that CMake made, there was not a single instance that Visual Studio would build OpenCV with CUDA. Without CUDA it will go trough, but the moment I add CUDA to the mix, the build fails every time. All the error and warning types: 1. Warning 2 warning LNK4044: unrecognized option '/LC:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/lib/x64'; ignored C:\Users\newba_000\Documents\OpenCVSources\OpenCV_built\modules\imgproc\LINK opencv_imgproc 2. Error 3 error LNK1104: cannot open file '..\..\lib\Debug\opencv_core310d.lib' C:\Users\newba_000\Documents\OpenCVSources\OpenCV_built\modules\imgproc\LINK opencv_imgproc 3. Error 1 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_core 4. Error 4 error MSB6006: "cmd.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets 170 5 opencv_cudaarithm CUDA works for sure. Tested it with NVIDIA sample code and with some OpenCV functions using [OpenCV Nuget](https://www.nuget.org/packages/opencvcuda-release.redist/) package.
Viewing all 304 articles
Browse latest View live