#linuxcnc-devel Logs
Dec 11 2022
#linuxcnc-devel Calendar
03:37 AM pere: activity seem to have increased... <URL: https://www.openhub.net/p/emc >
09:45 AM pere: Where in <URL: http://linuxcnc.org/docs/devel/html/ > is there information on how to contribute to LinuxCNC?
09:46 AM pere: found it... <URL: linuxcnc.org/docs/devel/html/code/contributing-to-linuxcnc.html >
09:47 AM Tom_L: http://linuxcnc.org/docs/devel/html/code/contributing-to-linuxcnc.html
09:49 AM pere: thanks
09:49 AM pere: wanted to point a friend to something, and did not know what I was looking for.
01:12 PM pere: seb_kuzminsky: so, do you believe it would be useful with a LinuxCNC project VM outside your basement?
01:44 PM -!- #linuxcnc-devel mode set to +v by ChanServ
02:20 PM roguish[m]: andypugh: pere seb_kuzminsky gentlemen. a little help with a comp please. working on slight mod to the existing vfdb_vfd.c comp. trying to use halcompile getting error. 1st try was --compile, then --install. error about modbus.h not found. see the image. what's up? how can I fix this??? thanks
02:20 PM * roguish[m] uploaded an image: (73KiB) < https://libera.ems.host/_matrix/media/v3/download/matrix.org/qqRYolnocTXCnNIQWLdGqCjW/image.png >
02:24 PM pere: roguish[m]: my come from libmodbus-dev
02:24 PM andypugh: does /usr/include/modbus exist ?
02:25 PM andypugh: If not, as pere says, install libmodbus-dev
02:26 PM roguish[m]: ok thanks. I have synaptic open, with a search for modbus. libmodbus-dev is not installed.....doh. will install now
02:29 PM roguish[m]: installed. SAME error.........
02:29 PM roguish[m]: do I need to boot to get all the path correct?
02:34 PM pere: you probably need to run configure again to find it.
02:35 PM pere: "sudo apt-get build-dep ." might make sure you got all required pacakges.
02:41 PM roguish[m]: pere: ok, did 'sudo apt-get build-dep libmodbus-dev' and it did lots of stuff... but same error....
02:43 PM pere: not build-dep lbimodbus-dev, that is a different task.
02:43 PM pere: "build-dep ."
02:44 PM pere: assuming you are located in the linuxcnc source directory toplevel.
02:45 PM andypugh: cargo-culting it, try “modbus.h” <modbus.h> “modbus/modbus.h” and <modbus/modbus.h>
02:51 PM roguish[m]: pere: this is not a Run In Place compile of linuxcnc. I am only trying to compile a small userspace comp.
02:52 PM pere: roguish[m]: ok. just a quicker way to ensure all build dependencies are installed. I do not know what halcompile need, but am sure it is a subset of what linuxcnc need to build.
02:53 PM pere: Perhaps linuxcnc-uspace-dev need to depend on libmodbus-dev?
02:53 PM roguish[m]: andypugh: not sure what you're referring to. it's a modbus comp, with a line of 'include <modbus.h>'
02:54 PM andypugh: Yes, I know. But you can use <header.h> and “header.h” (they mean slightly different things) and sometimes you need a bit of a path from the /usr/include base directory.
02:55 PM andypugh: pere: modbus is optional.
02:55 PM roguish[m]: shoot. this is where my programming ignorance hurts
02:58 PM roguish[m]: linuxcnc-uspace-dev is installed. it's all up to date with bookworm and the latest debian linuxcnc.
02:58 PM pere: if you got libmodbus-dev installed, #include <modbus/modbus.h> should work. Using #include <modbus.h> will require extra flags to the compiler.
02:59 PM pere: The flag is -I/usr/include/modbus, and I have no idea how to get halcompile to use it.
03:00 PM roguish[m]: i'll edit the include line and try it. have to back out into the cold shop.
03:00 PM pere: "file.h" will look in the current directory and the directory of the .c file, while <file.h> will only look at the system locations (normally /usr/include and friends).
03:00 PM pere: note "file.h" is a superset of <file.h>, so "file.h" will look both locally and in the system locations.
03:05 PM roguish[m]: pere: I think it's a problem with halcompile. /usr/include/modbus and modbus.h is there.
03:09 PM pere: can you provide a test demonstrating the problem? perhaps a new directory under tests/halcompile/?
03:15 PM roguish[m]: maybe. let me see. I'll look at halcompile.
03:17 PM roguish[m]: so halcompile is a .g file. not sure what that is. says it's written by jeff epler. he's good, and is still around.
04:12 PM roguish[m]: pere: I will try all this on one of my VMs, and see what happens. I can create a directory with my .c file, and a text file with the halcompile commands, and an image of the errors..... I will also do an RIP compile of linuxcnc, with my modified comp in it and see what happens.
05:06 PM pere: First draft documenting how to run and write tests, <URL: https://github.com/LinuxCNC/linuxcnc/pull/2203 >.
06:23 PM roguish[m]: pere: hey, thanks for the help. not there yet. but I did just put an 'issue' into github.
06:35 PM andypugh: roguish[m]: did you try #include <modbus/modbus.h>
06:35 PM andypugh: I don’t think it is an issue, as in-tree the components all compile.
06:36 PM roguish[m]: andypugh: yes, i did try that. no success.
06:37 PM roguish[m]: andypugh: https://github.com/LinuxCNC/linuxcnc/issues/2204
06:38 PM roguish[m]: halcompile was authored by jepler. can he help out here....????
06:38 PM andypugh: Yes, I saw it. I don’t think it is halcompile’s job to include every possible header, though,
06:39 PM roguish[m]: that seems like a pretty major one.
06:39 PM roguish[m]: if not, then at least some way to add includes.....
06:40 PM roguish[m]: I don't know how linux C compile works.
06:41 PM roguish[m]: I checked all the vfd comps, and most had the same modbus.h include line.
06:44 PM andypugh: When you used modbus/modbus was it actually the same error?
06:46 PM roguish[m]: yes, i believe so. as I recall....
08:05 PM CaptHindsight[m]: https://vivaldi.com/ going to add this browser instead of Firefox to the Gentoo installer
08:05 PM CaptHindsight[m]: takes up only 50MB vs >200MB
08:28 PM CaptHindsight[m]: https://forum.linuxcnc.org/38-general-linuxcnc-questions/47642-gentoo-image-which-applications-are-in-and-which-are-out