Created
April 4, 2013 15:51
-
-
Save kevinhughes27/5311609 to your computer and use it in GitHub Desktop.
g++ Makefile for OpenCV Project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = g++ | |
CFLAGS = -g -Wall | |
SRCS = HelloWorld.cpp | |
PROG = HelloWorld | |
OPENCV = `pkg-config opencv --cflags --libs` | |
LIBS = $(OPENCV) | |
$(PROG):$(SRCS) | |
$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS) |
Thank you ..super useful !!!
Thank you. I just needed to change OPENCV = pkg-config opencv --cflags --libs
to OPENCV = pkg-config opencv4 --cflags --libs
to make it to work since I have OpenCV 4.1.2 installed.
when i use this i got
Makefile:10: *** missing separator. Stop.
how to solve it @kevin Hughes
@ajayshinith change space to tab
Thank you 👍
Thank you! 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you very much. @ollewelin