Hi,

Another thought:

Have you configured to use ENABLE_RTDM and either ENABLE_RTAI or ENABLE_XENOMAI 
when compiling the ethercat package?

(ie using --enable-rtdm)

Regards,
Graeme.


-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Graeme Foot
Sent: Tuesday, 13 March 2012 10:39
To: WIEGAND Ralf
Cc: [email protected]
Subject: Re: [etherlab-users] Linker problems with stable-1.5 patched withthe 
latest rtdm-patch

Hi,

In that patch I integrated the functions into the ethercat lxrt library.

My library paths are:
  -L=/usr/realtime/lib

My libraries are:
  -lm \
  -lrt \
  -lethercat \
  -llxrt

My includes are:
  -I=/usr/realtime/include

In the source files:
#include <ecrt.h>       // for standard ethercat functions
#include <ec_rtdm.h>    // for rtdm ethercat functions


We are using buildroot to build our system so we also use the --sysroot 
compiler flag.


I don't have a "/opt/etherlab/lib" directory.  I can't see anything else 
particularly different.


Regards,
Graeme.



(Most thanks for the RTDM patch go to Moehwald GmbH, B.Benner.  I'm just 
massaging it for my requirements.)



-----Original Message-----
From: WIEGAND Ralf [mailto:[email protected]] 
Sent: Tuesday, 13 March 2012 09:39
To: Graeme Foot
Cc: [email protected]
Subject: Linker problems with stable-1.5 patched with the latest rtdm-patch

Hello Graeme,

first of all, thanks for the great job on the rtdm-patch.

I am trying to use your latest rtdm-patch for the stable-1.5 on revision 2266 
and
get some problems during linking my own application. There are undefined 
references
to every ecrt_rtdm_*** library function. I use the linker-flags 
"-L/usr/realtime/lib
-L/opt/etherlab/lib" and "-llxrt -lrtdm -lethercat". The patch, compilation and
installation of the master runs without any problems. The ld is configured to 
search
libraries under /usr/realtime/lib and /opt/etherlab/lib. I also checked the 
content
of the libethercat library with readelf, but all called library-functions are 
listed
in the output. When i try to read out the ELF information with readelf of the 
ec_rtai_rtdm_example, i get an error that the file isn't an ELF-file.

My system is debian based (lenny) with kernel 2.6.32.11 and rtai-3.8.1.

Do you or anybody on the list have any idea to solve the problem or give me a 
hint ?


Regards,

Ralf Wiegand


Hexagon Metrology GmbH
Siegmund-Hiepe-Str. 2-12
35578 Wetzlar
Deutschland

Phone: +49 6441 207-410
Fax: +49 6441 207-387

E-Mail: [email protected] 



Hauptgeschäftsführer: Holger Fritze
Geschäftsführer: Per Holmberg - Erik Steinbacher - Arno Seuren
Amtsgericht Wetzlar, HRB 1201



_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users
_______________________________________________
etherlab-users mailing list
[email protected]
http://lists.etherlab.org/mailman/listinfo/etherlab-users

Reply via email to