<div> Hi, Xavier:<br><br>I add fltkjpegd.lib, fltkpngd.lib and fltkzd.lib in Project Menu->Settings...<br>->Link tab->Module/library of VC++, then it works.<br>Thanks a lot for your help.<br><br>Regards,<br>Yi Wenwen<br></div><div> </div><div> </div><div ></div><br>在2007-03-13,Xavier Mellado Esteban <xavier.mellado@upf.edu> 写道:<br> <blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><pre>Hi, Yi Wenwen:
Add "fltkjpeg.lib", "fltkpng.lib" for release and "fltkjpegd.lib",
"fltkpng.lib" for debug manually to your project.
Go to the solution explorer, check SNAP, right click,
Properties->Linker->Input->Additional dependencies, and add there these
names...
For sure, it should be a more elegant way for doing this using cmake,
but this works...
Hope this helps you:
Xavi
衣文文 escribió:
> Hi everyone,
> I want to compile SNAP in InsightApplications-2.8.1, but failed.
> The OS is Windows XP, and the compiler is Visual C++ 6.0.
> # ITK version 2.8.1
> # FLTK version 1.1.6
> # VTK version 50.2
>
> Cache Values for FLTK in CMake are as folowing:
> *******************************************************************************
> FLTK_BASE_LIBRARY E:/FLTK/fltk-1.1.6/lib/fltkd.lib
> FLTK_DIR E:/FLTK/fltk-1.1.6/visualc
> FLTK_FLUID_EXECUTABLE E:/FLTK/fltk-1.1.6/fluid/fluidd.exe
> FLTK_FORMS_LIBRARY E:/FLTK/fltk-1.1.6/lib/fltkformsd.lib
> FLTK_GL_LIBRARY E:/FLTK/fltk-1.1.6/lib/fltkgld.lib
> FLTK_IMAGES_LIBRARY E:/FLTK/fltk-1.1.6/lib/fltkimagesd.lib
> FLTK_INCLUDE_DIR E:/FLTK/fltk-1.1.6
> *******************************************************************************
> Build output in VC++6.0 as following:
> ************************************************************************************************************
> --------------------Configuration: InsightSNAP - Win32
> Debug--------------------
> Compiling...
> SNAPMain.cxx
> Linking...
> Creating library Debug/InsightSNAP.lib and object Debug/InsightSNAP.exp
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_destroy_decompress
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_finish_decompress
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_read_scanlines
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_start_decompress
> fltkimagesdlib(Fl_JPEG_Image.obj) : error LNK2001: unresolved external
> symbol _jpeg_calc_output_dimensions
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_read_header
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_stdio_src
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_CreateDecompress
> fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2001: unresolved
> external symbol _jpeg_std_error
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_destroy_read_struct
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_read_end
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_read_rows
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_set_interlace_handling
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_set_tRNS_to_alpha
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_get_valid
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_set_strip_16
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_set_packing
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_set_expand
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_read_info
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_init_io
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_create_info_struct
> fltkimagesd.lib(Fl_PNG_Image.obj) : error LNK2001: unresolved external
> symbol _png_create_read_struct
> Debug/InsightSNAP.exe : fatal error LNK1120: 22 unresolved externals
> Error executing link.exe.
>
> ALL_BUILD - 23 error(s), 459 warning(s)
> *******************************************************************************************************
> I'll appreciate any tips.
>
> Regards,
>
> Yi Wenwen
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users@itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
--
___________________________________
Xavier Mellado Esteban
Computational Imaging Lab
Department of Technology - D. 328
Pompeu Fabra University
Pg. Circumval·lació 8
08003 Barcelona - Spain
Phone: +34 93 542 1323
E-mail: xavier.mellado@upf.edu
Skype: xavier.mellado
</pre></blockquote><br><!-- footer --><br><hr>
<a style="font-size:12px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/" target="_blank">网易邮箱精准过滤超过98%的垃圾邮件 <span style="font-family:Tahoma; text-decoration:underline; color:blue">www.126.com</span> </a>