Re: no Hello World!!



rwittenberg@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 ___ jt@xxxxxxxxxxx
\__________________________ http://toerring.de
.



Relevant Pages

  • Re: no Hello World!!
    ... My target machine runs Debian from a compact flash card on a single ... on FC6 to write programs for it. ... The problem is my single board computer is resource constrained and ... the debian installed on it is a barebones installation. ...
    (comp.os.linux.development.apps)
  • Re: FC6 MP3 issues and other queries
    ... I chose to upgrade the installation. ... upgraded/latest at the top then FC6 as my basic, ... I think the mp3 packages are in the extras repositories for FC6. ...
    (alt.os.linux)
  • FC6 MP3 issues and other queries
    ... While reinstalling FC6 yesterday, I chose the 'Customize Now 'option and ... Development Package while I installed FC6? ... I chose to upgrade the installation. ...
    (alt.os.linux)
  • Re: How to re-install grub in a RAID 0 system
    ... Intel Matrix Storage Manager, XP pre-installed (F6 key SATA driver installation), I installed FC6 and during installation, FC6 actually detected all partitions as what XP detected and finally completed the installation, up and ran for a while, both XP and FC6 seeing this ... this actually screwed up the system booting and the Grub will ...
    (Fedora)
  • Re: FC6 MP3 issues and other queries
    ... Development Package while I installed FC6? ... I chose to upgrade the installation. ... I think the mp3 packages are in the extras repositories for FC6. ...
    (alt.os.linux)