[En-Nut-Discussion] How to embed my library to Ethernut 3.9.8?

Alexander Baranov baranov at intech21.com
Fri Oct 7 21:29:29 CEST 2005


OK.
I try to press 'Browse' near 'First'. Nothing happens.
I copy my 'gl' directory to c:/ethernut-3.9.8/nut/ and print
'c:/ethernut-3.9.8/nut' in 'First' box.
Build the tree and build the system. No 'libgarfish.a' in
c:/ethernut-3.9.8/nutbld/lib/

----- Original Message ----- 
From: "Thiago A. Corrêa" <thiago.correa at gmail.com>
To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
Sent: Friday, October 07, 2005 2:44 PM
Subject: Re: [En-Nut-Discussion] How to embed my library to Ethernut 3.9.8?


> Looks like a problem with the includepath, you need to somehow pass on
> to the compiler a -I<path to your .h files>
>
> Perhaps editing the ../Makedefs
>
> In the configurator you can set the "Include First" and "Include Last"
> in the settings, could do. :)
>
>
> On 10/7/05, Alexander Baranov <baranov at intech21.com> wrote:
> > Hi,
> > My file name is 'libgarfish.a'. In makefile of my project I wrote:
> > LIBS =
> >
> >
$(LIBDIR)/nutinit.o -lnutpro -lnutfs -lnutos -lnutdev -lnutos -lnutnet -lnut
> > crt -lgarfish
> >
> > I put this line in the makefile of rs232d example instead of original
one.
> > The WinAVR finds the library file. At least the compilation goes without
> > errors.
> > The libgarfish contains 'onewire.h' file.
> > As soon as I try to :
> > #include "onewire.h"
> > the compiler gives the message that there is no such file or directory.
Of
> > course I tried to make all this manually.
> > If I have to use configuration, could you point where should I put the
> > folder with my library *.c and *.h files (name it 'gl') and where in
> > configurator menu should I enter the path to this folder?
> > I will try to reduce everything to one simple 'hello.c'  and train with
it.
> > Thanks a lot,
> > Alexander.
> >
> > ----- Original Message -----
> > From: "Harald Kipp" <harald.kipp at egnite.de>
> > To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
> > Sent: Friday, October 07, 2005 3:50 AM
> > Subject: Re: [En-Nut-Discussion] How to embed my library to Ethernut
3.9.8?
> >
> >
> > > Alexander,
> > >
> > > You mean the compiler can't find your library or the
> > > modules within the library?
> > >
> > > The first depends how you build Nut/OS. I'd recommend to
> > > use the Configurator and place your lib in the build tree.
> > > The latter is mysterious.
> > >
> > > Harald
> > >
> > > At 17:19 06.10.2005 -0400, you wrote:
> > >
> > > >Now I decided to move to 3.9.8. and tried to do the same thing. I
> > compliled
> > > >files to libg.a and copied it to 'c:\ethernut-3.9.8\nutbld\lib'. But
now
> > the
> > > >compiller does not see my files even if  I try to include one into a
> > working
> > > >sample (e.g. rs232d). Could somebody tell what is wrong?
> > > >Thanks and regards, Alexander.
> > >
> > > _______________________________________________
> > > En-Nut-Discussion mailing list
> > > En-Nut-Discussion at egnite.de
> > > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> > >
> > >
> >
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> >
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>





More information about the En-Nut-Discussion mailing list