Re: [fltk.development] fltk3 r9661 build errors on centos 5.6 x64

2012-08-13 Thread Matthias Melcher
Thanks for testing this. Yes, the Makfiles may have suffered somewhat in the conversion. Even though the additional include paths seem annoying, I have been quite happy with the setup. Combined with the Fluid Makefile generator, it is possible to add many features as modules without the risk

Re: [fltk.development] fltk3 r9661 build errors on centos 5.6 x64

2012-08-13 Thread Ian MacArthur
On 13 Aug 2012, at 20:06, Greg Ercolano wrote: Just updated fltk3 to current (9661), and am getting these build errors on a default 'make distclean; make': * * * [..] Compiling fltk3gl/glut_font.cxx... /usr/bin/ar cr ../lib/libfltk3gl.a ... Compiling fltk3images/BMPImage.cxx...

Re: [fltk.development] fltk3 r9661 build errors on centos 5.6 x64

2012-08-13 Thread Matthias Melcher
On 13.08.2012, at 22:10, Ian MacArthur imacart...@gmail.com wrote: Yup, I think I reported that a while back; might even have flagged an STR now that I think of it... Um... 2833 is the one. Comments there please, I guess. Yes, now I remember. The crux appears to be that if you build fltk3

Re: [fltk.general] Position and get position of window

2012-08-13 Thread MacArthur, Ian (SELEX GALILEO, UK)
If you're a C programmer, it'll help to think of classes as structs. They're similar in many ways, including how to resolve their members. You mean they are not structs? ;-) Or maybe... If you are a C++ programmer it might help to think of structs as classes... SELEX Galileo

Re: [fltk.general] simple threads example

2012-08-13 Thread Matthias Melcher
On 12.08.2012, at 23:43, Amadeus W.M. amadeu...@verizon.net wrote: I'm trying to create my first threaded application with fltk. I have two threads: one that produces stuff and the gui thread. For simplicity, the producer thread just generates random rectangles and tells the gui thread to

Re: [fltk.general] simple threads example

2012-08-13 Thread MacArthur, Ian (SELEX GALILEO, UK)
If the intent is to do incremental drawing then using an Fl_Offscreen is the best way to go (IMHO of course...) This (below) is the example I usually post at this point when this topic comes up... Note that this does not actually use threads but simply uses a timer to simulate the background

[fltk.general] fltk3 and connect()

2012-08-13 Thread w . szukalski
The program connect() in the test directory of FLTK3 seems to have flaws. Can these be cured? winfried ./connect reload_cb: url(http://www.fltk.org/) file_data((nil)) refresh_text_cb: data(0x2564c40) size(12827) reload_cb: url(http://www.telcat.de/) file_data((nil)) refresh_text_cb:

Re: [fltk.general] fltk3 and connect()

2012-08-13 Thread Matthias Melcher
On 13.08.2012, at 19:06, w. szukalski szukw...@arcor.de wrote: The program connect() in the test directory of FLTK3 seems to have flaws. Can these be cured? winfried Sure. Please give me some more information. Which OS, which compiler and what did you test?

[fltk.general] [OT] JPL C language coding standards..

2012-08-13 Thread Greg Ercolano
JPL's C language coding standards: http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf Many items some will find obvious, and some are specific to embedded hardware and real time hardware control. Still, and interesting read. 31 rules in approx. 18 pages.

Re: [fltk.general] libintl and fluid

2012-08-13 Thread Gonzalo Garramuno
On 08/10/12 06:52, Gonzalo Garramuno wrote: I was wondering how to use gettext with fluid. There's a bit about this in the fluid docs: http://www.fltk.org/doc-1.3/fluid.html#fluid_i18n ..there's a section on Using GNU gettext for i18n It'd be good for us to know

[fltk.general] Compiling fltk3

2012-08-13 Thread Gonzalo Garramuno
I'm trying to compile fltk3 but it fails with: Compiling fltk3png/png.c... fltk3png/png.c:14:21: fatal error: pngpriv.h: No such file or directory The file is in include/fltk3png, but the makefile does not refer to it. I also tried compiling with cmake but the errors were worse.

Re: [fltk.general] [OT] JPL C language coding standards..

2012-08-13 Thread Matthias Melcher
On 13.08.2012, at 20:51, Greg Ercolano e...@seriss.com wrote: JPL's C language coding standards: http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf Many items some will find obvious, and some are specific to embedded hardware and real time hardware control. Still, and interesting

Re: [fltk.general] fltk3 and connect()

2012-08-13 Thread Ian MacArthur
On 13 Aug 2012, at 18:06, w. szukalski wrote: The program connect() in the test directory of FLTK3 seems to have flaws. Can these be cured? Though as you know, fltk3 is still alpha, so the quickest way to cure them might be if you have working patches...! Cheers, -- Ian

Re: [fltk.general] fltk3 and connect()

2012-08-13 Thread Greg Ercolano
On 08/13/12 13:03, Ian MacArthur wrote: On 13 Aug 2012, at 18:06, w. szukalski wrote: The program connect() in the test directory of FLTK3 seems to have flaws. Can these be cured? Though as you know, fltk3 is still alpha, so the quickest way to cure them might be if you have working

Re: [fltk.general] Compiling fltk3

2012-08-13 Thread Greg Ercolano
On 08/13/12 12:43, Gonzalo Garramuno wrote: I'm trying to compile fltk3 but it fails with: Compiling fltk3png/png.c... fltk3png/png.c:14:21: fatal error: pngpriv.h: No such file or directory The file is in include/fltk3png, but the makefile does not refer to it. Yes, just reported

Re: [fltk.general] [OT] JPL C language coding standards..

2012-08-13 Thread Ian MacArthur
On 13 Aug 2012, at 19:51, Greg Ercolano wrote: JPL's C language coding standards: http://lars-lab.jpl.nasa.gov/JPL_Coding_Standard_C.pdf Many items some will find obvious, and some are specific to embedded hardware and real time hardware control. Still, and interesting read. 31 rules in

Re: [fltk.general] Compiling fltk3

2012-08-13 Thread Ian MacArthur
On 13 Aug 2012, at 20:43, Gonzalo Garramuno wrote: I'm trying to compile fltk3 but it fails with: Compiling fltk3png/png.c... fltk3png/png.c:14:21: fatal error: pngpriv.h: No such file or directory Sounds like a variation of the feature Greg was reporting? See STR 2833 too, maybe related?

Re: [fltk.general] libintl and fluid

2012-08-13 Thread Ian MacArthur
On 13 Aug 2012, at 20:20, Gonzalo Garramuno wrote: On 08/10/12 06:52, Gonzalo Garramuno wrote: I was wondering how to use gettext with fluid. There's a bit about this in the fluid docs: http://www.fltk.org/doc-1.3/fluid.html#fluid_i18n ..there's a section on Using GNU

Re: [fltk.general] fltk3 and connect()

2012-08-13 Thread Matthias Melcher
On 13.08.2012, at 22:15, Greg Ercolano e...@seriss.com wrote: On 08/13/12 13:03, Ian MacArthur wrote: On 13 Aug 2012, at 18:06, w. szukalski wrote: The program connect() in the test directory of FLTK3 seems to have flaws. Can these be cured? Though as you know, fltk3 is still

Re: [fltk.general] simple threads example

2012-08-13 Thread Amadeus W.M.
Thanks for the answers! I'm answering through the lines. I usually create a mutex, and use it to manage a small bit of data that communicates a readiness state. Of course, I did that before with semaphores and different processes. I forgot. BTW, don't forget to