Am 23.11.2010 um 14:14 schrieb Pavel Shramov: thanks, wiping the old hal.so in /usr/lib/python* made all the difference.
One remaining problem and I guess we're off to the races. I have: [DISPLAY] EMBED_TAB_NAME = gladevcp-test EMBED_TAB_COMMAND = gladevcp -c gladevcp-test -w {XID} gladevcp-test.ui gladevcp window comes up fine in Axis tab, gladevcp-test hal module in place, pins in place so I think I go about linking the hal pins for the example I take your gladevcp-test.hal, comment out the loadusr statement at the top and add to .ini [HAL] POSTGUI_HALFILE = gladevcp-test.hal during startup I get gladevcp-test.hal:5: Pin 'gladevcp-test.hal_button1' does not exist However, if I drop the .hal file from .ini and manually enter the statements from gladevcp-test.hal they work fine this looks like a race condition to me - the POSTGUI_HALFILE is run before gladevcp had time to setup the hal component this one and we're done ;-) thanks in advance, -Michael > On Tue, Nov 23, 2010 at 12:40:40PM +0100, Michael Haberler wrote: >> m...@cnc-ubuntu:~/workspace-machine/emc-fraese-hm2$ halcmd -f >> gladevcp-test.hal >> RTAPI: ERROR: could not open shared memory (errno=2) >> Segmentation fault >> >> uh, better have RTAPI initalized, so start Axis and retry: > It's hal component so RTAPI has to be initialized. This's not needed for > ULAPI though. > >> m...@cnc-ubuntu:~/workspace-machine/emc-fraese-hm2$ halcmd -f >> gladevcp-test.hal >> /usr/lib/python2.6/dist-packages/gladevcp_makepins.py:5: UserWarning: >> gladevcp_makepins name is deprecated. Use gladevcp.makepins instead >> warnings.warn("gladevcp_makepins name is deprecated. Use gladevcp.makepins >> instead") >> >> (gladevcp:13369): libglade-WARNING **: Expected <glade-interface>. Got >> <interface>. >> >> (gladevcp:13369): libglade-WARNING **: did not finish in PARSER_FINISH state >> **** GLADE VCP INFO: Not a libglade project, trying to load as a GTK >> builder project >> Traceback (most recent call last): >> File "/usr/lib/python2.6/dist-packages/gladevcp/hal_widgets.py", line 78, in >> _f >> self.hal_pin.set(data) >> AttributeError: 'NoneType' object has no attribute 'set' > >> I'm a bit in the dark - I guess it doesnt make much sense adding this as a >> EMBED_TAB just yet as things stand above >> >> I'm following master as of today 10:23 CET > This is caused by commit 81f8f8 [1]. You have to run 'make clean' or manually > kill file lib/python/hal.so > > Pavel > > -- > [1] > http://git.linuxcnc.org/gitweb?p=emc2.git;a=commit;h=81f8f84b1ec1070156bace1728f395a95fcc9cff > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Emc-developers mailing list > Emc-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ Emc-developers mailing list Emc-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-developers