|
|
Rockbox mail archiveSubject: Cygwin tutorial V 1.1Cygwin tutorial V 1.1
From: Sean Mealin <seanpm_at_triad.rr.com>
Date: Sun, 14 Oct 2007 14:28:13 -0400
Hi everyone!
Here for your reading pleasure, is the Cygwin tutorial version 1.1. I want
Thanks, and enjoy the tutorial.
Sean
Using a Screan Reader to Set up Cygwin, Building Rockbox From Source, and
Version 1.1
Sunday October 14th, 2007
Introduction:
This tutorial explains how to install Cygwin, setting up Cygwin to build
This tutorial is broken up in to segments; sometimes sections will reference
Getting and Installing Cygwin:
1. Get the Cygwin setup file at
http://www.cygwin.com/setup.exe
and save it to your desktop or other easy to find location.
2. Press <enter> on the setup file, and press <enter> on "Run".
3. Press <Alt+N> to move to the next screen.
4. Make sure the "Install from Internet (downloaded files will be kept for
5. Press <Alt+N> to move to the next screen.
6a. Type in the directory where you want Cygwin to be installed; default is
Note: if you change the path, make sure that there are no spaces. That means
6b. Press <tab> twice and decide if you want to install for all the users on
6c. Press <tab> and make sure the "Unix / binary (RECOMMENDED)" radio button
6. Press <Alt+N> to move to the next screen.
7. Type in where you want your Local Package Directory to be; I set mine to
8. Press <Alt+N> to move to the next screen.
9. Tell Cygwin how you connect to the internet; the default is "Direct
10. Press <Alt+N> to move to the next screen.
11. Wait a few seconds for the installer to download the list of sites; then
12. Press <Alt+N> to move to the next screen.
13a. Once again give the installer time to download a file, and then press
13b. Activate your Jaws curser (or equivalent).
13c. Make sure the radio button that reads "Curr" is checked.
13b. Press <Up-Arrow> and <Down-Arrow> to navigate to the line that reads
13e. Go to the line that says "Devel Default" and once again left-click on
13f. on the line that reads ""Editors Default", click on the "D" in
13g. On the line that reads "Interpreters Default", click on the "D" in
13h. Go to the line that says "Text Default" and install it by clicking on
13i. Press <Alt+N> to move to the next screen.
14. Wait for everything to install; it took me 48 minutes for everything to
15. Once it has finished, it will put you on the finish screen; <tab> until
16. Go to your desktop and press <enter> on the "Cygwin" icon.
17. Wait for the initial setup of your user to finish, and you're dun, you
Setting Up Cygwin for Rockbox:
1. Once again press <enter> on the setup.exe file.
2. Press <enter> on "Run".
3. Press <Alt+N> 5 times.
4. Once you get to the download site selection screan, press <Tab> once and
"<http://download.rockbox.org/cygwin/>" in the "User URL" edit box.
Note: do not type the quotation marks.
5. <Tab> and press <enter> on the "Add..." button.
6. Tab back to the selection box and press <End> to select the
7. Press <Alt-N>.
8. Wait a second for a file to download, and activate your Jaws curser (or
9. Go to the line that reads "All Default" and left-click on the "D" in
10. Press <Alt+N>.
11. Wait for things to download and install; it took me 20 minutes.
12. Tab to the "finish" button and hit <enter>.
13. Go to your desktop and press <enter> on the Cygwin Icon.
Adding the Cross Compiler Directory to Your Path:
We need to make sure that the cross compiler directory is in your path, so
Check /etc/profile. From with in Cygwin,
1. Type in
<nano /etc/profile>
Do not type the less and grater than symbols. The "nano" command tells
2a. Go down until you see the line
"PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH".
2b. change it so it reads
"PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/sh/bin:/opt/m68k/bin:
3a. Press <ctrl+X> to exit.
3b. Press <y> when it asks if you want to save, and press <Enter> when it
4. Restart Cygwin by typing "exit" and pressing <enter> on the icon again.
Compiling Rockbox:
This is the point we have been working for; here you will compile rockbox
1. We must first get the source files from svn; type in
<svn co svn://svn.rockbox.org/rockbox/trunk RockboxBuild>
Do not type the less or grater than symbols. The "RockboxBuild" is the name
2. to see what files and folders there are in your active directory, type in
3. To change to that folder, type
<cd RockboxBuild/>
where rockbox is what ever you named that folder.
4. Make a new folder where you will compile rockbox and voice files. Use the
<mkdir FolderName>
where FolderName is the name of the folder you want to make. I am going to
<mkdir myBuild>.
5. Change to that folder with the
<cd myBuild/>
command, where myBuild is the name of the folder you just made.
6. Type in
<../tools/configure>
and press <enter> to start the compile Process.
7. Looking at the list that comes on screan, type in the platform number
<22>
for the Ipod video. Press <enter>.
8. Next it asks for the size of your ram; it may not do this for all
<32>
if you are using an Ipod 60 or 80 gigabyte, type in
<64>
and press <enter>.
9. type
<n>
for a normal build when it asks you what build would you like to make and
10. Type in
<make>
and sit back for a few minutes wile rockbox is being compiled.
11. Once it is finished compiling, type in
<make zip>
and wait for another minute.
12. After that, type
<mv ~/rockbox/myBuild/rockbox.zip ~>
to move the new rockbox zip file to your home directory. Where, myBuild is
13. Using Windows explorer, go to "C:\cygwin\home\User" where User is your
Making Voice Files:
Here is how to make voice files; you will need Lame, so here is how to get
1. Download the source version of Lame at
"http://downloads.sourceforge.net/lame/lame-3.97.tar.gz?modtime=1159107882&b
2. Save it to your desktop.
3. Using windows explorer, move the file you just downloaded to your home
4. Start Cygwin.
5. Type
<tar -xzvf lame-3.97.tar.gz>
to unzip it.
6. Type
<cd lame-3.97>.
7. Type
<./configure>.
8. Wait until it configures.
9. Ignore the warnings and errors.
10. Type
<make>.
11. Wait a few moments until it finishes.
12. Type
<make install>.
13. Go back to your home directory by typing
<cd>.
14. Go in to your rockbox directory by typing
<cd RockboxBuild/>
(see the section " Compiling Rockbox").
15. Go in to the directory where you build rockbox from source;
<cd myBuild>
where, myBuild is your folder name.
16. Type in
<../tools/configure>
and press <enter> to start the compile Process.
17. Using the list that comes up, type in the platform number that you want
18. Next it asks for the size of your ram; it may not do this for all
<32>,
if you are using an Ipod 60 or 80 gigabyte, type in
<64>
and press <enter>.
19. type
<a>
for advanced, and press <enter>.
20. Type
<v>
for voice, and press <enter>.
21. Press <enter> when it says "voice build selected".
22. When it asks what language, press <enter> for English, or find the
23. When it says "flite: Command not found. espeak: Command not found.
24. when it says "Enter sapi5 options (enter for defaults ""):" just press
25. When it says "Enter lame options (enter for defaults "--resample 12 -t
-vbr-new"):" just hit <enter> again.
26. wait for it to create the make file.
27. Type
<make voice>.
28. Wait for it to make the voice.
29. Type
<mv ~/rockbox/myBuild/English.voice ~>
to move it to your home directory. If you did not make an English voice
30. With windows explorer, go to your home directory and grab the file.
31. You're dun! Put it on your player, and enjoy.
End Notes:
Feel free to email me at Sean p m <at> triad <dot> rr <dot> com with any
Thanks to the people on the Rockbox mailing list that helped me out.
Also thanks to the people that worked on
and
http://www.rockbox.org/twiki/bin/view/Main/CygwinDevelopment
Also, thanks to Angie Matney for the maximizing the window trick in step 13a
Page was last modified "Jan 10 2012" The Rockbox Crew |