Windows compiler Caffe Error: Error MSB4062: Failed to E:\NugetPackages\OpenCV.2.4.10\ from assembly ... The solution

Source: Internet
Author: User

Reference Blog: http://blog.csdn.net/u013277656/article/details/75040459

When compiling caffe on Windows, the Restore Nugetpackages folder is automatically loaded with VS open, which is the various libraries that Caffe need to rely on.
It took a long time. Restore complete compile-time error: Err MSB4062: Failed from assembly
E:\NugetPackages\OpenCV.2.4.10\build\native\private\coapp. NuGetNativeMSBuildTasks.dll Load Task "Nugetpackageoverlay". Failed to load file or assembly "File:///e:\nugetpackages\opencv.2.4.10\build\native\private\coapp. NuGetNativeMSBuildTasks.dll "or one of its dependencies. The system cannot find the file specified.
Make sure that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains the public class that implements Microsoft.Build.Framework.ITask ....
This is a very collapse, obviously is automatically downloaded, how can there be errors?
No way, want to use, methods or to find, after several searches, pro-test available methods, for those who encounter the same error reference.
The solution is as follows:
The first step: Update the Manage NuGet packages, project---you can see the updated button after OpenCV and click Update to opencv2.4.11.
After the update is complete, close the project again, do not worry about compiling, and the compilation will still error: Error 1 error:this project references NuGet package (s) is missing on the this computer. Enable NuGet Package for 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. E:\software\caffe-ssd-microsoft\windows\libcaffe\libcaffe.vcxproj
Step Two:: Select each project of the solution, right-click, unload Project

After uninstalling, edit the vcxproj file,

Replace all the opencv.2.4.10 in the file with opencv.2.4.11, reload the project, and compile. (This is true of every project).

Ii. Supplementary measures

1. Modify the Nugetpackages\opencv.2.4.11\build\native folder inside the OpenCV configuration file Opencv.props, with the editor open later search private

Delete the \ in front of private;

2. Turn off vs2013 and restart vs with Administrator.

Windows compiler Caffe Error: Error MSB4062: Failed to E:\NugetPackages\OpenCV.2.4.10\ from assembly ... The solution

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.