SDCCInstallWindows

Installing SDCC on Windows
If 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.9.0 under sdcc-win32) from http://sourceforge.net/projects/sdcc/files/ to a directory of your choice.

(2) Run. You must have administrator privileges; it is easiest if you use the same account you will use to build GNU Radio.

(3) Log into the account you will use to build GNU Radio (if you are already logged into that account, log out and log in again). Enter the command

$ which sdcc If the path to  is displayed, you are done. Otherwise you need to add the path to  to your   environment variable.

You can do this in your  (assuming you are using a   shell) or by adding it to your Windows path. The command you need to add to your  is

$ PATH=&quot;$PATH:/cygdrive/c/Program Files/SDCC/bin&quot; if you are using Cygwin and

$ PATH=&quot;$PATH:/c/Program Files/SDCC/bin&quot; if you are using MSYS (assuming that you installed SDCC in ). To add  to your Windows path:


 * open the Windows control panel:
 * go to Performance and Maintenance -&gt; System to get the &quot;System Properties&quot; window
 * click the &quot;Advanced&quot; tab and click &quot;Environment Variables&quot;
 * select &quot;Path&quot; in the top pane and click &quot;Edit&quot;
 * add  to the end of the variable value; if there is already something there, separate the new text from the old with &quot;;&quot;
 * click &quot;OK&quot; in the &quot;Edit Variable&quot;, &quot;Environment Variables&quot;, and &quot;System Properties&quot; windows
 * log out and log back in again

Whichever way you use to set your, you should start a new command window and repeat the   command to be sure that SDCC is found.

Notes:

 * if you prefer, you can build SDCC from source
 * for more information on SDCC, see http://sdcc.sourceforge.net

VPATH builds and make distcheck on Cygwin
Windows SDCC as installed above will not work for  builds (i.e.,   run from another directory) or   because Cygwin symbolic links are not recognized by the Windows version of SDCC. If you want to do a  build or   you can do one of the following:


 * Build and install a Cygwin version of SDCC from source; this is straightforward (configure; make; make install); you will need the Cygwin flex and bison packages.
 * Add scripts for the SDCC components to check for symbolic links (e.g., with ) and substitute copies of the target files (not tried, but should work).
 * Modify usrp/firmware/src/usrp2/Makefile.am to change &quot; &quot; and/or &quot; &quot; to &quot; &quot; in the  target.