On 03.06.2010, at 20:41, newgen wrote: > I tried to install fltk 2.0 from .tar.gz file since the stupid ubuntu can > still only install version 1.1 of libfltk. since I need the table functions > of fltk, I thought I should give it a try. Result after ./configure/make/make > install when I try to compile my source again: > > error: FL/gl.h: No such file or directory > .. and a lot more.
FLTK 2 is not compatible with FLTK 1.x, thus you can't simply replace the FLTK version and compile your FLTK 1 code with FLTK 2. http://www.fltk.org/articles.php?L825 If you need the table functions (Fl_Table), then your best bet is to use FLTK 1.3, or use FLTK 1.1 with Greg's Fl_Table widget, see http://seriss.com/people/erco/fltk/Fl_Table/ FLTK 1.3 is mostly API compatible with FLTK 1.1, but uses UTF-8. > Ok, I realised the libfltk files which belong normally in /usr/lib can be > found in /usr/local/lib. I fixed this. I also adjusted my Makefile to use > libfltk2.a and not libfltk.a. Same here, this doesn't work without changing your code. > when I do "find / -iname gl.h | grep FL" I can see that the include files > were not copied. > But why are the include-files not copied to /usr/include/fltk ? Same reason: FLTK 2 != FLTK 1.x. And, BTW, it is not "stupid ubuntu". The only *officially* released FLTK versions are FLTK 1.x (latest: 1.10). See link above. Albrecht _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

