Subject:
|
Re: Help needed with the cross compiler setup for legOS
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Mon, 23 Aug 1999 16:18:56 GMT
|
Original-From:
|
dave madden <DHM@avoidspamMERSENNE.COM>
|
Viewed:
|
558 times
|
| |
| |
=>From: sjkang <sjkang@ee.kyungpook.ac.kr>
=>...
=>Please help me how to build the cross compile environment for legOS in
=>the Linux!
Have you ever built GCC? If not, it's probably useful to run through
a native build & install (and make sure it works!) before trying to
build a cross compiler. Here's the sequence I use:
% tar zxvf gcc-2.95.tar.gz
% cd gcc-2.95
% ./configure --prefix=/usr/local/packages/gcc-2.95
% make
% make install
Now you should be able to compile a simple C or C++ test program with:
% /usr/local/packages/gcc-2.95/bin/gcc test-prog.c
I always install gcc (and other large packages like emacs, binutils,
and so on) in their own special directory, specified through the
--prefix option to configure. That helps reduce the problems you
encounter when one version of the compiler accidentally finds other
versions of the support programs.
Anyway, for the cross compiler, you must build and install the
binutils first. Again, put them in a separate directory! Then,
unpack a fresh copy of GCC and configure it like this:
% ./configure --prefix=/usr/local/packages/rcx-tools \
--target=h8300-hitachi-hms
Then, just "make" and "make install" should work.
If you're still having problems, let me know. I can produce a tarball
containing a working compiler and binutils for linux. (I have one for
glibc-2.0 [RedHat-5.2] now, and I could build one for glibc-2.1/RH6.0
pretty quickly.)
d.
--
Did you check the web site first?: http://www.crynwr.com/lego-robotics
|
|
Message has 1 Reply: | | Re: Help needed with the cross compiler setup for legOS
|
| =>From: Soon Ju Kang <sjkang@ee.kyungpook.ac.kr> =>... =>==> Will you make me free from this angry job by sending the your ready-made =>version.==> I use the RedHat6.0 and I need the cross compile environment for =>legOS =>==> Thank again for your (...) (25 years ago, 25-Aug-99, to lugnet.robotics)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|