我从https://github.com/BVLC/caffe/tree/windows
下载caffe预建的二进制文件创建项目属性表以在我的项目中添加caffe:
AdditionalIncludeDirectories = D:\caffe_2\include;
AdditionalLibraryDirectories = D:\caffe_2\lib;
AdditionalDependencies = caffe.lib;proto.lib;
并编写简单的代码来测试这样的caffe:
#include <caffe/caffe.hpp>
using namespace caffe;
void main() {
Caffe::set_mode(Caffe::Brew::CPU);
}
但是当我想要构建项目时会发生很多错误:
如何在项目中添加caffe?