Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 15:55:25 andy pugh did opine:

> On 9 November 2013 17:31, Gene Heskett  wrote:
> > So I am confused when you say it is part of the LinuxCNC build?
> > 
> > Me goes off scratching head. :)
> 
> You seem to be using the words "halui" and "halio" interchangeably.
> Computers are a lot less flexible.

Dam, by golly and shucks, I think you are right, Andy.  Right embarrassing 
is what it is. :(

I'll go sit in the corner for a while & contemplate the memory of the sins 
I used to be able to do. :)

Thanks.

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)

BOFH excuse #251:

Processes running slowly due to weak power supply
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 13:50:32 David Armstrong did opine:

> On 09/11/13 17:31, Gene Heskett wrote:
> > halio.c:7:21: error: GL/glut.h: No such file or directory
> 
> you seem to be missing the freeglut3 librarys
> 
> Dave
> 
I put that in, which ripped out a bunch of x11-mesa stuff.  Built it, 
installed, tried linuxcc -l

Camera images, all modes, all out of horizontal synch.

Put the mesa glu bits back in, which ripped out the freeglut stuff and now 
I'm back to a working camera.  No clue if the halio is changed or not, but 
I still get a few screen fulls of debugging info.  All the halui pins 
enabled do show up in a hal config, same as before, but I have the last 2 
of those commented out to stop errors, so it stops at -08 in that listing.  
The last 2 have a use I'm sure, but the buttons may not have been made. But 
I've no clue which buttons might be missing ATM.

> 
> -- 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.cl
> ktrk ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


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)

Fortune's graffito of the week (or maybe even month):

Don't Write On Walls!

   (and underneath)

You want I should type?
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread andy pugh
On 9 November 2013 17:31, Gene Heskett  wrote:

> So I am confused when you say it is part of the LinuxCNC build?
>
> Me goes off scratching head. :)

You seem to be using the words "halui" and "halio" interchangeably.
Computers are a lot less flexible.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread David Armstrong
On 09/11/13 17:51, David Armstrong wrote:
> On 09/11/13 17:44, Gene Heskett wrote:
>> On Saturday 09 November 2013 12:42:46 David Armstrong did opine:
>>
>>> On 09/11/13 16:45, Gene Heskett wrote:
 On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
> I was recently looking at task, which also looked like it had no
> source. After poking around a while, it looks like task, and likely
> halui, are made up from other files brought to gether by the local
> makefile. I think having a good understanding of the make system,
> which I don't possess, should reveal the secrets behind these
> non-source files. This is what I have found on making so far:
> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
 It appears I am barking up the wrong tree, it (halui.c) is in
 camunits-emc, and it is not currently rebuildable on Lucid, without a
 lot of fixing I'm not qualified to do.  I saw Jon Kasunich mentioned
 somewhere in that I believe, but the build I'm trying to use was last
 built in 2008.  On Hardy maybe.

 Perhaps, if that was Jon K., he could be persuaded to revisit that
 code & bring it up to buildable on lucid?

 Paging Jon K. (pause) Paging Jon K. ;)

 In the meantime, all this video processing takes way too long, so I
 have posted to the linux-usb list, asking if its possible, from the
 lsusb -v output, to determine the cameras native imager resolution
 and its resultant RGB, BGR, etc format so that it doesn't waste time
 re-arranging, interpolating and compressing the data before it wraps
 it in a usb packet & stuffs it into the cable.

 A secondary problem is that libv4lconvert yelps loudly about formats
 unknown when querying the logitech C920.  I haven't tried
 transplanting a newer version for the default lucid version.

 Thanks Kent.

> On 11/09/2013 01:02 AM, Gene Heskett 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?
>>
>> Thanks.
>>
>> Cheers, Gene
 Cheers, Gene
>>> also if your using and of the cu-plugins
>>> make sure the makefile has been changed to suit linuxcnc as in
>>>
>>> override CFLAGS += $(shell pkg-config --cflags
>>> opencv)-I/usr/include/linuxcnc
>>>
>> Which make file?, I have half a dozen of them.
>>
>> Thanks David.
>>
>> Cheers, Gene
> try http://psha.org.ru/cgit/psha/emc-camunits
> and
> http://psha.org.ru/cgit/psha
>
>
>
>
>
> --
> 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
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
git clone git://psha.org.ru/psha/emc-camunits
should do the trick



