Changes between Version 41 and Version 42 of TBR/UserManual/MinGW_Tools_for_Windows


Ignore:
Timestamp:
Sep 22, 2007, 1:42:35 AM (12 years ago)
Author:
ChrisJohns
Comment:

Add setting up a home directory.

Legend:

Unmodified
Added
Removed
Modified
  • TBR/UserManual/MinGW_Tools_for_Windows

    v41 v42  
    3737The MinGW project has 3 packages we are interested in using. You should install them before you install the RTEMS Tools. The first MinGW package contains a Windows native GCC compiler, and GNU make (called mingw32-make). The second package is MSYS for Minimal SYStem (MSYS), and the third is the Minimal SYStem Developers Tool Kit (MSYS DTK). MSYS is a stand alone package based on the excellent and sucessful Cygwin package but simplifed to providing a self hosted mingw32 target POSIX style environment. It provides a shell with enough functionality to run {{{configure</code> scripts from the autooconf package. It is simpler to install and setup than the larger more complex Cygwin package.
    3838
    39  *  [http://prdownloads.sf.net/mingw/MinGW-5.1.3.exe?download MinGW Tools]
    40  *  [http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS Installer]
    41  *  [http://prdownloads.sf.net/mingw/msysDTK-1.0.0.exe?download MinGW MSYS Developers Tool Kit]
     39<blockquote>
     40[http://prdownloads.sf.net/mingw/MinGW-5.1.3.exe?download MinGW Tools]<br />
     41[http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download MSYS Installer]<br />
     42[http://prdownloads.sf.net/mingw/msysDTK-1.0.0.exe?download MinGW MSYS Developers Tool Kit]
     43</blockquote>
     44
     45It is advised to set up a home directory that MSYS can use. If you do not the MSYS shell will use a default one for your login name. If you create a home directory MSYS will use it. To create a home directory simply create a '''HOME''' environment variable. For Windows 2000 and Windows XP open the ''System'' icon on the ''Control Panel'', select the ''Advanced'' tab then the ''Evironment Variables'' button. Add a ''New'' environment variable for your login called '''HOME''' and point it to the home directory you with to use. It could point to a network drive that is a real Unix home directory, your Windows home directory under ''Documents and Settings'' that becomes part of a roaming profile, or just a directory local to the disk.
    4246
    4347Click on the above and install each package. The default settings for these package should be ok for most users.  If there are problems with the above links or to check for other MinGW packages, visit the  [http://www.mingw.org/download.shtml MinGW Download Site] which should refer you to the [http://sourceforge.net/project/showfiles.php?group_id=2435 MinGW Sourceforge Files page].
     
    4953If you have Cygwin installed, or another package which contains Cygwin you should consider removing any paths to it from your global path variable and using batch files to set paths specifically. It can be confusing if you end up mixing all of together. The example batch file above shows how you can manage specific paths for MinGW and RTEMS.
    5054
    51 With MSYS you can run the RTEMS {{{configure</code> script. You can use the MSYS shell which you can find as a menu or Desktop icon. This is just like a Unix shell so you need to know some basic Unix commands to use. You can also run {{{configure</code> from a Windows command prompt started with the rtems.bat file shown above by placing ''sh'' before the {{{configure</code> command.
     55The MSYS shell can run the RTEMS {{{configure</code> script. You can use the MSYS shell which you can find as a menu or Desktop icon. This is just like a Unix shell so you need to know some basic Unix commands to use. You can also run {{{configure</code> from a Windows command prompt started with the rtems.bat file shown above by placing ''sh'' before the {{{configure</code> command.
    5256
    5357If you wish to modify RTEMS and/or need to run autoconf, automake or any of the autotools you will need to install the ''MinGW MSYS Developers Tool kit''.