Re: [Emc-developers] Where to put a file?

2023-06-08 Thread Nicklas SB Karlsson
tis 2023-06-06 klockan 17:25 +0100 skrev andy pugh:
> On Tue, 6 Jun 2023 at 17:21, Nicklas SB Karlsson  wrote:
> 
> > > However there is a C template (mesa_modbus.c) that is needed, and
> > > I
> > > don't know where that should live. Possibly in /share/ ?
> > In the source tree there other thing live for example
> > src/hal/components is there I added stuff.
> 
> The file is in the source tree in src/hal/drivers/mesa-
> hostmot2/modbus
> 
> However, it needs to exist in the Debian _package_ not just the
> source
> tree, in the same way as halcompile does.
> 
> And to find its way into the package it needs a home in the run-in-
> place tree.
Look there the compiled object or library file end up?



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Where to put a file?

2023-06-06 Thread andy pugh
On Tue, 6 Jun 2023 at 17:21, Nicklas SB Karlsson  wrote:

> > However there is a C template (mesa_modbus.c) that is needed, and I
> > don't know where that should live. Possibly in /share/ ?
> In the source tree there other thing live for example
> src/hal/components is there I added stuff.

The file is in the source tree in src/hal/drivers/mesa-hostmot2/modbus

However, it needs to exist in the Debian _package_ not just the source
tree, in the same way as halcompile does.

And to find its way into the package it needs a home in the run-in-place tree.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Where to put a file?

2023-06-06 Thread Nicklas SB Karlsson
tis 2023-06-06 klockan 00:21 +0100 skrev andy pugh:
> I am trying to add the mesa_modbus framework into the build, targeted
> for linuxcnc-dev
> 
> I think it is fairly clear the executable Python file "modcompile"
> should be parked in linuxcnc-dev/bin and then installed to /bin
> 
> However there is a C template (mesa_modbus.c) that is needed, and I
> don't know where that should live. Possibly in /share/ ?
In the source tree there other thing live for example
src/hal/components is there I added stuff.

Maybe also need to add stuff to makefile or other similar files. Once
figured out directory search files without postfix for example with
grep command to see there filenames are mentioned is how I have done
it.

Nicklas Karlsson



___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


Re: [Emc-developers] Where to put a file?

2023-06-06 Thread Steffen Möller



> Gesendet: Dienstag, 06. Juni 2023 um 01:21 Uhr
> Von: "andy pugh" 
> An: "EMC developers" 
> Betreff: [Emc-developers] Where to put a file?
>
> I am trying to add the mesa_modbus framework into the build, targeted
> for linuxcnc-dev
>
> I think it is fairly clear the executable Python file "modcompile"
> should be parked in linuxcnc-dev/bin and then installed to /bin
>
> However there is a C template (mesa_modbus.c) that is needed, and I
> don't know where that should live. Possibly in /share/ ?

That sounds about right to me. If I would look for that file, my first checks 
would be /usr/share/linuxcnc/{src,template,...}/

>
> Any better ideas? I suppose the only other options are /lib and /include ?
lib would rather be for binary files and include, hm, not since the file itself 
is not compiled?

> The file is copied to a temp directory before being compiled, so does
> not have to remain as a .c file, if something else would make sense. (
> mesa_modbus.templ?)
mesa_modbus.c.tmpl ?

Best,
Steffen


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers


[Emc-developers] Where to put a file?

2023-06-05 Thread andy pugh
I am trying to add the mesa_modbus framework into the build, targeted
for linuxcnc-dev

I think it is fairly clear the executable Python file "modcompile"
should be parked in linuxcnc-dev/bin and then installed to /bin

However there is a C template (mesa_modbus.c) that is needed, and I
don't know where that should live. Possibly in /share/ ?

Any better ideas? I suppose the only other options are /lib and /include ?

The file is copied to a temp directory before being compiled, so does
not have to remain as a .c file, if something else would make sense. (
mesa_modbus.templ?)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers