Reference blog: https://blog.csdn.net/zb1165048017/article/details/51355143
VS2013 has been installed on the computer, first download the Windows toolkit (caffe-master) provided by Microsoft from the official website.
1. Copy CommonSettings.props.example under Windows and change the suffix to CommonSettings.props
2. Modify the copied CommonSettings.props configuration file, only under CPU:
3. Double-click caffe.sln in the Windows folder to generate a solution in VS2013:
Then a window will pop up to restore the third-party libraries required by Nuget. After the end, there will be a third-party library folder under the caffe-master parallel folder, including sixteen subfolders:
After generating the solution, VS reports an error: (1) There is an error that the object file is not generated, double-click the error, click OK, and then save.
(2) There is an error that libcaffe.lib cannot be opened: regenerate libcaffe once, repeat the previous step, regenerate the solution for the entire file, and the problem is solved.
4. Set the run item, right-click the solution 'caffe'->Properties->General Properties->Startup Project->Current Selection, and then save.
5. Click caffe->caffe.cpp, press ctrl+F5 to run, the following screen appears, indicating that the installation is successful: