<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Dear,</DIV>
<DIV>I'm quite new to CMake and I would like to build an application with itk, vtk and fltk. I managed to build a simple program that link the three parts together, but I still have some problem linking in the right way the fltk libraries.</DIV>
<DIV>Infact, when I try to use these lines to create a background in a window</DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
<P>fl_register_images(); </FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>// initialize image lib</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas></P>
<P>Fl_Box *background = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> Fl_Box(0,0,lwindow,mwindow);</P>
<P>Fl_JPEG_Image *background_img = </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>new</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> Fl_JPEG_Image(</FONT></FONT><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas><FONT color=#a31515 size=2 face=Consolas>"D:/icon/master_back.jpg"</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas>);</P>
<P>background->image(background_img);</P>
<P> </P>
<P><FONT size=3 face="times new roman, new york, times, serif">I have these errors</FONT></P>
<P><FONT face="verdana, helvetica, sans-serif"></FONT> </P><FONT size=1 face=Consolas><FONT size=1 face=Consolas>
<P><FONT size=2 face="verdana, helvetica, sans-serif">2>fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: riferimento al simbolo esterno _jpeg_read_scanlines non risolto nella funzione "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (</FONT><A href="mailto:??0Fl_JPEG_Image@@QAE@PBD@Z"><FONT size=2 face="verdana, helvetica, sans-serif">??0Fl_JPEG_Image@@QAE@PBD@Z</FONT></A><FONT size=2 face="verdana, helvetica, sans-serif">)</FONT></P>
<P><FONT size=2 face="verdana, helvetica, sans-serif">.....</FONT></P>
<P><FONT size=2 face="verdana, helvetica, sans-serif"></FONT> </P>
<P><FONT size=2 face="verdana, helvetica, sans-serif">2>fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2019: riferimento al simbolo esterno _png_read_end non risolto nella funzione "public: __thiscall Fl_PNG_Image::Fl_PNG_Image(char const *)" (</FONT><A href="mailto:??0Fl_PNG_Image@@QAE@PBD@Z"><FONT size=2 face="verdana, helvetica, sans-serif">??0Fl_PNG_Image@@QAE@PBD@Z</FONT></A><FONT size=2 face="verdana, helvetica, sans-serif">)</FONT></P>
<P><FONT size=2 face="verdana, helvetica, sans-serif">.....</FONT></P>
<P> </P>
<P><FONT size=3 face="Times New Roman">I think that my problem could be related to the CMake list enclosed, but I cannot figure out what's wrong!!</FONT></P>
<P><FONT size=3 face="Times New Roman"></FONT> </P>
<P><FONT size=3 face="Times New Roman">Does anyone can help me?</FONT></P>
<P><FONT size=3 face="Times New Roman"></FONT> </P>
<P><FONT size=3 face="Times New Roman">Thank you in advance,</FONT></P>
<P><FONT size=3 face="Times New Roman"></FONT> </P>
<P><FONT size=3 face="Times New Roman">Best regards,</FONT></P>
<P><FONT size=3 face="Times New Roman"></FONT> </P>
<P><FONT size=3 face="Times New Roman">Luca</FONT></P>
<P> </P>
<P> </P>
<P> </P></FONT></FONT></FONT></FONT></DIV></div></body></html>