Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how to complie opencv c++ in ubuntu

//used terminal ubuntu, first step you must in folder this program 
 g++ name_file.cpp -o name_file_output `pkg-config --cflags --libs opencv4`
 
 // http://shalahuddin.me.student.pens.ac.id
Comment

how to compile opencv c++ in ubuntu

   1 #!/bin/bash
   2 echo "compiling $1"
   3 if [[ $1 == *.c ]]
   4 then
   5     gcc -ggdb `pkg-config --cflags opencv` -o `basename $1 .c` $1 `pkg-config --libs opencv`;
   6 elif [[ $1 == *.cpp ]]
   7 then
   8     g++ -ggdb `pkg-config --cflags opencv` -o `basename $1 .cpp` $1 `pkg-config --libs opencv`;
   9 else
  10     echo "Please compile only .c or .cpp files"
  11 fi
  12 echo "Output file => ${1%.*}"
Comment

how to compile opencv c++ in ubuntu

   1 $ alias opencv="~/.compile_opencv.sh"
   2 $ opencv opencvtest.c
   3 $ ./opencvtest
Comment

PREVIOUS NEXT
Code Example
Cpp :: input cpp 
Cpp :: cpp print variable value 
Cpp :: length of string in c++ 
Cpp :: str remove char c++ 
Cpp :: vector to string cpp 
Cpp :: cpp getter as const 
Cpp :: integer range in c++ 
Cpp :: odd numbers 1 to 100 
Cpp :: c++ uint32_t 
Cpp :: c detect os 
Cpp :: best websites for programming 
Cpp :: insertion sort cpp 
Cpp :: unordered_map contains key 
Cpp :: stack c++ 
Cpp :: how to know the number of a certain substring in a string in c++ 
Cpp :: hello c++ 
Cpp :: how to make window resizable in sdl 
Cpp :: vector iterating 
Cpp :: vector in c++ 
Cpp :: inheritance in c++ 
Cpp :: run c++ program mac 
Cpp :: standard template library in c++ 
Cpp :: c++ template vs code 
Cpp :: c++ namespace example 
Cpp :: string erase 
Cpp :: c++ regex count number of matches 
Cpp :: c++ hash map key count 
Cpp :: c++ prime number 
Cpp :: c++ for loop syntax 
Cpp :: c++ if else example 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =