Originally Posted by deank
This is my way of setting the stuff. Simple and efficient, up and running in less than 5 mins.
Software Setup for Windows
The general procedure is as follows.
(1) Installation of environment tools (MinGW and MSYS)
(2) Environment variable settings
(3) Setup of the compiler, etc.
Installation of Environment Tools
MinGW and MSYS must be installed as the runtime environment of the kit.
Download the following software from
http://www.mingw.org/download.shtml:
• MinGW-3.1.0-1.exe -> MinGW - Minimalist GNU for Windows - Browse Files at SourceForge.net
• MSYS-1.0.10.exe -> Download MinGW - Minimalist GNU for Windows from SourceForge.net
• msysDTK-1.0.1.exe -> Download MinGW - Minimalist GNU for Windows from SourceForge.net
Install MinGW first. (The default destination is c:\MinGW)
Then install MSYS and msysDTK. (The default destination for both is c:\msys)
Accept the default settings suggested by the packages during installation.
Environment Variable Settings
Once the packages are installed, set the environment variables to be used by the tools. Enter the variable
names exactly as written below. (Unlike most Windows software, some of the tools using these variables
are case-sensitive.)
(1) Right-click the My Computer icon and choose Properties.
(2) Click the Advanced tab.
(3) Click Environment Variables.
(4) Edit System variables as follows.
New System Variable
Variable name: CELL_SDK
Variable value: /c/usr/local/cell (or CELL_SDK=C:/msys/1.0/cell, depending where you have the cell folder)
New System Variable
Variable name: LANG
Variable value: C
Edit System Variable
Variable name: PATH
Variable value: Add the following (with no line breaks) to the existing values.
c:\msys\1.0\bin;
c:\usr\local\cell\host-win32\bin;
c:\usr\local\cell\host-win32\ppu\bin;
c:\usr\local\cell\host-win32\spu\bin;
c:\usr\local\cell\host-win32\Cg\bin
In msys:
Enter the following command and press Enter.
$ cp $CELL_SDK/host-win32/etc/gdbinit.ppu ~/.gdbinit.ppu
This sets up the initial configuration file of the PPU debugger.
Then enter the following command and press Enter.
$ cp $CELL_SDK/host-win32/etc/gdbinit.spu ~/.gdbinit.spu
This sets up the initial configuration file of the SPU debugger.
***
Test if all is ok by compiling a sample:
Open a MinGW console window and type "make" in the appropriate project directory.
For example:
cd $CELL_SDK
cd samples/fw
make
cd testapp
make