필터 지우기
필터 지우기

codegen build error on Windows

조회 수: 1 (최근 30일)
Meghana Dinesh
Meghana Dinesh 2015년 1월 27일
댓글: Ryan Livingston 2015년 1월 30일
I am using codegen for the first time, following the instructions given here. My function is for simple addition of two numbers (as shown in screenshot below)
Why am I getting the error?
I also saw this link. This is the output I got:
>> !echo %SystemRoot%
C:\Windows
>> !echo %Path%
C:\Program Files\MATLAB\R2013a\bin\win64;C:\opencv\build\\x64\vc10\bin;E:\Xilinx\Vivado_HLS\2014.2\win64\tools\opencv
Is there anything I have to change?

채택된 답변

Ryan Livingston
Ryan Livingston 2015년 1월 28일
It appears that your system path does not include the directories where some Windows applications are installed. Is the Path environment variable being edited anywhere anywhere? This could be either via the Windows system menu, or even using the MATLAB function setenv.
My system path includes:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
and when I search for cmd.exe I get:
>> !where cmd.exe
C:\Windows\System32\cmd.exe
so adding these directories should help you move forward.
It is probably advisable to search for "Windows default system path" to see what the default system directories are for your version of Windows and make sure those are present.
  댓글 수: 2
Meghana Dinesh
Meghana Dinesh 2015년 1월 29일
Thanks for your reply.
C:\Windows\System32 is the path where cmd.exe is found (I checked manually in this path and cmd.exe exists there).
In Computer Properties > Environment variables > System Variables > " Path " variable has:
value = %OPENCV_DIR%\x64\vc10\bin;%VIVADO_HLS_HOME%\win64\tools\opencv.
How should I make sure that my system path includes the directories where Windows applications are installed?
Thanks for your time.
Ryan Livingston
Ryan Livingston 2015년 1월 30일
I would try and add:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
to the value of the Path variable. You'll probably need to restart after doing that.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Configuration Set Customization에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by