Ask Your Question

paul23's profile - activity

2013-01-26 17:14:52 -0600 commented answer Opencv 2.4.3 linker errors, using visual studio.

@unxnut Hmm went through it all over again and now it "works". (well apart from that I now discovered the standard build options opencv uses the static runtime, and I'm using for my application dynamic runtime already - so now I've got to manually build the libraries anyways).

2013-01-24 09:25:28 -0600 commented answer Opencv 2.4.3 linker errors, using visual studio.

yes, as I said I included the staticlib path in the library folder: $(OPENCV_DIR)\x86\vc10\staticlib; (where opencv_dir goes upto the /build/ directory).

2013-01-24 08:10:49 -0600 asked a question Opencv 2.4.3 linker errors, using visual studio.

Basically I get 100s of linker errors when I try to load a simple test, I included the include directory correctly as well as the library (\build\x86\vc10\staticlib directory. However I get these errors:

1>main.obj : warning LNK4217: locally defined symbol ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z (public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(double)) imported in function _main 1>main.obj : warning LNK4217: locally defined symbol ??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z (public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(int)) imported in function _main 1>opencv_core243d.lib(dxt.obj) : error LNK2001: unresolved external symbol ___security_cookie 1>opencv_imgproc243d.lib(color.obj) : error LNK2001: unresolved external symbol ___security_cookie

(and so on till I get fatal error LNK1120: 318 unresolved externals). The actual library list I imported into the project is:

opencv_calib3d243d.lib
opencv_contrib243d.lib
opencv_core243d.lib
opencv_features2d243d.lib
opencv_flann243d.lib
opencv_gpu243d.lib
opencv_haartraining_engined.lib
opencv_highgui243d.lib
opencv_imgproc243d.lib
opencv_legacy243d.lib
opencv_ml243d.lib
opencv_nonfree243d.lib
opencv_objdetect243d.lib
opencv_photo243d.lib
opencv_stitching243d.lib
opencv_ts243d.lib
opencv_video243d.lib
opencv_videostab243d.lib

What goes wrong? What step am I missing to include?

2013-01-24 06:22:07 -0600 received badge  Supporter (source)
2013-01-24 06:21:52 -0600 commented answer opencv 2.4.3 - missing include files

THIS simple line should be somewhere prominent. (BTW there is no build/lib - as there are library folders for each architecture.

2013-01-24 06:20:23 -0600 received badge  Scholar (source)
2013-01-24 03:43:44 -0600 asked a question opencv 2.4.3 - missing include files

Hello,

I tried to download the opencv package (self extracting 7z archive) from sourceforg (2.4.3). Trying to follow the tutorials. I could find out the library directory etc..

However I am stuck now with the include files: the /include/opencv2 folder is empty (apart from 1 file). Where are the included files & what is the directory I need to add to visual studio?