Date: Thu, 21 Oct 2004 09:34:11 -0400 From: David Muse Subject: Re: [nanogui] widget toolkit On Wed, 20 Oct 2004 19:08:01 -0600 "Greg Haerr" wrote: > : I'd like to use a widget toolkit of some kind (like GTK, wxWindows, Qt, > FLTK, etc.) rather than coding my own widgets. Can anyone recommend a UI > toolkit that "pretty much works" with microwindows? What issues did you run > into with the toolkit (cross-compiling, getting fonts to work, etc.)? > > There's an older version of FLTK (FLNX) that has direct support > for nano-X. This is included in the PIXIL project at pixil.org. The > make system allows for an automated cross-compile for the ARM > platform. GTK and Qt can be made to work, but we use > NXLIB, an Xlib->nano-X translation library. Not everything is > implemented, and both GTK and Qt are large. > > Regards, > > Greg > > Thanks, I'm checking out flnx right now. I had some trouble getting it to build using an arm-uclibc-linux gcc-3.3.1 toolchain. Here's a patch that fixes the problems I ran into, if you're interested. All minor stuff. Dave Muse dmuse@4accesscommunications.com --- flnx.orig/src/Fl_Animator.cxx 2003-08-07 17:18:39.000000000 -0400 +++ flnx/src/Fl_Animator.cxx 2004-10-21 09:26:57.067365984 -0400 @@ -28,7 +28,7 @@ Fl_Animator::Fl_Animator(char * const *image, int X, int Y, int fcount, int fwidth, int fheight, - int interval, const char *label = 0) + int interval, const char *label) : Fl_Widget(X,Y,fwidth,fheight,label) { diff -urN flnx.orig/src/Fl_Scroll.cxx flnx/src/Fl_Scroll.cxx --- flnx.orig/src/Fl_Scroll.cxx 2003-08-07 17:18:40.000000000 -0400 +++ flnx/src/Fl_Scroll.cxx 2004-10-21 09:26:41.603716816 -0400 @@ -27,7 +27,6 @@ #include #include -#include // Insure the scrollbars are the last children: void Fl_Scroll::fix_scrollbar_order() { diff -urN flnx.orig/src/Fl_x.cxx flnx/src/Fl_x.cxx --- flnx.orig/src/Fl_x.cxx 2003-08-07 17:18:40.000000000 -0400 +++ flnx/src/Fl_x.cxx 2004-10-21 09:26:48.599653272 -0400 @@ -44,7 +44,6 @@ #include #include #include -#include #define CONSOLIDATE_MOTION 1 /**** Define this if your keyboard lacks a backspace key... ****/