Indeed, using a newer version of comp helps.  I had created
a local git repository recently from the instructions on the
linuxcnc.org download page, and it seems to be 2.7.0~pre0.
That was where I found mesa_7i65.comp.  Using run-in-place
in that tree gets me past the "must contain a function" error,
but runs into missing include file errors (seem to be linux headers).
I suspect I'm missing some symlink for comp to find the linux
headers.

-- Ralph
________________________________________
From: andy pugh [[email protected]]
Sent: Friday, July 25, 2014 10:37 AM
To: Enhanced Machine Controller (EMC)
Subject: Re: [Emc-users] hostmot2 spi

On 25 July 2014 18:30, Ralph Stirling <[email protected]> wrote:
> Well, I was relying on the example mesa_7i65.comp in the
> source that you directed me to.  Comparing mesa_7i65.comp
> with the .comp files in src/hal/components, I see that the
> mesa_7i65.comp has no FUNCTION(_) { } wrapper, but
> rather has a static void read() and an EXTRA_SETUP().

Ah, yes, memories are stirring. I think that Jepler hacked comp.py to
allow me to do things that i needed to do to make mesa_7i65 work.

Was mesa_7i65 included in your version of LinuxCNC? If it wasn't, then
it may be that your version of comp can't handle that driver. (it will
also tend to hint that your version cant do BSPI either).
Upgrading to 2.6 might be required.



--
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to