在 mac 64 位上使用 openNI NITE Kinect 编译 opencv 代码
我一直在尝试使用 opencv 和 openNI NITE 编译我的代码。终于摆脱了所有错误,现在它运行没有错误,我得到了我的 main.o 但我没有得到可执行文件。下面是我的 makefile 的内容
OSTYPE := $(shell uname -s)
SRC_FILES = \ ../RGB_display/main.cpp
INC_DIRS += ../RBG_display -I/opt/local/include/opencv
EXE_NAME = RGB_display
DEFINES = USE_GLUT
DEBUG_LEVEL = -m64 -g3 -O0 CC = g++ CFLAGS = -O3 -I/opt/local/include/opencv -L/opt/local/lib/ LIBS = -lhighgui -lcvaux -lcv -lml -lcxcore -lopencv_imgproc
LDFLAGS = pkg-config --libs opencv
ifeq ("$(OSTYPE)","Darwin") LDFLAGS += -framework OpenGL -framework GLUT 别的 USED_LIBS += 过剩 endif
$(EXE_NAME): main.o $(CC) $(CFLAGS) -o $(EXE_NAME) $(LDFLAGS)
main.o: main.cpp $(CC) $(CFLAGS) -c main.cpp $(LDFLAGS)
include ../NiteSampleMakefile
有人知道这可能有什么问题吗?谢谢!我正在将 opencv 与 macports 一起使用。
I've been trying to compile my code with opencv and openNI NITE. Finally got rid of all errors, now it runs without errors and I get my main.o but I'm not getting an executable file. below are the contents of my makefile
OSTYPE := $(shell uname -s)
SRC_FILES = \
../RGB_display/main.cpp
INC_DIRS += ../RBG_display -I/opt/local/include/opencv
EXE_NAME = RGB_display
DEFINES = USE_GLUT
DEBUG_LEVEL = -m64 -g3 -O0
CC = g++
CFLAGS = -O3 -I/opt/local/include/opencv -L/opt/local/lib/
LIBS = -lhighgui -lcvaux -lcv -lml -lcxcore -lopencv_imgproc
LDFLAGS = pkg-config --libs opencv
ifeq ("$(OSTYPE)","Darwin")
LDFLAGS += -framework OpenGL -framework GLUT
else
USED_LIBS += glut
endif
$(EXE_NAME): main.o
$(CC) $(CFLAGS) -o $(EXE_NAME) $(LDFLAGS)
main.o: main.cpp
$(CC) $(CFLAGS) -c main.cpp $(LDFLAGS)
include ../NiteSampleMakefile
Does anybody know what's possibly wrong with this? Thanks! I'm using opencv with macports.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论