compile opencv program
prashad@ubuntu:~/$ g++ sample.cpp `pkg-config --cflags --libs opencv`
NOTE: compiling any program for opencv , we need to add `pkg-config --flags --libs opencv` otherwise it prompts undefined references errors. to eliminate below errors please compile like above command.
Compilation errors:
open_videofile.cpp:(.text+0x53): undefined reference to `cv::VideoCapture::VideoCapture(cv::String const&)'
open_videofile.cpp:(.text+0x71): undefined reference to `cv::VideoCapture::isOpened() const'
open_videofile.cpp:(.text+0xca): undefined reference to `cv::VideoCapture::get(int) const'
tags: ubuntu, C++, opencv
usefull link:
https://www.learnopencv.com/how-to-compile-opencv-sample-code/
Also in C:
- division recursiva
- armstrong number in c
- what is strikethrough in markdown
- read a binary file c
- With a suitable example, explain increment, decrement and compound assignment operators
- is it possible to access argv in function
- Docker error Error response from daemon: conflict: unable to remove repository reference
- BlockChain in c
- linux_reboot_magic2
- fgfgfgfgfgfgheheheheheh
- arduino define
- factors using recursion
- for statement in c
- string compare in c
- parcourir char c
- double return type in c
- logarithmus c math.h
- Access denied creating xampp-control.ini
- c check if null
- latex noindent
- sleep in c programming
- windows block application au demarrage regegit
- division en java
- matrix c declaration