>
> On 24.04.2008, at 18:55, Dario wrote:
> > I've downloaded and installed FLTK library.Now I want to use it in
> > my CMake-based project, but I don't achieve it.I've tried several
> > ways writing my CMakeLists.txt but without success.Someone can help
> > me?Sorry for my English.
>
>
> Once you have built fltk and installed it on your machine (autoconf; ./
> configure; make; sudo make install), you can use fltk just like any
> other library on your system. The library and include path depend on
> the OS you are using and the version of FLTK. Opne a shel and run
> "fltk-config". You can use this script with the approprite options to
> find the library names and the installation location for your platform.
>
> Matthias
>
> ----
> http://robowerk.com/
>
>
Thanks a lot for your answer. I've tried to write my CMakeLists.txt as follows:
PROJECT( GUI )
SET(LIBS /usr/local/lib/libfltk.a)
ADD_EXECUTABLE(gui gui.cpp)
TARGET_LINK_LIBRARIES(gui ${LIBS})
but when I type make, I find errors (undefined references to ...) as:
/usr/local/lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char,
int, int, int, int)':
Fl.cxx:(.text+0x58b): referencia a `XUnionRectWithRegion' sin definir
Fl.cxx:(.text+0x5a9): referencia a `XDestroyRegion' sin definir
/usr/local/lib/libfltk.a(Fl.o): In function `Fl_Widget::damage(unsigned char)':
Fl.cxx:(.text+0x637): referencia a `XDestroyRegion' sin definir
/usr/local/lib/libfltk.a(Fl.o): In function `Fl_Window::hide()':
Fl.cxx:(.text+0x1023): referencia a `XDestroyRegion' sin definir
Fl.cxx:(.text+0x1038): referencia a `XDestroyWindow' sin definir
/usr/local/lib/libfltk.a(Fl.o): In function `Fl::flush()':
Fl.cxx:(.text+0x1241): referencia a `XDestroyRegion' sin definir
Fl.cxx:(.text+0x1264): referencia a `XFlush' sin definir
..
I think it is a nonsense, but I don't know how to resolve it.
Thank you very much
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk