[Insight-users] Try to compile SNAP in

衣文文 tracy728 at 163.com
Tue Mar 13 20:38:33 EST 2007


 Hi, Xavier:
I add fltkjpegd.lib, fltkpngd.lib and fltkzd.lib in Project Menu->Settings...
->Link tab->Module/library of VC++, then it works.
Thanks a lot for your help.
Regards,
Yi Wenwen
  
在2007-03-13,Xavier Mellado Esteban <xavier.mellado at upf.edu> 写道:
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 at 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 at upf.edu Skype: xavier.mellado
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070314/b38c93c5/attachment-0001.html


More information about the Insight-users mailing list