Search
 
SCRIPT & CODE EXAMPLE
 

C

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/
Comment

PREVIOUS NEXT
Code Example
C :: free array in c 
C :: write to console c 
C :: pre and post increment in c 
C :: C Macros using #define 
C :: c triangle check if triangle is 90 degrees 
C :: visual studio code 
Dart :: screen size flutter 
Dart :: future delayed flutter 
Dart :: flutter generate random color 
Dart :: remove appbar shadow flutter 
Dart :: dateTime.now addyears dart 
Dart :: media query width flutter 
Dart :: order list dart 
Dart :: flutter checkbox 
Dart :: flutter tooltip circle border 
Dart :: Flutter - BoxShadow Widget 
Dart :: flutter dropdown button remove underline 
Dart :: flutter dissmis snackbar 
Dart :: get file type from file path flutter 
Dart :: dart list map index 
Dart :: containskey dart 
Dart :: flutter string to datetime format 
Dart :: dart convert int to string 
Dart :: dart constructor assert 
Dart :: dart write to file 
Dart :: flutter add text on image 
Dart :: raisedbutton full width flutter 
Dart :: filterchip flutter 
Dart :: flutter appbar default padding 
Dart :: singleton classes in dart example 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =