codegen build error on Windows
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Meghana Dinesh
am 27 Jan. 2015
Kommentiert: Ryan Livingston
am 30 Jan. 2015
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/146945/image.png)
Why am I getting the error?
>> !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?
0 Kommentare
Akzeptierte Antwort
Ryan Livingston
am 28 Jan. 2015
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 Kommentare
Ryan Livingston
am 30 Jan. 2015
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Model Configuration Set Customization finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!