"how to compile opencv c++ in ubuntu" Code Answer's

You're definitely familiar with the best coding language C++ that developers use to develop their projects and they get all their queries like "how to compile opencv c++ in ubuntu" answered properly. Developers are finding an appropriate answer about how to compile opencv c++ in ubuntu related to the C++ coding language. By visiting this online portal developers get answers concerning C++ codes question like how to compile opencv c++ in ubuntu. Enter your desired code related query in the search bar and get every piece of information about C++ code related question on how to compile opencv c++ in ubuntu. 

how to compile opencv c++ in ubuntu

By Xanthous XenomorphXanthous Xenomorph on May 14, 2020
   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%.*}"

Source: help.ubuntu.com

Add Comment

0

how to compile opencv c++ in ubuntu

By Xanthous XenomorphXanthous Xenomorph on May 14, 2020
   1 $ alias opencv="~/.compile_opencv.sh"
   2 $ opencv opencvtest.c
   3 $ ./opencvtest

Source: help.ubuntu.com

Add Comment

0

All those coders who are working on the C++ based application and are stuck on how to compile opencv c++ in ubuntu can get a collection of related answers to their query. Programmers need to enter their query on how to compile opencv c++ in ubuntu related to C++ code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about how to compile opencv c++ in ubuntu for the programmers working on C++ code while coding their module. Coders are also allowed to rectify already present answers of how to compile opencv c++ in ubuntu while working on the C++ language code. Developers can add up suggestions if they deem fit any other answer relating to "how to compile opencv c++ in ubuntu". Visit this developer's friendly online web community, CodeProZone, and get your queries like how to compile opencv c++ in ubuntu resolved professionally and stay updated to the latest C++ updates. 

C++ answers related to "how to compile opencv c++ in ubuntu"

View All C++ queries

C++ queries related to "how to compile opencv c++ in ubuntu"

Browse Other Code Languages

CodeProZone