Installing SDCC on WindowsIf you have a USRP, you will need the Small Device C Compiler (SDCC) in order to build the firmware. (If you don't have a USRP, you can skip this step.) The SDCC is available as a self-installing binary package for Windows. To install it: (1) Download (2) Run $ which sdcc If the path to sdcc is displayed, you are done. Otherwise
you need to add the path to sdcc to your PATH
environment variable.You can do this in your ~/.bash_profile
(assuming you are using a bash shell) or by adding it to your
Windows path. The command you need to add to your ~/.bash_profile is $ PATH="$PATH:/cygdrive/c/Program Files/SDCC/bin" if you are using Cygwin and $ PATH="$PATH:/c/Program Files/SDCC/bin" if you are using MSYS (assuming that you installed SDCC in C:\Program Files\SDCC ). To add sdcc to your Windows
path: * open the Windows control panel: * go to Performance and Maintenance
-> System to get the "System Properties" window * click the "Advanced" tab
and click "Environment Variables" * select "Path" in the top pane and click
"Edit" * add C:/Program Files/SDCC/bin to the end of the variable
value; if there is already something there, separate the new text from the old
with ";" * click "OK" in the "Edit Variable", "Environment Variables", and
"System Properties" windows * log out and log back in againWhichever way you use to set your PATH , you should start a new command window and
repeat the which sdcc command to be sure that SDCC is found.
Notes:
VPATH builds and make distcheck on CygwinWindows SDCC as installed above will not work forVPATH builds (i.e.,
configure run from another directory) or make
distcheck because Cygwin symbolic links are not recognized by the Windows
version of SDCC. If you want to do a VPATH build or make
distcheck you can do one of the following:
注:Installing SDCC on Windows(原文出处,翻译整理仅供参考!) |