nanogui: first experiments: problems


Previous by date: 15 Aug 2008 03:46:43 -0000 Re: Flicker over the screen, Greg Haerr
Next by date: 15 Aug 2008 03:46:43 -0000 Re: first experiments: problems, Greg Haerr
Previous in thread:
Next in thread: 15 Aug 2008 03:46:43 -0000 Re: first experiments: problems, Greg Haerr

Subject: first experiments: problems
From: "Jorge Marques Pelizzoni" ####@####.####
Date: 15 Aug 2008 03:46:43 -0000
Message-Id: <62371.189.35.31.159.1218771823.squirrel@mail2.icmc.usp.br>

Hi all,

I am experimenting with nano-X on my development environment first, which
is the following:

- Ubuntu 8.04, on a VMWare virtual machine
- gcc 4.2.3
- zlib: 1.2.3.3

Building microwin on X went ok, after two small, superficial code changes.
I wasn't able to compile flnx samples, kept getting things like:

----------------------------
    g++ -I.. -O2 -Wall -Wno-return-type  -DNANO_X
-I/home/jorge/LCD/microwindows-latest/src/include
-DNANOXFOLDER='"/home/jorge/LCD/microwindows-latest/src/bin"' -DPDA
cube.cxx -L../lib -lfltk -lnano-X -DNANO_X=1 -L/usr/local/lib   
-L/home/jorge/LCD/microwindows-latest/src/lib -lnano-X -lm -o cube
    ../lib/libfltk.a(Fl.o): In function `Fl_Window::flush()':
    Fl.cxx:(.text+0x38c): undefined reference to `fl_clip_region(int)'
    ../lib/libfltk.a(Fl_arg.o): In function `Fl::arg(int, char**, int&)':
    Fl_arg.cxx:(.text+0x129): undefined reference to `XParseGeometry'
    ../lib/libfltk.a(Fl_arg.o): In function `Fl_Window::show(int, char**)':
    Fl_arg.cxx:(.text+0x4a5): undefined reference to `XParseGeometry'
    Fl_arg.cxx:(.text+0x5f9): undefined reference to `XChangeProperty'
    ../lib/libfltk.a(Fl_get_system_colors.o): In function
`getsyscolor(char const*, void (*)(unsigned char, unsigned char,
unsigned char))':
    Fl_get_system_colors.cxx:(.text+0x31): undefined reference to
`XParseColor'
-----------------------

Why does that happen? Anyway, I used fltk-1.1.9 (latest stable release) on
top of nxlib. Everything went ok in the build. By means of LD_LIBRARY_PATH
I was able to test fltk samples both with and without microwin. I tested
four builds of microwin, obtained by varying two parameters: (i) version -
microwin-0.19 versus the more recent snapshot available via ftp - and (ii)
HAVE_PCFGZ_SUPPORT. Here is what I observed:

1 - I could see no difference between versions, except when running Fluid
itself on nano-X, which does not work well anyway, but looks worse on
0.19;
2 - no windows could be resized nor moved, which is possible without nano-X;
3 - on nano-X, the samples respond to the keyboard, but in a completely
wrong manner. For example, when typing text in a textbox, characters do
appear, but obeying a messed-up keyboard map;
4 - when HAVE_PCFGZ_SUPPORT=Y, nano-X dies in fltk-1.1.9 sample "tile"
with the following messages:

----------------
   createfont: (height == 0) found builtin font System (0)
   createfont: (height == 0) found builtin font System (0)
   fnt_createfont: /usr/share/fonts/X11/100dpi/helvR12-ISO8859-1.pcf.gz,0
not found
   Segmentation fault
----------------

5 - when HAVE_PCFGZ_SUPPORT=n, nano-X works, but it seems that the font
cannot be loaded. As a result, text is written in just one size, while the
application originally specifies various sizes. Here are the messages
nano-X generates:

-----------------
   createfont: (height == 0) found builtin font System (0)
   createfont: (height == 0) found builtin font System (0)
   fnt_createfont: /usr/share/fonts/X11/100dpi/helvR12-ISO8859-1.pcf.gz,0
not found
   pcf_createfont: /usr/share/fonts/X11/100dpi/helvR12-ISO8859-1.pcf.gz,0
not found
   Nano-X-Freetype2: Can't load font from file
"/usr/share/fonts/X11/100dpi/helvR12-ISO8859-1.pcf.gz.ttf" - 1
   freetype2_createfont:
/usr/share/fonts/X11/100dpi/helvR12-ISO8859-1.pcf.gz,0 not found
   createfont: no font found, returning NULL
   fnt_createfont: /usr/share/fonts/X11/100dpi/helvR10-ISO8859-1.pcf.gz,0
not found
   pcf_createfont: /usr/share/fonts/X11/100dpi/helvR10-ISO8859-1.pcf.gz,0
not found
   Nano-X-Freetype2: Can't load font from file
"/usr/share/fonts/X11/100dpi/helvR10-ISO8859-1.pcf.gz.ttf" - 1
   freetype2_createfont:
/usr/share/fonts/X11/100dpi/helvR10-ISO8859-1.pcf.gz,0 not found
   createfont: no font found, returning NULL
   fnt_createfont: /usr/share/fonts/X11/100dpi/helvR24-ISO8859-1.pcf.gz,0
not found
   pcf_createfont: /usr/share/fonts/X11/100dpi/helvR24-ISO8859-1.pcf.gz,0
not found
   Nano-X-Freetype2: Can't load font from file
"/usr/share/fonts/X11/100dpi/helvR24-ISO8859-1.pcf.gz.ttf" - 1
   freetype2_createfont:
/usr/share/fonts/X11/100dpi/helvR24-ISO8859-1.pcf.gz,0 not found
   createfont: no font found, returning NULL
----------------

Thanks in advance for any pointers.

Cheers,

Jorge M. Pelizzoni.
ICMC - Universidade de São Paulo



Previous by date: 15 Aug 2008 03:46:43 -0000 Re: Flicker over the screen, Greg Haerr
Next by date: 15 Aug 2008 03:46:43 -0000 Re: first experiments: problems, Greg Haerr
Previous in thread:
Next in thread: 15 Aug 2008 03:46:43 -0000 Re: first experiments: problems, Greg Haerr


Powered by ezmlm-browse 0.20.