#linuxcnc-devel Logs
Apr 09 2018
#linuxcnc-devel Calendar
02:53 AM Khetzal_ is now known as Khetzal
07:21 AM jepler: the digitalocean machine hosting forum.linuxcnc.org will be rebooted for meltdown/spectrum mitigations around 2018-04-10 14:00 UTC -- I have no control over the start time or duration.
02:13 PM sliptonic: seb_kuzminsky: I managed to get the scara robot working. I hacked up the scarakins.c file to remove the c rotation. I'll look at fixing it up with load-time parameter next. https://youtu.be/N0eaka0LFlQ
02:19 PM seb_kuzminsky: rad!
02:20 PM seb_kuzminsky: wait a minute, machine kit?? :-P
02:20 PM seb_kuzminsky: you should try linuxcnc master, it's got the joints/axes stuff integrated ;-)
02:20 PM Tom_L: did debian 9 change the way executables work?
02:21 PM Tom_L: i compiled mesaflash and it shows up as a shared library
02:21 PM seb_kuzminsky: Tom_L: no, i don't think it changed anything
02:21 PM Tom_L: and they don't install the full gcc by default either
02:21 PM seb_kuzminsky: what does "file mesaflash" say?
02:22 PM seb_kuzminsky: gcc and the other development tools might not be installed by default, i could believe that
02:22 PM Tom_L: i had to install some essential package, yes
02:22 PM Tom_L: just wonder if i'm missing something else
02:23 PM Tom_L: says it's still an ELF file
02:23 PM Tom_L: dammit!
02:23 PM seb_kuzminsky: the mesaflash build dependencies are listed in debian/control (v3.3 branch)
02:23 PM Tom_L: so no linker?
02:25 PM seb_kuzminsky: the linker comes as part of the debian meta-package "build-essential", which doesn't have to be listed in the build dependencies (its presence is assumed)
02:25 PM seb_kuzminsky: when i run "file" on mesaflash i get this:
02:25 PM seb_kuzminsky: mesaflash: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]
02:25 PM Tom_L: yeah i had to install build-essential
02:25 PM seb_kuzminsky: the "interpreter" tells me that it's an executable file
02:25 PM seb_kuzminsky: compare to some random shared library, which doesn't list an interpreter:
02:25 PM seb_kuzminsky: /usr/lib/libkdesu.so.5.14.26: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=7d86e1a55784c2c94ec4056512d547fd65db85c6, stripped
02:26 PM Tom_L: but when i try to run it, it says bash: mesaflash not found
02:26 PM Tom_L: command not found..
02:26 PM seb_kuzminsky: is "." in your path? try "./mesaflash"
02:26 PM Tom_L: that did it :D
02:26 PM seb_kuzminsky: yay! :-)
02:26 PM Tom_L: before i didn't need the ./
02:26 PM Tom_L: on 7
02:27 PM seb_kuzminsky: your PATH must have changed, or where the mesaflash was located
02:27 PM Tom_L: i'm in that directory
02:27 PM seb_kuzminsky: you should consider building mesaflash into a deb and installing it
02:27 PM Tom_L: if i knew how :)
02:27 PM seb_kuzminsky: apt-get install dpkg-dev
02:27 PM seb_kuzminsky: dpkg-buildpackage -b
02:28 PM seb_kuzminsky: it's pretty easy, once you know the command to run it does it all for you
02:29 PM Tom_shop: dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper
02:29 PM seb_kuzminsky: apt-get install debhelper
02:29 PM seb_kuzminsky: you'll have to satisfy all the build dependencies, which might include some debian tools on top of the stuff mesaflash itself needs
02:29 PM Tom_shop: then re'run those?
02:29 PM Tom_shop: yeah
02:29 PM seb_kuzminsky: rerun just dpkg-buildpackage
02:30 PM seb_kuzminsky: you can check the build deps with "dpkg-checkbuilddeps"
02:30 PM seb_kuzminsky: apt-get install all the packages it complains about, then run dpkg-buildpackage
02:31 PM Tom_shop: ok what do i do with the deb then?
02:31 PM sliptonic: I plan to rebuild this machine at some point and will probably install both MK and linuxcnc. I still have hope of a MK->ROS bridge at some point
02:31 PM seb_kuzminsky: Tom_shop: "dpkg -i mesaflash*.deb"
02:31 PM seb_kuzminsky: then it'll show up in /usr/bin, so it'll be in your PATH
02:32 PM seb_kuzminsky: sliptonic: cool. some of the folks in the local hackspace have been excited about ROS, but i don't know much about it
02:32 PM Tom_shop: k, i'll mess with it. gotta run for now
02:32 PM Tom_shop: thanks
02:42 PM Tom_shop: awesome... it works. thanks again
05:07 PM rene-dev: andypugh: can you push the return fix to master?
05:25 PM andypugh: I need to test it first. I have been busy elsewhere, but it is on my list for this week.
05:27 PM TurBoss: hello,
05:28 PM TurBoss: rene-dev that pr is for the python support?
05:28 PM TurBoss: sorry I didn't have time to take a look
05:28 PM rene-dev: no, some sserial bug
05:28 PM TurBoss: okay