linker - How do I link the library containing 'pyrUp' for opencv? -


i've been compiling , linking opencv code past few days following command:

g++ motion.cpp -o motion `pkg-config --cflags --libs opencv` 

but have added call pyrup() function:

pyrup( in, out, size( 640,480 ) ); 

now when compile following linker error:

motion.cpp:(.text+0x1385): undefined reference `cv::pyrup(cv::_inputarray const&, cv::_outputarray const&, cv::size_<int> const&, int)' collect2: ld returned 1 exit status 

what missing? there alternative function should using? thought linking in of opencv libraries.

as understand pkg-config(ref) loads config file here /usr/local/lib/pkgconfig/opencv.pc contains number of settings.

you may have add specific lib contains pyrup on end of line

libs: -l${libdir} -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann 

the opencv.pc file may reside in different folder listed above.

it may using version of opencv doesn't come precompiled library. in case have add source of .cpp file function argument. i'm not sure how use id , not command line.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -