Hardware Reference
In-Depth Information
In Figure 6-6 you can see that my install of the crosstool-NG was a success.
Figure 6-6. A successful install
You only need root privileges to run the make install command; crosstool-NG has no requirement to be run
as root. It's always wise in Linux and Unix to use the fewest number of privileges so please don't build as root unless
your package needs it. Now that you have the tool installed, you need to set up your environment to run crosstool-NG.
Depending on how you configured crosstool-NG and depending on your system's path settings, you may need to add
the crosstool-NG bin path to your path variable. I have installed crosstool-NG into /usr/local/crosstool , so I will
need to append its bin path to my own path. Because I won't be running crosstool-NG every day, I just do the export
command each time I want to run the tool. The path option is a similar concept to the library path I showed you in
Chapter 2.
# export PATH="${PATH}:/usr/local/crosstool/bin"
The next step you must do before running the crosstool-NG application is to create a working directory for your
project. This directory can be anything you like. I would suggest it be inside your home directory and it's best to be a
new clean directory. For example, I created the working directory of /home/brendan/ct/rpi/ .
Once you have created your working directory, change into it and try and run the crosstool-NG binary called
ct-ng . If you have done everything correctly, you will receive the crosstool-NG help page. Please read the help page;
help pages are the data sheets of the application world and you know how much I like data sheets. You should notice
after you have read the help page that the command that you need is ct-ng menuconfig . Run this command and you
should be presented with a nice ncurses screen as you see in Figure 6-7 . If you get an error that contains “Unable to
find the ncurses libraries,” then you need to install the ncurses libraries. In Fedora you will need to install the ncurses
package and the ncurses-devel package. If you are using Ubuntu the ncurses-devel package is simply called
ncurses-dev . If you're using Gentoo you won't need to do a thing!
 
Search WWH ::




Custom Search