using caffe in visual studio c++ project

249 views
Skip to first unread message

Samira

unread,
Jul 5, 2016, 12:45:58 PM7/5/16
to Caffe Users

Hello,

I am trying to use Caffe API in my project in visual studio but the find_package(caffe) is not working in cmake because of this warning :

CMake Warning at (find_package):
By not providing "FindCaffe.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Caffe", but
CMake did not find one.

Could not find a package configuration file provided by "Caffe" with any of
the following names:

CaffeConfig.cmake
caffe-config.cmake
Add the installation prefix of "Caffe" to CMAKE_PREFIX_PATH or set
"Caffe_DIR" to a directory containing one of the above files. If "Caffe"
provides a separate development package or SDK, be sure it has been
installed.

Any suggestions?

Thanks,

robosmith

unread,
Jul 5, 2016, 4:18:33 PM7/5/16
to Caffe Users
I suggest you do what I did and create a project to which you add all the source code and set it to compile to DLL.

Then specify all the functions you need to call as __declspec(dllexport) and create a .h file to include in your other project's source.

Samira

unread,
Jul 6, 2016, 1:03:07 PM7/6/16
to Caffe Users
Thanks for the reply, it's a good idea but the thing is that we always want to use the latest available version of Caffe. that way we have to get one version and work with that particular version right?
Reply all
Reply to author
Forward
0 new messages