On Saturday 09 November 2013 12:00:34 Kent Reed did opine:

> On Sat, Nov 9, 2013 at 4:02 AM, Gene Heskett <[email protected]> wrote:
> > Greetings;
> > 
> > It appears that /usr/bin/halui has never been edited and rebuilt since
> > a long time back.
> > 
> > When the camview-emc stanza for [HALUI] is added to the ini file, I am
> > getting a whole raft load of errors because halui can't find stuff it
> > is apparently hard coded for, starting with the use of the "emc"
> > naming convention.
> > 
> > Is there a fix?  Or, since I don't know where this file comes from, is
> > it camview-emc's responsibility?
> 
> Gene:
> 
> I'm bewildered (nothing new!) so maybe I'll learn something here.
> 
> The userland component halui is rebuilt from src/emc/usr_intf/halui.cc
> every time LinuxCNC is rebuilt from sources. Maybe it hasn't been edited
> recently because it hasn't needed any modification.
> 
> This source file and the associated man page state in similar ways that
> halui exports
> various UI related hal pins and communicates with EMC through NML
> messages. To quote the man page,
> 
> "halui.mdi-command-XX bit in
> 
> halui looks for ini variables named [HALUI]MDI_COMMAND, and exports a
> pin for each command it finds. When the pin is driven TRUE, halui runs
> the specified MDI command. XX is a two digit number starting at 00. If
> no [HALUI]MDI_COMMAND variables are set in the ini file, no
> halui.mdi-command-XX pins will be exported by halui."
> 
> The docs section on INI Configuration say the same thing about [HALUI] 
> in considerably less detail.
> 
> What bewilders me is how a "camview-emc" stanza fits into [HALUI]. Is
> that described somewhere?
> 
> Inquiring minds want to know. You see, I've got all these cams sitting
> around....
> 
> Regards,
> 
> Kent

I have a tarball, called emc-camunits that contains a halui.c dated only a 
year ago.  I have no clue if that is the one LCNC is using. But it its only 
that old, it should be buildable on lucid.  But is not:

gene@shop:~/linuxcnc/emc-camunits$ make
gcc -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -
I/usr/include/linuxcnc -DULAPI   -c -o halio.o halio.c
halio.c:7:21: error: GL/glut.h: No such file or directory
halio.c: In function ‘_gl_draw_gl’:
halio.c:379: error: ‘GLUT_BITMAP_HELVETICA_12’ undeclared (first use in 
this function)
halio.c:379: error: (Each undeclared identifier is reported only once
halio.c:379: error: for each function it appears in.)
make: *** [halio.o] Error 1

That halio.c is dated: in August when I first unpacked it on this machine 
and used mc to copy it to the mills box. IOW that date isn't correct, its 
not the source date, but installed date, much newer.

The one I assume I am executing is:
-rw-r--r-- 1 root root 13720 2012-06-14 15:39 /usr/lib/camunits/halio.so
And that obviously is not part of LCNC since it was updated this morning, 
to 2.5.3-61-gdf7d2fa.

So I am confused when you say it is part of the LinuxCNC build?

Me goes off scratching head. :)

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)

Row, row, row your bits, gently down the stream...
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to