[Insight-users] libfltk_gl.a problem

Luis Ibanez luis.ibanez at kitware.com
Sat Jun 19 09:48:46 EDT 2004


Hi YJ76,

You are mixing versions of FLTK.

The symbol

         "fl_device"

does not exist in fltk1.1.5.

It is actually in the Attic in the FLTK CVS repository:
http://cvs.sourceforge.net/viewcvs.py/fltk/fltk/FL/Attic/Fl_Device.H

The best way to deal with FLTK is to install it
in a local directory in your home directory.

for example:

        /home/yj76/local/

you do this by specifying the "--prefix" when you run
./configure in FLTk. Then you must make sure that you
run "make" and "make install". In that way you avoid
mixing it with other versions that may be installed in
your system.

Once you have FLTK installed in a local directory, you
re-run CMake in your applications that use FLTK and make
sure that you point to the libraries, headers and fluid
in your local directory, not the ones in the global
/usr/local/



Regards,


    Luis


---------------------------
yj76 at columbia.edu wrote:

> Hi, Group:
> I had the following errors when I tried to build InsightApplications
> does it sounds familar to anybody?
> edge2D is my own project, however, the same error also happened to
> some other existing InsightApplications.
> I'm using cvs Insight, and fltk1.1.5
> 
> thanks,
> 
> 
> Building executable /usr/local/src/InsightAppBin/edge2D/edge2D...
> /usr/local/lib/libfltk_gl.a(gl_draw.o): In function `gl_height()':
> gl_draw.o(.text+0x7): undefined reference to `fl_device'
> /usr/local/lib/libfltk_gl.a(gl_draw.o): In function `gl_descent()':
> gl_draw.o(.text+0x23): undefined reference to `fl_device'
> /usr/local/lib/libfltk_gl.a(gl_draw.o): In function `gl_width(char 
> const*, int)':
> gl_draw.o(.text+0x4b): undefined reference to `fl_device'
> /usr/local/lib/libfltk_gl.a(gl_draw.o): In function `gl_width(unsigned 
> char)':
> gl_draw.o(.text+0x6f): undefined reference to `fl_device'
> /usr/local/lib/libfltk_gl.a(gl_draw.o): In function `gl_font(int, int)':
> gl_draw.o(.text+0x8e): undefined reference to `fl_device'
> collect2: ld returned 1 exit status
> make[3]: *** [/usr/local/src/InsightAppBin/edge2D/edge2D] Error 1
> make[2]: *** [default_target] Error 2
> make[1]: *** [default_target_edge2D] Error 2
> make: *** [default_target] Error 2
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 





More information about the Insight-users mailing list