On Thursday 14 November 2013 08:40:02 Gene Heskett did opine: > On Thursday 14 November 2013 07:39:25 Erik Christiansen did opine: > > On 13.11.13 15:59, Gene Heskett wrote: > > > I have added /usr/lib/camunits to one of the files in > > > /etc/ld.so.conf.d, and have verified that path is correct, but I > > > don't seem to be able to make a "sudo ldconfig -v|less" show me that > > > it is seeing a single one of the dozen plus .so files there. I was > > > under the impression all we ever had to give it was the top level of > > > a tree it (ldconfig) was supposed to process. > > > > Gene, what you should specify (AIUI) is the actual directory > > containing the .so, as shown by a comparison with e.g. > > > > $ more /etc/ld.so.conf.d/libasound2.conf > > /usr/lib/alsa-lib > > > > $ ls /usr/lib/alsa-lib > > libasound_module_conf_pulse.so libasound_module_ctl_arcam_av.so > > ... > > > > If that's analogous to what you have, then have you tried: > > > > $ ldconfig -p | grep <camunits_or_whatever_the_lib_is_called> > > > > With -p it lists candidate libraries stored in the current cache. > > (Reams of 'em.) > > > > Once that picks it up, you're in with a chance. > > > > Silly question time: the .so was in /usr/lib/camunits, when ldconfig > > -v was run? (Just checkin ;) > > > > If that doesn't do it, and you're (fed up and) not stopping to chase > > the showstopper down all its burrows, then the following has worked > > for me for a quick result. For the Bitscope I'd put the required > > library in /usr/lib/bitscope, and even this result: > > > > $ ldconfig -p | grep libborqt > > > > libborqt-6.9.0-qt2.3.so (libc6) => > > > > /usr/lib/bitscope/libborqt-6.9.0-qt2.3.so > > > > wasn't enough for the .so to be found, so I just banged this onto the > > command line: > > > > $ export LD_LIBRARY_PATH=/usr/lib/bitscope:$LD_LIBRARY_PATH > > > > Then the executable happily found the .so more or less "manually". > > > > > Perhaps I'm running it wrong? > > > > Yup. The secret is to run it less wrong, till it works well enough for > > now, as far as I can tell. > > > > Erik > > These machines did not have an LD_LIBRARY_PATH defined or exported, so I > set up just these two: > gene@shop:~/linuxcnc$ echo $LD_LIBRARY_PATH > /usr/lib/camunits:/usr/local/lib/camunits > > Which obviously is not enough as I get the impression it isn't finding > libv4lconvert, or at least the wrong one since there are at least 2 > versions extant. Or are there, locate only finds one. > > I think, now that the build deps have been used, I'll have to go back > and reinstall a bunch of mesa stuff that opengl pulls out as I can see > something for video, but only the mesa versions seem to recognize and > actually synch to the formats. According to apt-get: > > gene@shop:~/linuxcnc$ sudo apt-get install libgl1-mesa-swx11 > libgl1-mesa- swx11-dev > Reading package lists... Done > Building dependency tree > Reading state information... Done > The following packages will be REMOVED: > libgl1-mesa-dev libgl1-mesa-glx > The following NEW packages will be installed: > libgl1-mesa-swx11 libgl1-mesa-swx11-dev > 0 upgraded, 2 newly installed, 2 to remove and 0 not upgraded. > Need to get 0B/1,658kB of archives. > After this operation, 5,632kB of additional disk space will be used. > Do you want to continue [Y/n]? > > Now after removing > The following packages will be REMOVED: > libgl1-mesa-dev libgl1-mesa-glx > The following NEW packages will be installed: > libgl1-mesa-swx11 libgl1-mesa-swx11-dev > > The camera again works well in camview. but not in linuxcnc, white > screen in linuxcnc. And leaves this error trace: > Traceback (most recent call last): > File "/usr/bin/camview-emc", line 291, in <module> > view = EmcView(options) > File "/usr/bin/camview-emc", line 84, in __init__ > w.load_from_str(open(options.chain).read()) > RuntimeError: Unable to instantiate [emc.halio] > > But halio.so is there. camview seems to have all working controls, > (using the exact same camviewcfg) linuxcnc doesn't even draw the > initial control buttons. There is a clue there I'm sure. > ENOTENOUGHCOFFEE maybe? > > Linuxcnc draws the align button on the right screen but plain white, no > buttons in the backplot window, and both fuss about emc-halio. > > But I've not even had my morning coffee yet. > > Thanks Eric > > Cheers, Gene
PS, I just found the linuxcnc fault, the .ini file called camview-emc with an uppercase C for the config spec, it should be a lower case c. But, back to the &^$ pin enumeration, now shows: campins.hal:10: Pin 'camview.hal_checkbutton1' does not exist. I don't seem to be groking how all this hal stuff matches up, here is campins.hal ========== # campins.hal loadrt oneshot names=forOn,forOff addf forOn servo-thread addf forOff servo-thread setp forOn.width .1 setp forOff.width .1 setp forOff.falling 1 setp forOff.rising 0 net forOnNet camview.hal_checkbutton1 => forOn.in forOff.in net cam1 forOn.out => halui.mdi-command-06 net cam2 forOff.out => halui.mdi-command-07 net cam3 camview.hal_button1 => halui.mdi-command-08 #net cam4 camview.hal_button2 => halui.mdi-command-09 #net cam5 camview.hal_button3 => halui.mdi-command-10 Everytime I try to make sense out of this enumeration scheme, I lose one more button. Frustrating. I have not yet made the transition in my normal .hal files using names rather than enumeration, which probably is some of my confusion. Humm, a naming problem. That pin camview.hal_checkbutton1 above, is actually named camviewcfg.hal_checkbotton1 in the hal config screens data. That I can fix in campins.hal I guess, I'll give it a shot. Fixed that, but the last 2, -09 & -10 are still missing in the hal config list. Progress, at least till I stub my toe again. One last item, camview shows all the camera control knobs in the right hand window, but the list is way too long for the lcnc backplot window, so once you have clicked to get the camera controls, there is no scrollbar, and no way to turn it off because the on off button is now about 8" above the top of the LCNC screen. So, is there a way to add a scrollbar button to that display by messing with camviewcfg's xml code? Thanks all Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Two heads are better than one. -- John Heywood A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens. ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users