[Insight-users] Problems with bulilding itk 2.6.0, with cmake 2.4.2, etc.

Zein Salah salah at gris.uni-tuebingen.de
Tue May 23 09:14:17 EDT 2006


Hello all,

after some monthes awaz from ITK, I am fighting now to build the latest releases. My old environment 
(which was working very well) was: ITK 2.4.0, fltk-1.1.6, vtk 4.2, MS visual studio 7.0, cmake 2.0.5, and Qt 2.3nc.



I am trying also to start with 

MS visual studio .NET 2003.
CMake 2.4.2.
VTK 5.0
Fltk-1.1.6
and ITK 2.6.0


Both ITK and VTK habe been built (with the new CMake) and compiled well with .NET 2003. 

1. Unfortunately fltk did not! The fltkdll and the fltkimagesd could not be built. I cut a piece from the long error list.

------ Build started: Project: fltkdll, Configuration: Release Win32 ------

Linking...
   Creating library .\../test/fltkdll.lib and object .\../test/fltkdll.exp
gl_start.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z) referenced in function "void __cdecl gl_start(void)" (?gl_start@@YAXXZ)
glut_compatability.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z) referenced in function "void __cdecl domenu(int,int,int)" (?domenu@@YAXHHH at Z)
glut_font.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z)
forms_fselect.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z) referenced in function "char * __cdecl fl_show_file_selector(char const *,char const *,char const *,char const *)" (?fl_show_file_selector@@YAPADPBD000 at Z)
forms_pixmap.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z) referenced in function "public: __thiscall Fl_FormsPixmap::Fl_FormsPixmap(enum Fl_Boxtype,int,int,int,int,char const *)" (??0Fl_FormsPixmap@@QAE at W4Fl_Boxtype@@HHHHPBD at Z)
forms_timer.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z)
gl_draw.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z)
Fl_XPM_Image.obj : error LNK2001: unresolved external symbol "void __cdecl operator delete(void *)" (??3 at YAXPAX@Z)
forms_bi


2. Three of the InsightApplication projects could not be build. Here are some cuts of their error lists:


------ Build started: Project: DeformableModelSimplexMesh, Configuration: Release Win32 ------

Linking...
   Creating library Release\DeformableModelSimplexMesh.lib and object Release\DeformableModelSimplexMesh.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_destroy_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_finish_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_read_scanlines referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) 
...
...
...

------ Build started: Project: LiverTumorSegmentationExample, Configuration: Release Win32 ------

Linking...
   Creating library Release\LiverTumorSegmentationExample.lib and object Release\LiverTumorSegmentationExample.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_destroy_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_finish_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_read_scanlines referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_start_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkim
 ...
...
...

------ Build started: Project: InsightSNAP, Configuration: Release Win32 ------

Linking...
   Creating library Release\InsightSNAP.lib and object Release\InsightSNAP.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_destroy_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_finish_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_read_scanlines referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimagesd.lib(Fl_JPEG_Image.obj) : error LNK2019: unresolved external symbol _jpeg_start_decompress referenced in function "public: __thiscall Fl_JPEG_Image::Fl_JPEG_Image(char const *)" (??0Fl_JPEG_Image@@QAE at PBD@Z)
fltkimag



The question is: Does the a.m. combination of cmake, itk, vtk, and MS studio actually work well together? Or should I have
made some mistake somewhere?

I am asking because my own programs also did not work after the new setup and generate long lists of errors.

Much Thanks for any help,

Zein




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20060523/e40727cc/attachment.htm


More information about the Insight-users mailing list