>
> On 26 Apr 2008, at 11:18, Dario wrote:
>
> > SET(LIBS /usr/local/lib/libfltk.a /usr/lib/libm.a /usr/lib/libdl.a /
> > usr/lib/libXext.a /usr/lib/libX11.a)
>
> Hmmm, OK, two points:
>
> 1) I'd always configure with --enable-threads selected, it appears
> you haven't done that. Maybe you don't need it, but it can prove
> useful. Better to configure with it, whether you use it or not!
>
> (ditto --enable-xft, for my money! So, my configure line when
> building fltk looks like this
>
> ./configure --enable-xft --enable-threads
>
> Not that it makes any difference to this issue, mind you...)
>
>
>
> 2) I'm still a little wary of that link order - I think libdl should
> possibly come after the X libs...
>
> Maybe something like;
>
> SET(LIBS /usr/local/lib/libfltk.a /usr/lib/libXext.a /usr/lib/
> libX11.a /usr/lib/libdl.a /usr/lib/libm.a)
>
> would work? Try that, anyway...
>
>
>
I've tried these changes but it don't work,it continued putting the same errors.
I continued reading documentation and I tried to write my CMakeLists.txt as
follows:
FIND_PACKAGE(FLTK)
IF(FLTK_FOUND)
MESSAGE("entro")
INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR})
ADD_EXECUTABLE(gui gui.cpp)
TARGET_LINK_LIBRARIES(gui ${FLTK_LIBRARY})
ENDIF(FLTK_FOUND)
and when I type make, now the error is:
[EMAIL PROTECTED]:~/Desktop/GUI2/bin# make
Linking CXX executable gui
/usr/bin/ld: no se puede encontrar -lfltk_gl
collect2: ld returned 1 exit status
make[2]: *** [gui] Error 1
make[1]: *** [CMakeFiles/gui.dir/all] Error 2
make: *** [all] Error 2
What I don't understand is that with the command
g++ -o gui gui.cpp -L/usr/local/lib -lfltk -lXext -lX11 -lm works!!
Thanks in advance.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk