找不到Makefile库-lhighgui

时间:2018-07-15 06:43:12

标签: opencv makefile highgui

我在Mac上的anaconda中使用opencv,并尝试使用以下选项编译makefile

CC            = gcc
CXX           = g++
DEFINES       = -DSTANDALONE
CFLAGS        = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS      = -pipe -g -Wno-deprecated -Wall -W -D_REENTRANT $(DEFINES)
INCPATH       = -I. -Iinclude -I/home/*****/opencv2/include/opencv  -I/usr/local/gcc342/include -I/usr/local/include 
LINK          = g++
LFLAGS        = -Wl
LIBS          = -L/home/*****/opencv2/lib -lhighgui -lcv -lcxcore -lcvaux 
RM = rm -f

以下是我的opencv文件夹结构

/Users/***/anaconda3/envs/gdal_env/include/opencv

我相应地更新了路径,但是在编译makefile时显示以下错误:

g++ -Wl -o ../../bin/assess_classification_2D main.o  -L/Users/***/anaconda3/envs/gdal_env/include/opencv -lhighgui -lcv -lcxcore -lcvaux 
ld: library not found for -lhighgui
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [../../bin/assess_classification_2D] Error 1

有关如何解决的任何建议?

0 个答案:

没有答案