Altera_Forum
Honored Contributor
8 years agoVS2010 build opencl host fail problem
I use VS2010 to build opencl host program.
But I can not build it successfully. Before builing the code, I already run the batch file to st PATH. But VS2010 still has error message, how to solve it. The error message as below: 1>InitializeBuildStatus: 1> Touching "x64\Release\matrix_con.unsuccessfulbuild". 1>SetCompileConfig: 1> ERROR: Could not find the 'aocl' command when trying to execute 'aocl compile-config'. 1> Please ensure that '%ALTERAOCLSDKROOT%\bin' is on the path; refer to the Intel(R) FPGA SDK for OpenCL(TM) Getting Started Guide for more information on setting up your environment. 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:00.02 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== batch file: set ALTERAOCLSDKROOT=C:\intelFPGA_pro\17.0\hld set AOCL_BOARD_PACKAGE_ROOT=C:\intelFPGA_pro\17.0\hld\board\a10_ref set PATH=%ALTERAOCLSDKROOT%\bin;%PATH%;%ALTERAOCLSDKROOT%\host\windows64\bin;%AOCL_BOARD_PACKAGE_ROOT%\windows64\bin;%ALTERAOCLSDKROOT%\windows64\bin