--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread David Armstrong
On 09/11/13 17:44, Gene Heskett wrote:
> On Saturday 09 November 2013 12:42:46 David Armstrong did opine:
>
>> On 09/11/13 16:45, Gene Heskett wrote:
>>> On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
 I was recently looking at task, which also looked like it had no
 source. After poking around a while, it looks like task, and likely
 halui, are made up from other files brought to gether by the local
 makefile. I think having a good understanding of the make system,
 which I don't possess, should reveal the secrets behind these
 non-source files. This is what I have found on making so far:
 http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
>>> It appears I am barking up the wrong tree, it (halui.c) is in
>>> camunits-emc, and it is not currently rebuildable on Lucid, without a
>>> lot of fixing I'm not qualified to do.  I saw Jon Kasunich mentioned
>>> somewhere in that I believe, but the build I'm trying to use was last
>>> built in 2008.  On Hardy maybe.
>>>
>>> Perhaps, if that was Jon K., he could be persuaded to revisit that
>>> code & bring it up to buildable on lucid?
>>>
>>> Paging Jon K. (pause) Paging Jon K. ;)
>>>
>>> In the meantime, all this video processing takes way too long, so I
>>> have posted to the linux-usb list, asking if its possible, from the
>>> lsusb -v output, to determine the cameras native imager resolution
>>> and its resultant RGB, BGR, etc format so that it doesn't waste time
>>> re-arranging, interpolating and compressing the data before it wraps
>>> it in a usb packet & stuffs it into the cable.
>>>
>>> A secondary problem is that libv4lconvert yelps loudly about formats
>>> unknown when querying the logitech C920.  I haven't tried
>>> transplanting a newer version for the default lucid version.
>>>
>>> Thanks Kent.
>>>
 On 11/09/2013 01:02 AM, Gene Heskett 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?
>
> Thanks.
>
> Cheers, Gene
>>> Cheers, Gene
>> also if your using and of the cu-plugins
>> make sure the makefile has been changed to suit linuxcnc as in
>>
>> override CFLAGS += $(shell pkg-config --cflags
>> opencv)-I/usr/include/linuxcnc
>>
> Which make file?, I have half a dozen of them.
>
> Thanks David.
>
> Cheers, Gene
try http://psha.org.ru/cgit/psha/emc-camunits
and
http://psha.org.ru/cgit/psha





--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread David Armstrong
On 09/11/13 17:31, Gene Heskett wrote:
> halio.c:7:21: error: GL/glut.h: No such file or directory
you seem to be missing the freeglut3 librarys

Dave

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 12:42:46 David Armstrong did opine:

> On 09/11/13 16:45, Gene Heskett wrote:
> > On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
> >> I was recently looking at task, which also looked like it had no
> >> source. After poking around a while, it looks like task, and likely
> >> halui, are made up from other files brought to gether by the local
> >> makefile. I think having a good understanding of the make system,
> >> which I don't possess, should reveal the secrets behind these
> >> non-source files. This is what I have found on making so far:
> >> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
> > 
> > It appears I am barking up the wrong tree, it (halui.c) is in
> > camunits-emc, and it is not currently rebuildable on Lucid, without a
> > lot of fixing I'm not qualified to do.  I saw Jon Kasunich mentioned
> > somewhere in that I believe, but the build I'm trying to use was last
> > built in 2008.  On Hardy maybe.
> > 
> > Perhaps, if that was Jon K., he could be persuaded to revisit that
> > code & bring it up to buildable on lucid?
> > 
> > Paging Jon K. (pause) Paging Jon K. ;)
> > 
> > In the meantime, all this video processing takes way too long, so I
> > have posted to the linux-usb list, asking if its possible, from the
> > lsusb -v output, to determine the cameras native imager resolution
> > and its resultant RGB, BGR, etc format so that it doesn't waste time
> > re-arranging, interpolating and compressing the data before it wraps
> > it in a usb packet & stuffs it into the cable.
> > 
> > A secondary problem is that libv4lconvert yelps loudly about formats
> > unknown when querying the logitech C920.  I haven't tried
> > transplanting a newer version for the default lucid version.
> > 
> > Thanks Kent.
> > 
> >> On 11/09/2013 01:02 AM, Gene Heskett 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?
> >>> 
> >>> Thanks.
> >>> 
> >>> Cheers, Gene
> > 
> > Cheers, Gene
> 
> also if your using and of the cu-plugins
> make sure the makefile has been changed to suit linuxcnc as in
> 
> override CFLAGS += $(shell pkg-config --cflags
> opencv)-I/usr/include/linuxcnc
> 
Which make file?, I have half a dozen of them.

Thanks David.

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)

Guillotine, n.:
A French chopping center.
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 12:36:00 David Armstrong did opine:

