> On 7 January 2018 at 13:01, Nicklas Karlsson > <nicklas.karlsso...@gmail.com> wrote: > > Then adding source code to a subfolder into the src/hal/drivers folder they > > are never found by the build system. I discovered a *.so library file is > > built for each of the drivers. Do anybody have and idea how to add a new > > driver to the build system so that it get compiled together with the source? > > I believe that a .comp should be found automatically, but for a .c > file you need to add it to the Makefile > https://github.com/LinuxCNC/linuxcnc/blob/master/src/Makefile > > Just choose another driver that does get compiled (such as hal_motenc) > and replicate all the same lines in the Makefile for your driver.
At first I thought Makefile was automatically generated. I tried but nothing happens, not even a compile error, it's a little bit odd since I do not find "hal_motenc" in other files except configuration files. I thinkg the *.comp file use some kind of preprocessor language and are pretty it will not work for something using the Ethernet interface. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users