QT调用编辑caffe c++ API

1、启一个C++ PROJECT,然后把caffe的include文件夹作为include path加进去。
2、把./build/lib作为library bath加进去,把./build/bin作为链接库加进去。
例如:我在QT 下的配置。

          #opencv     
INCLUDEPATH += /usr/local/include \
                /usr/local/include/opencv \
                /usr/local/include/opencv2  \
                #cuda
                /usr/local/cuda/include     \
                #caffe
                /home/zsj/deeplearning/caffe1/include \
                /home/zsj/deeplearning/caffe1/build/src \
                #system
                /usr/local/lib \
                /usr/lib/x86_64-linux-gnu
         #caffe make
LIBS += -L/usr/local/lib  -L/home/zsj/deeplearning/caffe1/build/lib \
        -lopencv_highgui -lopencv_core -lopencv_imgproc \
        -lswscale -lboost_system -lboost_thread -lglog -lgomp -lpthread -lcaffe \
        #opencv lib
        /usr/local/lib/libopencv_core.so \
       /usr/local/lib/libopencv_highgui.so \
       /usr/local/lib/libopencv_imgproc.so \
       /usr/local/lib/libopencv_video.so

你可能感兴趣的:(QT调用编辑caffe c++ API)