The object files for namesapace cv [closed]

asked 2014-05-18 08:17:44 -0600

Devil_doom gravatar image

updated 2014-05-18 08:39:35 -0600

berak gravatar image

What I am trying do is basically create a wrapper function for Mingw g++ so that once it is complied ...the exe can automatically be used from the cmd line to compile openCV programs...and I have almost completed it. The only problem is with the cv namespace functions like cv::VideoCapture and all are throwing a linker exception, all the old functions seem to run pretty smoothly though...for libraries I have used the <opencv dir="">/build/x86/vc12/lib and also took the pain to mention all the libs in the wrapper program...still the cv namespace is giving me a hell of a problem. All I need the location of those object files and then its done...my wrapper will be officially complete...and please don't give me any bull** that I will have to use MSVS cuz I really hate bloated IDEs.

This is basically what is being given to the cmd line:

g++ myPro.cpp -o MyPro -I"<the headers="" location="">" -L"<opencv>/build/x86/vc12/lib" -lopencv_core249...............(all the libs)

So what am I am doing wrong exactly....please help me out if you can so that I can upload my code as opensource and give other programmers chance to compile openCV programs directly from the cmd line

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by StevenPuttemans
close date 2014-05-19 03:30:50.334767

Comments

1

you can't use the visual studio libs with mingw. and if that's a recent opencv version, there are no more prebuilt mingw binaries.

so, before you can use it , you will have to build the opencv libs using cmake.

berak gravatar imageberak ( 2014-05-18 08:33:41 -0600 )edit

k, how do I do that?

Devil_doom gravatar imageDevil_doom ( 2014-05-18 09:38:38 -0600 )edit
1

i.e by using the search feature

berak gravatar imageberak ( 2014-05-18 09:47:14 -0600 )edit
1

thanks mate....I have got it using CMake and by far I must say openCV has the most active members and users than any other programming forum ever...anyway thanks a million

Devil_doom gravatar imageDevil_doom ( 2014-05-19 01:16:02 -0600 )edit