[etherlab-users] Etherlab c-api

Marnix De Lille m.de.lille at mecongroup.com
Wed Apr 8 14:45:16 CEST 2009


 Hello, 

I'm a etherlab newbie and I'm trying to get the etherlab c-api running.
I've installed Rtai, ethercat and etherlab and tried to make the
app_main.c example, but I get following error:

make: Circular my-app.xml <- .linted dependency dropped.
xmllint --schema //opt/etherlab/capi/rt_application.xsd my-app.xml >
.linted
my-app.xml validates
make -C /usr/src/linux-headers-2.6.23.17-rtai-3.6.2
M=/home/demo/ethercat/capi/skel Makefile
make[1]: Entering directory
`/usr/src/linux-headers-2.6.23.17-rtai-3.6.2'
make[1]: `Makefile' is up to date.
make[1]: Leaving directory `/usr/src/linux-headers-2.6.23.17-rtai-3.6.2'
make -C /usr/src/linux-headers-2.6.23.17-rtai-3.6.2
M=/home/demo/ethercat/capi/skel modules
make[1]: Entering directory
`/usr/src/linux-headers-2.6.23.17-rtai-3.6.2'
/usr/bin/xsltproc --stringparam header_type param \
                //opt/etherlab/capi/header.xsl
/home/demo/ethercat/capi/skel/my-app.xml |  >
/home/demo/ethercat/capi/skel/param.h
/usr/bin/xsltproc --stringparam header_type signal \
                //opt/etherlab/capi/header.xsl
/home/demo/ethercat/capi/skel/my-app.xml |  >
/home/demo/ethercat/capi/skel/signal.h
/usr/bin/xsltproc //opt/etherlab/capi/application_defines.h.xsl
/home/demo/ethercat/capi/skel/my-app.xml |  >
/home/demo/ethercat/capi/skel/application_defines.h
  CC [M]  /home/demo/ethercat/capi/skel/app_main.o
/usr/bin/xsltproc //opt/etherlab/capi/data.c.xsl
/home/demo/ethercat/capi/skel/my-app.xml |  >
/home/demo/ethercat/capi/skel/data.c
  CC [M]  /home/demo/ethercat/capi/skel/data.o
  CC [M]  /home/demo/ethercat/capi/skel/.src/register.o
/home/demo/ethercat/capi/skel/.src/register.c:37:3: error: #error "must
define number of sample times, NUMST"
/home/demo/ethercat/capi/skel/.src/register.c:46: error: 'NUMST'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:50: error: 'signal'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:53: error: 'param'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:67: error: 'DECIMATION'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:68: error: 'OVERRUNMAX'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:69: error: 'BUFFER_TIME'
undeclared here (not in a function)
/home/demo/ethercat/capi/skel/.src/register.c:70: error: 'STACKSIZE'
undeclared here (not in a function)
make[2]: *** [/home/demo/ethercat/capi/skel/.src/register.o] Error 1
make[1]: *** [_module_/home/demo/ethercat/capi/skel] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.23.17-rtai-3.6.2'
make: *** [modules] Error 2

I suspect the NUMST, signal, ... should be defined or declared in one of
the created application_defines.h, param.h or signal.h files, but they
have all zero length.

Can somebody help me?

Kind regards,

Marnix De Lille




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090408/4382b8d4/attachment-0002.htm>


More information about the Etherlab-users mailing list