1 | initial version |
Hello this is what I got:
prefix2=~/build_artpec4/install#CHANGE THIS PATH TO THE ONE YOU HAVE!! prefix1=~/build_artpec4#CHANGE THIS PATH TO THE ONE YOU HAVE!!
exec_prefix=${prefix2} libdir= includedir_old=${prefix2}/include/opencv includedir_new=${prefix2}/include
LIBS += ${exec_prefix}/lib/libopencv_ml.a ${exec_prefix}/lib/libopencv_stitching.a ${exec_prefix}/lib/libopencv_objdetect.a ${exec_prefix}/lib/libopencv_calib3d.a ${exec_prefix}/lib/libopencv_features2d.a ${exec_prefix}/lib/libopencv_highgui.a ${exec_prefix}/lib/libopencv_flann.a ${prefix1}/lib/libopencv_ts.a ${exec_prefix}/lib/libopencv_imgproc.a ${exec_prefix}/lib/libopencv_core.a ${prefix1}/3rdparty/lib/libzlib.a -lrt -lpthread -lm -ldl -lstdc++ ${exec_prefix}/lib/libopencv_nonfree.a
CFLAGS +=-I${includedir_old} -I${includedir_new} CXXFLAGS +=-I${includedir_old} -I${includedir_new} $(PROGS):$(OBJS) $(CXX) $(LDFLAGS) $^ $(LIBS)$(LDLIBS) -o $@
#Note you need to link with c++