Hi,
I am an absolute beginner in Caffe and I am trying to build the Caffe solution on windows 10 on Visual Studio 2015 with OpenCV 3.1.0. I have been following this https://www.youtube.com/watch?v=nrzAF2sxHHM youtube link for reference.
These are the steps that I have followed till now:-
<CpuOnlyBuild> true </ CpuOnlyBuild>
<UseCuDNN > false </UseCuDNN># BLAS configuration (default = ATLAS)
BLAS ?= openI am still getting the following build errors-
Severity Code Description Project File Line Suppression State
Error This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\..\NugetPackages\OpenCV.2.4.10\build\native\OpenCV.props. libcaffe C:\Users\AD355671\Downloads\caffe-master\caffe-master\windows\libcaffe\libcaffe.vcxproj 376
Severity Code Description Project File Line Suppression State
Error This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\..\..\NugetPackages\OpenBLAS.0.2.14.1\build\native\openblas.targets. caffe C:\Users\AD355671\Downloads\caffe-master\caffe-master\windows\caffe\caffe.vcxproj 100
My questions are:-
Please help as I have been stuck with this for long. Thanks in advance.
Hi,
I had this same problem. To solve it you need to create a folder NugetPackages in the 2nd top directory of your current folder and copy the content of packages (which is in caffe-windows\windows) there.
then you need to rename all libboost**vc120** to libboost**vc140** in boost** folders inside NugetPackages for VS2015 compatibility.
@Adnino
Your comment is so important for me! Thank you for providing this solution!
The directory shall be like below:
+ NugetPackages
|----+ OpenCV.2.4.10
+ caffe
|----+ src
|----+ windows
| |-----+ packages
|----+ Caffe.sln
@Adnino Renaming binaries that were compiled with v120 to pretend they were with v140 is dangerous (and won't work in most cases) since both VS breaks the ABI from version to version. Once again, VS 2015 is not yet supported I encourage you to stick to VS 2013.
@willyd I think you are right. I compiled caffe using VS2015 with the vc120 libs provided by Nuget, and the program just carshes at startup ...
Build using caffe.sln is deprecated please use the precompiled binaries and CMake build.
Most helpful comment
Hi,
I had this same problem. To solve it you need to create a folder
NugetPackagesin the 2nd top directory of your current folder and copy the content ofpackages(which is incaffe-windows\windows) there.then you need to rename all
libboost**vc120**tolibboost**vc140**inboost**folders insideNugetPackagesfor VS2015 compatibility.