Sie sind auf Seite 1von 5

Procedure to install cygwin in Windows 7

1. Double click to run Setup.


2. Choose Install from Local Directory, and click Next.

3. Set the Root Directory to C:\cygwin. Then click Next.

Procedure to install cygwin in Windows 7.doc

Page 1 of 5

4. Set the Local Package Directory to your setup folder (cygwin_installation). Then click Next.

5. Click on the All-Default to toggle it to All-install to install all package. Then click Next.

Procedure to install cygwin in Windows 7.doc

Page 2 of 5

6. Click Next as the below screen.

7. Wait until the installation process finished.

Procedure to install cygwin in Windows 7.doc

Page 3 of 5

8. Select to place the cygwin to Desktop and StartMenu.

9. Click the Cygwin icon to open a BASH shell.

10. To get toolchains.tar.bz2, download gcc_sdk_part1.zip and gcc_sdk_part2.zip from our FTP
server: ftp://210.3.29.84\sdk\creon\
Username:

wwuser

Password:
productwell
In binary folder, there is a file called toolchains.tar.bz2, put toolchains.tar.bz2 under C:\.

Procedure to install cygwin in Windows 7.doc

Page 4 of 5

11. In BASH shell, type the following to change the location and unpack the toolchain (the
toolchain will place to the /opt directory). Some codes will run inside the BASH shell.
$ cd /
$ tar xjvf /cygdrive/c/toolchain.tar.bz2
12. Open the file .bashrc using WORDPAD (located at C:\cygwin\home\<your username>). Type
the following at the end of the file. (If there is no .bashrc file in your home directory, jump to
Step 13 to get the files) You may also refer to the following screen shot (for .bashrc) with RED
bracket.
PATH=$PATH:/opt/gcc_arm/bin:/opt/spectra_util
export PATH

13. Close the BASH shell and open it again. Then you can compile your application through
Cygwin.
14. [For those who cannot find .bashrc in C:\cygwin\home\<your username>]
Go to C:\cygwin\etc\skel, copy the following files to your home directory
C:\cygwin\home\<your username>
.bash_profile
.bashrc
.inputrc
15. You can then go to your application folder by typing following command: (e.g. the application
folder is located at C:\Project\CREON\TestApp\EDCVM)
cd /cygdrive/c/Project/CREON/TestApp/EDCVM
16. In the current folder with makefile, type the following command for compile:
make clean clean tms file that compile in previous time
make gcc
compile the application
make load load the tms file, you have to fill in COM port number, agentID and key
before you type this command
Procedure to install cygwin in Windows 7.doc

Page 5 of 5

Das könnte Ihnen auch gefallen