Re: no Hello World!!



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

.



Relevant Pages

  • Re: Dual booting fc5 & fc6
    ... put fc6 in my selections at boot time. ... install grub more than once...not that I want to yet. ... Below is my fc5 grub config. ...
    (Fedora)
  • Re: A few problems with FC6?
    ... A few problems with FC6? ... When I first booted FC6 up after the install, it didn't boot, grub ... # uncomment and modify this to check the state of the AC adapter ...
    (Fedora)
  • Re: FC4 -> FC6
    ... You only need to install the package named fedora-release-6-4.noarch.rpm ... If all goes well you should have a FC6 when you are finished. ... I went from FC4 to FC6 in January. ... I hosed the upgrade and did a clean install. ...
    (Fedora)
  • Re: RES: glib2 missing
    ... > older glib2 file. ... > just wait until FC6 is released and do a clean install of FC6. ... FC6 packages you installed along with the FC6 glib2 package. ...
    (Fedora)
  • Re: Fedora FC6 network install problems with eVGA nForce 680i motherboard
    ... install Fedora FC6 on it using the network install option. ... I can't seem to get FC6 to install on this new chipset. ...
    (Fedora)