Ask Your Question

rys's profile - activity

2014-05-29 09:44:13 -0600 commented question Using libtiff and opencv

It is in linking I get the error:error LNK2019: unresolved external symbol __imp_TIFFOpen referenced in function "public: __cdecl Frame::Frame(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0Frame@@QEAA@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) 1>C:\Users\rys.ADS\Documents\dev\OCT_Project\x64\Debug\enhancedLeeFilter.exe : fatal error LNK1120: 1 unresolved externals

I need to create code without any DLL at this point

2014-05-29 09:22:50 -0600 asked a question Using libtiff and opencv

I am trying to work with libtiff and opencv together. I installed the opencv precompiled libraries and found that the libtiff library is part of the installation, however, I was not able to use any libtiff function (I am trying to read a multipage tiff file but opencv does not support it). So, I installed the stand-alone libtiff libraries (from libtiff.org) in a separate folder and wrote a function to read the multipage tiff file, but now I cannot combine the opencv program with the libtiff program since there is a clash between the stand-alone libtiff libraries and the opencv libtiff libraries.

Can someone suggest what I need to do in order to combine the two small programs?

Thx

PS My environment: Windows 7 and Microsoft Visual C++ 2012

2014-03-30 07:20:40 -0600 commented answer VS2012 and OpenCV

I tried all options and combinations and still cannot make it work. Can you think of anything else? I am out of ideas.

2014-03-29 13:15:22 -0600 asked a question VS2012 and OpenCV

I found a few similar questions but could not find an answer: I simply try to setup OpenCV on my machine and I wrote the following x64 program where the only opencv-related statement is “Mat image”

include <opencv2\opencv.hpp>

include <iostream>

using namespace cv; using namespace std;

int main( int argc, char** argv ) {

Mat image;

cout << "Start" << endl;

}

But I keep getting the following linker errors:

1>------ Rebuild All started: Project: enhancedLeeFilter, Configuration: Debug Win32 ------ 1> mainELEE.cpp 1>mainELEE.obj : error LNK2019: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPAX@Z) referenced in function "public: __thiscall cv::Mat::~Mat(void)" (??1Mat@cv@@QAE@XZ) 1>mainELEE.obj : error LNK2019: unresolved external symbol "public: void __thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ) 1>mainELEE.obj : error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)

I have Visual Studio 2012 Ultimate installed on a Windows 7, 64 bit machine I installed x64 pre-built libraries of OpenCV 2.4.8. I followed the instructions and set the ENV variable OPENCV_DIR to be: c:\opencv\build\x64\vc11

Inside VS2012 Project properties I set: Properties->VC++ Directories->Include Directories: $(OPENCV_DIR)....\include

Properties->Linker->General->Additional Library Directories: 
$(OPENCV_DIR)\lib; $(OPENCV_DIR)\staticlib

Properties->Linker->Input->Additional Dependencies:
pencv_core248d.lib
opencv_core248.lib
opencv_imgproc248d.lib

opencv_highgui248d.lib opencv_ml248d.lib opencv_video248d.lib opencv_features2d248d.lib opencv_calib3d248d.lib opencv_objdetect248d.lib opencv_contrib248d.lib opencv_legacy248d.lib opencv_flann248d.lib

2014-03-29 13:07:43 -0600 asked a question VS2012 and OpenCV setup

I found a few similar questions but could not find an answer: I simply try to setup OpenCV on my machine and I wrote the following x64 program where the only opencv-related statement is “Mat image”

#include <opencv2\opencv.hpp>
#include <iostream>

using namespace cv;
using namespace std;

int main( int argc, char** argv ) {

    Mat image;

    cout << "Start" << endl;    
}

But I keep getting the following linker errors:

1>------ Rebuild All started: Project: enhancedLeeFilter, Configuration: Debug Win32 ------
1>  mainELEE.cpp
1>mainELEE.obj : error LNK2019: unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPAX@Z) referenced in function "public: __thiscall cv::Mat::~Mat(void)" (??1Mat@cv@@QAE@XZ)
1>mainELEE.obj : error LNK2019: unresolved external symbol "public: void __thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)
1>mainELEE.obj : error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)

I have Visual Studio 2012 Ultimate installed on a Windows 7, 64 bit machine I installed x64 pre-built libraries of OpenCV 2.4.8. I followed the instructions and set the ENV variable OPENCV_DIR to be: c:\opencv\build\x64\vc11

Inside VS2012 Project properties I set:

Properties->VC++ Directories->Include Directories: $(OPENCV_DIR)\..\..\include

Properties->Linker->General->Additional Library Directories: 
$(OPENCV_DIR)\lib; $(OPENCV_DIR)\staticlib

Properties->Linker->Input->Additional Dependencies:
opencv_core248d.lib
opencv_core248.lib
opencv_imgproc248d.lib
opencv_highgui248d.lib
opencv_ml248d.lib
opencv_video248d.lib
opencv_features2d248d.lib
opencv_calib3d248d.lib
opencv_objdetect248d.lib
opencv_contrib248d.lib
opencv_legacy248d.lib
opencv_flann248d.lib