> On 09/11/13 16:45, Gene Heskett wrote:
> > On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
> >> I was recently looking at task, which also looked like it had no
> >> source. After poking around a while, it looks like task, and likely
> >> halui, are made up from other files brought to gether by the local
> >> makefile. I think having a good understanding of the make system,
> >> which I don't possess, should reveal the secrets behind these
> >> non-source files. This is what I have found on making so far:
> >> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
> > 
> > It appears I am barking up the wrong tree, it (halui.c) is in
> > camunits-emc, and it is not currently rebuildable on Lucid, without a
> > lot of fixing I'm not qualified to do.  I saw Jon Kasunich mentioned
> > somewhere in that I believe, but the build I'm trying to use was last
> > built in 2008.  On Hardy maybe.
> > 
> > Perhaps, if that was Jon K., he could be persuaded to revisit that
> > code & bring it up to buildable on lucid?
> > 
> > Paging Jon K. (pause) Paging Jon K. ;)
> > 
> > In the meantime, all this video processing takes way too long, so I
> > have posted to the linux-usb list, asking if its possible, from the
> > lsusb -v output, to determine the cameras native imager resolution
> > and its resultant RGB, BGR, etc format so that it doesn't waste time
> > re-arranging, interpolating and compressing the data before it wraps
> > it in a usb packet & stuffs it into the cable.
> > 
> > A secondary problem is that libv4lconvert yelps loudly about formats
> > unknown when querying the logitech C920.  I haven't tried
> > transplanting a newer version for the default lucid version.
> > 
> > Thanks Kent.
> > 
> >> On 11/09/2013 01:02 AM, Gene Heskett 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?
> >>> 
> >>> Thanks.
> >>> 
> >>> Cheers, Gene
> > 
> > Cheers, Gene
> 
> Gene,
> are you using this version of Halio
> which is fixed for linuxcnc libs etc
> 
> git://psha.org.ru/psha/emc-camunits
> 
This command, issued in a bash shell on that machine, returns

gene@shop:~/linuxcnc$ git://psha.org.ru/psha/emc-camunits

-bash: git://psha.org.ru/psha/emc-camunits: No such file or directory
instantly, no dns query ever exits the ethernet port.

and:
gene@shop:~/linuxcnc$ sudo git://psha.org.ru/psha/emc-camunits
[sudo] password for gene: 
sudo: git://psha.org.ru/psha/emc-camunits: command not found

Fed to a web browser, firefox pleads insanity, and chromium on this machine 
shows me a directory list of the sites git tree, but nothing in the way of 
a downloadable package.

Puzzled... git-core is installed, do I need a front end of some sort?

Thanks David.
> 
> 
> -- 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.cl
> ktrk ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


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)

It's not Camelot, but it's not Cleveland, either.
-- Kevin White, Mayor of Boston
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 12:00:34 Kent Reed did opine:

> On Sat, Nov 9, 2013 at 4:02 AM, Gene Heskett  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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread David Armstrong
On 09/11/13 16:45, Gene Heskett wrote:
> On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
>
>> I was recently looking at task, which also looked like it had no source.
>> After poking around a while, it looks like task, and likely halui, are
>> made up from other files brought to gether by the local makefile. I
>> think having a good understanding of the make system, which I don't
>> possess, should reveal the secrets behind these non-source files. This
>> is what I have found on making so far:
>> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
> It appears I am barking up the wrong tree, it (halui.c) is in camunits-emc,
> and it is not currently rebuildable on Lucid, without a lot of fixing I'm
> not qualified to do.  I saw Jon Kasunich mentioned somewhere in that I
> believe, but the build I'm trying to use was last built in 2008.  On Hardy
> maybe.
>
> Perhaps, if that was Jon K., he could be persuaded to revisit that code &
> bring it up to buildable on lucid?
>
> Paging Jon K. (pause) Paging Jon K. ;)
>
> In the meantime, all this video processing takes way too long, so I have
> posted to the linux-usb list, asking if its possible, from the
> lsusb -v output, to determine the cameras native imager resolution and its
> resultant RGB, BGR, etc format so that it doesn't waste time re-arranging,
> interpolating and compressing the data before it wraps it in a usb packet &
> stuffs it into the cable.
>   
> A secondary problem is that libv4lconvert yelps loudly about formats
> unknown when querying the logitech C920.  I haven't tried transplanting a
> newer version for the default lucid version.
>
> Thanks Kent.
>
>> On 11/09/2013 01:02 AM, Gene Heskett 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?
>>>
>>> Thanks.
>>>
>>> Cheers, Gene
>
> Cheers, Gene
also if your using and of the cu-plugins
make sure the makefile has been changed to suit linuxcnc as in

