[okl4-developer] Re : "hello" program on iguana

Geoffrey Lee glee at ok-labs.com
Tue Jun 10 19:33:55 EST 2008


On Tue, Jun 10, 2008 at 11:30:41AM +0200, Antonin SUBTIL wrote:
> Just "gcc hello.c -o hello"
> 

This won't work because this compiles the program for the host 
OS and the host architecture.  You need to compile and link using
the same procedure that the OKL4 build system would do so.

To get an idea of how it is done turn on the verbose_str option
in the build line, as well as the associated build scripts.

	-gl

> 2008/6/10, Geoffrey Lee <glee at ok-labs.com>:
> > On Tue, Jun 10, 2008 at 10:39:47AM +0200, Antonin SUBTIL wrote:
> >> Hello,
> >>
> >
> > Hi Antonin,
> >
> >
> >> I'm trying to make my first program on OKL4 :D I've done a small "hello
> >> world" (just a main with a printf), but I dunno how to add it in OKL4.
> >
> >
> > How did you compile this application?  What command(s) did you
> > use to invoke the build?
> >
> > 	-gl
> >
> >>
> >> 1- I tried to modify weaver.xml for elfadorn, but it says "Error: Unable
> >> to
> >> handle segments that aren't of type LOAD (found type 0x3)."
> >> 2- I shall not use SConscript. The idea is having OKL4 compiled on one
> >> side,
> >> my program(s) on another, and just merge them as one image. (so no IDL4
> >> file, no server-client)
> >>
> >> Any idea?
> >>
> >> Thanks
> >>
> >>
> >> --
> >> Antonin Subtil,
> >> 35 rue Donissan
> >> FR-33000 Bordeaux
> >> +33 (0)6.77.40.17.69
> >>
> >> Economisez du papier, limitez votre production de déchets : n'imprimez ce
> >> message que si nécessaire (et... en recto-verso) !
> >
> >> _______________________________________________
> >> Developer mailing list
> >> Developer at okl4.org
> >> https://lists.okl4.org/mailman/listinfo/developer
> >
> >
> > --
> >
> >
> 
> 
> -- 
> Antonin Subtil,
> 35 rue Donissan
> FR-33000 Bordeaux
> +33 (0)6.77.40.17.69
> 
> Economisez du papier, limitez votre production de déchets : n'imprimez
> ce message que si nécessaire (et... en recto-verso) !
> 

-- 




More information about the Developer mailing list