#garfield Logs
Nov 07 2019
#garfield Calendar
12:30 AM rue_mohr: ok, I think that'll work
12:53 AM rue_mohr: ok! it compiles!
01:55 AM rue_bed: so, tommorow I should be able to set up a streaming adc with the ads1115
01:56 AM rue_bed: which means I dont have to change my peak detector curcuit
07:21 PM rue_shop1: http://www2.gov.bc.ca/assets/download/23F4C2AE12FE4E9AAF3FFDA56FC61EDC
07:22 PM rue_shop1: http://www2.gov.bc.ca/assets/download/23F4C2AE12FE4E9AAF3FFDA56FC61EDC
07:46 PM rue_mohr: ok got form printed for ma
07:52 PM Tom_L: i've pretty much abandon any idea of compiling freecad
07:58 PM rue_mohr: one of the things that came up in debian channel last night was that there are a LOT of broken dependencies
07:58 PM rue_mohr: for buster
07:59 PM rue_mohr: but the debian source should compile
08:00 PM rue_mohr: I was being scoffed at for the notion of hand compiling a program
09:21 PM Tom_L: i re'installed stretch
09:22 PM Tom_L: still wouldn't build
09:30 PM rue_shop1: did you try to compile the debian source for it?
09:30 PM Tom_L: i don't remember now what all i tried
09:30 PM Tom_L: i doubt i did that
09:31 PM rue_shop1: is it available now to try things on
09:31 PM rue_shop1: i'll give you the commands one at a time
09:31 PM Tom_L: i'm closed for business
09:31 PM rue_shop1: ok
09:32 PM Tom_L: no i think i tried the directions from their site using stretch
09:32 PM rue_shop1: my argument is that if the debian source itself wont compile the newer source doesn't have a chance
09:33 PM rue_shop1: if you could get the intended working source to compile, then you have a chance with the new stuff
09:41 PM Tom_L: where would i find their source?
09:42 PM Tom_L: i did actually install freecad but it was ver .16 which is pure crap
09:43 PM rue_shop1: you dont find their source you install it with apt, I will give you instructions when your able to punch em in!
09:43 PM Tom_L: just booted
09:43 PM Tom_L: need to run to the shop for a sec
09:43 PM rue_shop1: heh, ok
09:46 PM Tom_L: ok, i've got 15 min
09:46 PM rue_shop1: cd /usr/src
09:47 PM rue_shop1: I'm waitng for an ok
09:47 PM Tom_dev: that's it?
09:47 PM Tom_dev: ok
09:47 PM rue_shop1: apt-get build-dep freecad
09:47 PM rue_shop1: (as root)
09:48 PM Tom_dev: must have been there already
09:48 PM Tom_dev: 0 changes
09:48 PM rue_shop1: did it say it got 0 packages, ok
09:48 PM rue_shop1: good
09:48 PM rue_shop1: chmod 777 /usr/src
09:49 PM Tom_L: k
09:49 PM rue_shop1: -- as a normal user -- apt-get source freecad
09:49 PM rue_shop1: you can do that like sudo -u tom apt-get source freecad
09:49 PM Tom_L: k
09:49 PM rue_shop1: say when its done, that might take a bit
09:49 PM Tom_L: done
09:50 PM rue_shop1: ...mhm
09:50 PM rue_shop1: if you do an LS, what directory name did it make? }:)
09:50 PM Tom_dev: tom@stretch:/usr/src$ ls
09:50 PM Tom_dev: CXX freecad_0.16+dfsg2-3.dsc
09:50 PM Tom_dev: freecad-0.16+dfsg2 freecad_0.16+dfsg2.orig.tar.xz
09:50 PM Tom_dev: freecad_0.16+dfsg2-3.debian.tar.xz
09:51 PM rue_shop1: ok
09:51 PM rue_shop1: cd freecad-0.16+dfsg2
09:51 PM Tom_L: k
09:51 PM rue_shop1: cd src
09:51 PM Tom_L: k
09:51 PM rue_shop1: cmake .
09:51 PM Tom_L: k
09:51 PM rue_shop1: (this is where we expect it to hit an error)
09:51 PM rue_shop1: tell me if that works...
09:52 PM rue_shop1: if I'm right, it'll hit that function issue again
09:52 PM Tom_dev: CMake Error at Base/CMakeLists.txt:63 (generate_from_xml):
09:52 PM Tom_dev: Unknown CMake command "generate_from_xml".
09:52 PM Tom_dev: CMake Warning (dev) in CMakeLists.txt:
09:52 PM Tom_dev: No cmake_minimum_required command is present. A line of code such as
09:52 PM Tom_dev: cmake_minimum_required(VERSION 3.7)
09:52 PM rue_shop1: yea THAT
09:52 PM rue_shop1: W T F
09:52 PM Tom_L: there was a bit more but..
09:52 PM rue_shop1: google has never heard of that error
09:52 PM rue_shop1: yea, Unknown CMake command "generate_from_xml".
09:53 PM rue_shop1: the debian guys say that error is impossible and that its cause i'm not using the newest software
09:53 PM Tom_L: the debian guys are full of shit
09:53 PM rue_shop1: }:|
09:53 PM rue_shop1: yea, I know
09:53 PM rue_shop1: they say that its compiling fine in the cloud, so there cant be an issue
09:54 PM Tom_L: what is a .dsc file?
09:55 PM rue_shop1: I dont know
09:55 PM Tom_dev: full of checksums
09:56 PM Tom_dev: brb
09:56 PM rue_shop1: for whatever reason, I'm appealing to debian again
09:58 PM rue_shop1: well, damnit, my adc isn't working
09:58 PM rue_shop1: apparenltly its not self powered and wireless
09:59 PM rue_shop1: *ugh*
09:59 PM * rue_shop1 gets wire
09:59 PM rue_shop1: https://forum.freecadweb.org/viewtopic.php?t=1221
10:02 PM rue_shop1: can you see a fix in all this goo?
10:02 PM Tom_L: no
10:03 PM Tom_L: but i'm not looking all that hard
10:03 PM rue_shop1: what I seem to be picking up is that the source only works if its installed in a particular directory
10:04 PM Tom_L: /home/freecad?
10:04 PM Tom_L: or home/tom/freecad
10:05 PM rue_shop1: no holdon
10:06 PM rue_shop1: apparently we are running cmake from the wrong place
10:06 PM Tom_L: see they had me make a final directory and run it from there on the other one
10:06 PM Tom_L: cmake ../somedir
10:06 PM Tom_L: or something like that
10:07 PM rue_shop1: ok ../src
10:07 PM Tom_L: nope
10:08 PM rue_shop1: your thing
10:08 PM rue_shop1: home tom freecad
10:08 PM rue_shop1: try it
10:09 PM rue_shop1: it seems there some cp** about them not being abel to do a proper system install beacsue of securrity reasons
10:09 PM Tom_L: sudo didn't work either
10:10 PM rue_shop1: no, did you make that home folder?
10:10 PM Tom_L: no
10:10 PM rue_shop1: try it, I'm still reading
10:10 PM rue_shop1: the system I was trying it on was shut fdown
10:10 PM Tom_L: not exactly sure what you want me to do
10:11 PM rue_shop1: I have no idea
10:11 PM rue_shop1: they say the fix is in that text I cant find it
10:12 PM rue_shop1: look for CMakeLists.txt
10:12 PM rue_shop1: apparently its in the wrong place in this project
10:14 PM Tom_L: ok
10:14 PM Tom_L: found it
10:15 PM rue_shop1: ?
10:15 PM rue_shop1: where is it?
10:15 PM Tom_dev: in that freecad root dir
10:15 PM rue_shop1: try running cmake . from there
10:15 PM Tom_dev: usr/src/xxxxxx
10:16 PM rue_shop1: ?
10:17 PM Tom_L: ok that worked
10:17 PM rue_shop1: !!!
10:17 PM rue_shop1: its compiling!
10:17 PM Tom_L: running make now
10:17 PM rue_shop1: oh god!
10:17 PM rue_shop1: I can work on my adc!
10:17 PM Tom_L: can we fix the new one?
10:17 PM rue_shop1: see if that compiles to an and
10:17 PM rue_shop1: end, with no errors
10:17 PM Tom_L: pretty sure it will
10:18 PM rue_shop1: if it does, try the same thing with the new source from git
10:18 PM Tom_L: but i did what they said and it didn't work
10:19 PM rue_shop1: agreed
10:19 PM rue_shop1: now why the hell doesn't my adc work
10:19 PM rue_shop1: oh, right wire...
10:21 PM Tom_L: still compilating
10:22 PM rue_shop1: yep
10:22 PM Tom_L: but it's the wrong ver
10:23 PM Tom_L: i can download and install that ver from package manager
10:23 PM rue_shop1: correct
10:23 PM rue_shop1: but, if you slip it the new source, you should be able to compile it using the same process
10:23 PM Tom_L: put it in /usr/src?
10:24 PM rue_shop1: sure
10:24 PM Tom_L: i may abort this one
10:25 PM Tom_L: it's at 22%
10:25 PM Tom_L: it's got a counter
10:25 PM rue_shop1: ok
10:25 PM rue_shop1: its good to know if it works
10:25 PM Tom_L: i interrupted it
10:25 PM rue_shop1: cause if it wont finish, you have no chance of the new stuff working
10:25 PM rue_shop1: it would resume if you run again
10:26 PM Tom_L: no it started over
10:26 PM rue_shop1: it shoudl skip everything that was compiled
10:26 PM Tom_L: well it didn't
10:26 PM rue_shop1: :/
10:26 PM rue_shop1: new progammers are twitts
10:27 PM Tom_dev: i'm gonna go looking for the new src
10:27 PM rue_shop1: yup
10:27 PM Tom_L: where should i put it?
10:28 PM rue_shop1: /usr/src
10:28 PM rue_shop1: it will make a new version directory
10:28 PM Tom_L: i'm nixing the old one
10:29 PM rue_shop1: so if you get to the end of compiling the new one and it kacks, you will never know if its cause of the new source or not
10:29 PM Tom_L: i'll cross that then
10:29 PM rue_shop1: sure
10:30 PM Tom_L: sudo or not?
10:30 PM rue_shop1: I dont think it matters
10:30 PM Tom_L: i'm going with not
10:31 PM Tom_L: i don't remember if i installed all the dependencies
10:31 PM Tom_L: almost got it
10:31 PM Tom_L: got some commands for me?
10:31 PM Tom_L: i'm in /usr/src
10:32 PM rue_shop1: you have all the dependencies, thats why the old version would compile
10:32 PM rue_shop1: so we already know that
10:33 PM Tom_L: ok now what?
10:33 PM rue_shop1: its the same cmake with the new version
10:33 PM rue_shop1: in the same place
10:34 PM Tom_dev: -- The imported target "vtkRenderingPythonTkWidgets" references the file
10:34 PM Tom_dev: "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
10:34 PM Tom_dev: but this file does not exist. Possible reasons include:
10:34 PM rue_shop1: sorry, my test machine isn't running and I'm burried in this adc stuff righ tnow
10:34 PM rue_shop1: ok
10:34 PM Tom_dev: * The installation package was faulty and contained
10:34 PM Tom_dev: "/usr/lib/cmake/vtk-6.3/VTKTargets.cmake"
10:34 PM Tom_dev: but not all the files it references.
10:34 PM rue_shop1: apt-get install apt-file
10:35 PM rue_shop1: say when its done
10:35 PM Tom_L: done
10:35 PM rue_shop1: apt-file update
10:35 PM rue_shop1: say when its done
10:35 PM Tom_L: right, it said to do that
10:35 PM Tom_L: done
10:36 PM rue_shop1: apt-file search libvtkRenderingPythonTkWidgets.so
10:37 PM rue_shop1: did it find it in any packages?
10:37 PM Tom_L: no
10:37 PM rue_shop1: damn
10:37 PM rue_shop1: that sucks
10:37 PM rue_shop1: the file isn't available in any debian package
10:37 PM Tom_L: yeah
10:38 PM Tom_L: so another brick wall
10:38 PM rue_shop1: there might be a non-debian debian reposity that has it
10:38 PM rue_shop1: that you can add to /etc/apt/sources.list
10:38 PM rue_shop1: its a lot of googling
10:38 PM Tom_L: i'm not that into it
10:38 PM rue_shop1: you see, debian is stupid with its developers
10:39 PM rue_shop1: and its easier to start your own repo than to get them to accept a package
10:39 PM rue_shop1: oooh, I just want to get this adc code working.....
10:40 PM Tom_L: i knew asking for world peace would be asking too much
10:40 PM Tom_L: carry on
10:41 PM rue_shop1: the insane dependency trees of modern projects is totaly stupid and unsustainable
10:44 PM rue_shop1: ok I should see i2c data
10:46 PM Tom_L: how do i chown a directory?
10:47 PM rue_shop1: chmod tom.tom /usr/src/hoopla
10:48 PM rue_shop1: huh, my i2c isn't i2cing
10:50 PM Tom_L: not working
10:50 PM Tom_L: i wonder if it could be a simlink
10:53 PM rue_shop1: arg, its annoying being a bio
10:53 PM rue_shop1: eat, pee, sleep.... I'M JUST TRYING TO GET STUFF DONE!!!!
10:58 PM Tom_L: damn long 15 min
10:58 PM rue_shop1: :/ my software i2c is locking up
10:58 PM Tom_L: well i can't chown this dir either
10:58 PM Tom_L: either that or it's a simlink
10:58 PM rue_shop1: chown user.user directory-name
10:59 PM rue_shop1: ls -l
10:59 PM Tom_L: i did that
10:59 PM rue_shop1: will show you if its a symlink
10:59 PM rue_shop1: will have s in the flags
10:59 PM rue_shop1: or a pointer to who it is
11:00 PM Tom_L: how can i change terminal colors?
11:00 PM Tom_L: i can't see this
11:00 PM rue_shop1: what colors is it?
11:00 PM Tom_L: light green on white
11:01 PM rue_shop1: ouch
11:01 PM rue_shop1: try
11:01 PM rue_shop1: reset
11:01 PM rue_shop1: see if it stays the same
11:01 PM Tom_L: same
11:01 PM rue_shop1: ok
11:01 PM rue_shop1: what terminal is it? xterm?
11:02 PM Tom_L: mate
11:02 PM rue_shop1: ?
11:02 PM rue_shop1: k
11:02 PM rue_shop1: there is an escape sequence to kinda change it
11:02 PM rue_shop1: but just install/use xterm
11:02 PM rue_shop1: apt-get install xterm
11:03 PM rue_shop1: cause the escape sequences are long and annoying
11:05 PM rue_shop1: }:| the gpio isn't gpioing
11:08 PM Tom_L: gonna sleep. at least i know how to do that
11:09 PM rue_shop1: my tested-ok i2c isn't working
11:09 PM rue_shop1: ARG
11:09 PM rue_shop1: this is not a problem i should be having
11:10 PM Tom_L: i've had a few of those tonight too
11:10 PM rue_shop1: but the gpio pins *wont*
11:10 PM rue_shop1: I'm confused