error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 解决方法

在配置VS2005+OpenCV 2.3时,编译Install的时候会出现此错误:

error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 


解决方法:

右击“Install”,选择“Properties”,选择“Configuration Properties”,选择“Build Events”,选择“Post-Build Event”,将“Command Line”(原本为

"C:\Program Files\CMake 2.8\bin\cmake.exe" -DBUILD_TYPE=$(OutDir) -P cmake_install.cmake

if errorlevel 1 goto :VCReportError)置空即可



注:此方法能使项目编译通过,但不能确定是否解决了OpenCV的问题,有待解决

-----可以确定,这样可以解决问题,OpenCV成功

你可能感兴趣的:(error PRJ0019: A tool returned an error code from "Performing Post-Build Event..." 解决方法)