[etherlab-users] Etherlab c-api

Andy Rohr andy.rohr at mindclue.ch
Fri Apr 24 08:51:41 CEST 2009


Hi

I think the Problem is that
/usr/bin/xsltproc //opt/etherlab/capi/data.c.xsl
	/home/demo/ethercat/capi/skel/my-app.xml |  > /home/demo/ethercat/capi/skel/data.c

does not write the output of xsltproc do data.c, because of the pipe. It should be:
/usr/bin/xsltproc //opt/etherlab/capi/data.c.xsl
	/home/demo/ethercat/capi/skel/my-app.xml > /home/demo/ethercat/capi/skel/data.c

I had the same problem, so I changed the Makefile and removed the pipes there. I'm on Ubuntu.

Andy


Marnix De Lille schrieb:
>  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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> etherlab-users mailing list
> etherlab-users at etherlab.org
> http://lists.etherlab.org/mailman/listinfo/etherlab-users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: andy_rohr.vcf
Type: text/x-vcard
Size: 246 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20090424/4423ca32/attachment-0004.vcf>


More information about the Etherlab-users mailing list