override CFLAGS += $(shell pkg-config --cflags 
opencv)-I/usr/include/linuxcnc



--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread David Armstrong
On 09/11/13 16:45, Gene Heskett wrote:
> On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:
>
>> I was recently looking at task, which also looked like it had no source.
>> After poking around a while, it looks like task, and likely halui, are
>> made up from other files brought to gether by the local makefile. I
>> think having a good understanding of the make system, which I don't
>> possess, should reveal the secrets behind these non-source files. This
>> is what I have found on making so far:
>> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified
> It appears I am barking up the wrong tree, it (halui.c) is in camunits-emc,
> and it is not currently rebuildable on Lucid, without a lot of fixing I'm
> not qualified to do.  I saw Jon Kasunich mentioned somewhere in that I
> believe, but the build I'm trying to use was last built in 2008.  On Hardy
> maybe.
>
> Perhaps, if that was Jon K., he could be persuaded to revisit that code &
> bring it up to buildable on lucid?
>
> Paging Jon K. (pause) Paging Jon K. ;)
>
> In the meantime, all this video processing takes way too long, so I have
> posted to the linux-usb list, asking if its possible, from the
> lsusb -v output, to determine the cameras native imager resolution and its
> resultant RGB, BGR, etc format so that it doesn't waste time re-arranging,
> interpolating and compressing the data before it wraps it in a usb packet &
> stuffs it into the cable.
>   
> A secondary problem is that libv4lconvert yelps loudly about formats
> unknown when querying the logitech C920.  I haven't tried transplanting a
> newer version for the default lucid version.
>
> Thanks Kent.
>
>> On 11/09/2013 01:02 AM, Gene Heskett 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?
>>>
>>> Thanks.
>>>
>>> Cheers, Gene
>
> Cheers, Gene
Gene,
are you using this version of Halio
which is fixed for linuxcnc libs etc

git://psha.org.ru/psha/emc-camunits



--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Gene Heskett
On Saturday 09 November 2013 11:11:40 Kirk Wallace did opine:

> I was recently looking at task, which also looked like it had no source.
> After poking around a while, it looks like task, and likely halui, are
> made up from other files brought to gether by the local makefile. I
> think having a good understanding of the make system, which I don't
> possess, should reveal the secrets behind these non-source files. This
> is what I have found on making so far:
> http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified

It appears I am barking up the wrong tree, it (halui.c) is in camunits-emc, 
and it is not currently rebuildable on Lucid, without a lot of fixing I'm 
not qualified to do.  I saw Jon Kasunich mentioned somewhere in that I 
believe, but the build I'm trying to use was last built in 2008.  On Hardy 
maybe.

Perhaps, if that was Jon K., he could be persuaded to revisit that code & 
bring it up to buildable on lucid?

Paging Jon K. (pause) Paging Jon K. ;)

In the meantime, all this video processing takes way too long, so I have 
posted to the linux-usb list, asking if its possible, from the 
lsusb -v output, to determine the cameras native imager resolution and its 
resultant RGB, BGR, etc format so that it doesn't waste time re-arranging, 
interpolating and compressing the data before it wraps it in a usb packet & 
stuffs it into the cable.
 
A secondary problem is that libv4lconvert yelps loudly about formats 
unknown when querying the logitech C920.  I haven't tried transplanting a 
newer version for the default lucid version.

Thanks Kent.

> On 11/09/2013 01:02 AM, Gene Heskett 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?
> > 
> > Thanks.
> > 
> > Cheers, Gene


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)

Fatal Error: Found [MS-Windows] System -> Repartitioning Disk for Linux...
(By cbbr...@io.org, Christopher Browne)
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Kent Reed
On Sat, Nov 9, 2013 at 4:02 AM, Gene Heskett  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
--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Something that bugs me

2013-11-09 Thread Kirk Wallace
I was recently looking at task, which also looked like it had no source. 
After poking around a while, it looks like task, and likely halui, are 
made up from other files brought to gether by the local makefile. I 
think having a good understanding of the make system, which I don't 
possess, should reveal the secrets behind these non-source files. This 
is what I have found on making so far:
http://wiki.linuxcnc.org/cgi-bin/wiki.pl?MakefileDeMystified

On 11/09/2013 01:02 AM, Gene Heskett 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?
>
> Thanks.
>
> Cheers, Gene
>

-- 
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/

--
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
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users