On Tue, 2007-07-31 at 20:19 +0200, John Crispin wrote:
> Quoting Geert Vancompernolle <[EMAIL PROTECTED]>:
> 
> > --- In [email protected], "E. Boer" <[EMAIL PROTECTED]> wrote:
> >> Correct I found it, but simply copying it to the foxboard don't
> work
> >> because /lib is readonly. I have to insert it into the fimage, and
> the
> >> question is how ...
> >
> > Can you first try to compile with the option "-static"? Then there's
> > no need to have this lib into the RFS on your FoxBoard, it's part of
> > the exe itself.
> >
> > Something like this:
> >
> > $(CXX) $(CFLAGS) -static $(LDFLAGS) $^ $(LDLIBS) -o $(PROGRAM)
> >
> >
> > See if you still have a problem.
> >

I tried, but got the following error when I compile the program:

........
climatesys.o: In function `main':
itimerspec/climatesys.c:209: undefined reference to `pthread_create'
itimerspec/climatesys.c:216: undefined reference to `pthread_join'
collect2: ld returned 1 exit status
make: *** [climatesys] Error 1

Removing the -static and the program will be compiled. Maybe my SDK have
some internal trouble. I have to wait when dev.acmesystems is up again.
Then I will start with a clean install of the SDK. I copied it from
another Linux-system.

Eddy


> 

Reply via email to