Re: no Hello World!!
- From: "Tarkin" <Tarkin000@xxxxxxxxx>
- Date: 19 Mar 2007 18:32:57 -0700
On Mar 20, 12:03 am, j...@xxxxxxxxxxx (Jens Thoms Toerring) wrote:
rwittenb...@xxxxxxxxxxxxxxx wrote:
My target machine runs Debian from a compact flash card on a single
board computer. I want to use my "shiny" eclipse environment running
on FC6 to write programs for it. My programs that I ported over from
my old RH9 box into FC6 stopped working on the target system and thats
when I got down to the basics and wrote a hello world program.
The problem is my single board computer is resource constrained and
the debian installed on it is a barebones installation. I do not have
a compiler installed and definitely could not run a software IDE on
it. These are some of the reasons for me having to do it this way.
But then you're in for a real lot of work (unless you link
statically, but that that perhaps isn't something you would
like to do when the final excutable is going to run on a
resource-starved system). The libraries you link to (and their
locations) must fit the situation on the target system. You
were lucky that where no essential differences between RH9
and Woody, but you can't expect that to be the case all of
the time.
I wouldn't know how to create an executable on system A that
is then supposed to run on system B - it's not black magic,
some people need to do that all of the time, e.g. to create
programs that then are to be run on an embedded system that
even uses a different processor, but it's going to need a
rather good understanding of how the compiler/linker works
and how to set them up for non-standard work. You probably
will have to install some basic version of a cross-compile
environment - at least you will need all the libraries from
the target system - and you will have to figure out how to
coax gcc to create executables for the other system. I can't
tell but I hope someone else here can give you the necessary
informations. If you're lucky Paul Pluzhnikov will see this
thread - I guess he will be able to tell you how it's to be
done...
Regards, Jens
--
\ Jens Thoms Toerring ___ j...@xxxxxxxxxxx
\__________________________ http://toerring.de
It's not black magic, but cross-compiling is an art.
Basically, you have to devote a directory in which to install
your compiler(s), assembler, linker, and libraries to match
the target. Shell scripts are probably necessary, or at least
carefully thought-out makefiles.
google 'gnu cross-compiling', and check out the gcc lists.
HTH,
Tarkin
.
- Follow-Ups:
- Re: no Hello World!!
- From: rwittenberg
- Re: no Hello World!!
- References:
- no Hello World!!
- From: rwittenberg
- Re: no Hello World!!
- From: Jens Thoms Toerring
- Re: no Hello World!!
- From: rwittenberg
- Re: no Hello World!!
- From: Jens Thoms Toerring
- Re: no Hello World!!
- From: rwittenberg
- Re: no Hello World!!
- From: Jens Thoms Toerring
- Re: no Hello World!!
- From: rwittenberg
- Re: no Hello World!!
- From: Jens Thoms Toerring
- no Hello World!!
- Prev by Date: Re: no Hello World!!
- Next by Date: Re: How to write a program to track the value of a certain variable at run-time using debug features???
- Previous by thread: Re: no Hello World!!
- Next by thread: Re: no Hello World!!
- Index(es):
Relevant Pages
|