[英]OpenCV Makefile Error
I am new to OpenCV. 我是OpenCV的新手。 I was trying to run the code in the link below on Ubuntu. 我试图在Ubuntu上的以下链接中运行代码。
I did as they said in the README file but I could not get it work. 我按照他们在README文件中所说的那样做,但是无法正常工作。
I get the errors in the link below when I typed make
in the console. 在控制台中键入make
时,出现以下链接中的错误。
What am I doing wrong? 我究竟做错了什么?
Thanks. 谢谢。
Edit: I have OpenCV installed. 编辑:我已经安装了OpenCV。
As requested, here is the makefile that worked on my system. 根据要求,这是在我的系统上工作的makefile。 Remember that you have to configure your build environment to find the shared libraries (eg, either through ldconfig or LD_LIBRARY_PATH). 请记住,您必须配置构建环境以查找共享库(例如,通过ldconfig或LD_LIBRARY_PATH)。
CFLAGS = -O2 -Wall
LIBS = -lopencv_core -lopencv_imgproc -lopencv_highgui
SRCS = main.cpp condens.cpp lbp.cpp selector.cpp filter.cpp hist.cpp
HEADERS = condens.h lbp.h selector.h filter.h state.h hist.h
particle_tracker: $(SRCS) $(HEADERS)
g++ $(CFLAGS) -o particle_tracker $(SRCS) $(LIBS)
.PHONY clean:
rm -f particle_tracker particle_tracker.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.