[ITK] Problem with installing ITKApplications

Matt McCormick matt.mccormick at kitware.com
Tue Mar 29 12:06:15 EDT 2016


Hi,

Yes, as Dzenan remarked, ITKApps are being abandoned.  We can
incrementally add desired functionality to the ITK Sphinx Examples,
ITK-SNAP, or 3D Slicer as appropriate.

HTH,
Matt

On Tue, Mar 29, 2016 at 10:56 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
> Hi Sara,
>
> besides noticing that all the linking errors are related to OpenGL, I am
> afraid I cannot offer much help. ITKApplications are being abandoned, one of
> the bigger reasons being their reliance on FLTK. ITK-SNAP has has become
> standalone application and has switched to Qt. Maybe Matt can offer some
> more useful advice.
>
> Regards,
> Dženan
>
> On Sun, Mar 27, 2016 at 12:36 PM, Sara Gh <sg.ele.eng at gmail.com> wrote:
>>
>> Bill,
>>
>> Thank you for your reply.
>> I tried CMake (3.5); Apparently, the problem has been resolved. Now, I'm
>> getting new errors :(
>>
>> ...
>>
>> [ 40%] Built target ITKFltkImageViewer
>>
>> [ 40%] Linking CXX executable DistanceMapFilter
>>
>> Undefined symbols for architecture x86_64:
>>
>>   "_aglChoosePixelFormat", referenced from:
>>
>>       Fl_Gl_Choice::find(int, int const*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglCreateContext", referenced from:
>>
>>       fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglDestroyContext", referenced from:
>>
>>       fl_delete_gl_context(__AGLContextRec*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglEnable", referenced from:
>>
>>       Fl_Gl_Window::make_current() in libfltk_gl.a(Fl_Gl_Window.cxx.o)
>>
>>       fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>       fl_set_gl_context(Fl_Window*, __AGLContextRec*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglGetCurrentContext", referenced from:
>>
>>       fl_no_gl_context() in libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglSetCurrentContext", referenced from:
>>
>>       fl_set_gl_context(Fl_Window*, __AGLContextRec*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>       fl_no_gl_context() in libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglSetInteger", referenced from:
>>
>>       Fl_Gl_Window::make_current() in libfltk_gl.a(Fl_Gl_Window.cxx.o)
>>
>>       fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>       fl_set_gl_context(Fl_Window*, __AGLContextRec*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglSetWindowRef", referenced from:
>>
>>       fl_create_gl_context(Fl_Window*, Fl_Gl_Choice const*, int) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>       fl_set_gl_context(Fl_Window*, __AGLContextRec*) in
>> libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>       fl_no_gl_context() in libfltk_gl.a(Fl_Gl_Choice.cxx.o)
>>
>>   "_aglSwapBuffers", referenced from:
>>
>>       Fl_Gl_Window::swap_buffers() in libfltk_gl.a(Fl_Gl_Window.cxx.o)
>>
>>   "_aglUpdateContext", referenced from:
>>
>>       Fl_Gl_Window::resize(int, int, int, int) in
>> libfltk_gl.a(Fl_Gl_Window.cxx.o)
>>
>> ld: symbol(s) not found for architecture x86_64
>>
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>> make[5]: *** [DistanceMapFilter/DistanceMapFilter] Error 1
>>
>> make[4]: *** [DistanceMapFilter/CMakeFiles/DistanceMapFilter.dir/all]
>> Error 2
>>
>> make[3]: *** [all] Error 2
>>
>> make[2]: *** [ITKApps-prefix/src/ITKApps-stamp/ITKApps-build] Error 2
>>
>> make[1]: *** [CMakeFiles/ITKApps.dir/all] Error 2
>>
>> make: *** [all] Error 2
>>
>>
>> I would be thankful if someone could help me with these errors! I am using
>> Superbuild on Mac.
>>
>>
>> Thanks,
>>
>> Sara Gh.
>>
>>
>> On Tue, Mar 15, 2016 at 9:28 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>
>>> Perhaps you should also try an older version which supports "SOURCE
>>> signatures of add_custom_command".
>>>
>>> On Tue, Mar 15, 2016 at 9:26 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
>>>>
>>>> Hi Sara,
>>>>
>>>> by looking at your build log, I noticed the following:
>>>>
>>>> The SOURCE signatures of add_custom_command are no longer supported.
>>>> Call Stack (most recent call first):
>>>>   ImageColorViewer/CMakeLists.txt:37 (ADD_GUI_EXECUTABLE)
>>>> This warning is for project developers.  Use -Wno-dev to suppress it.
>>>> CMake Internal Error (please report a bug):
>>>>   Missing cmGeneratorTarget instance!
>>>>
>>>> Please try with newest version of CMake (3.5), and if it does not help
>>>> then report the bug to CMake developers.
>>>>
>>>> HTH,
>>>> Dženan
>>>>
>>>> On Sun, Mar 13, 2016 at 4:14 AM, Sara Gh <sg.ele.eng at gmail.com> wrote:
>>>>>
>>>>> Okay! I found the solution for the previous problem here! So, in
>>>>> fl_line_style.cxx, I changed all
>>>>> static enum CGLineCap fl_quartz_line_cap_ = kCGLineCapButt;
>>>>> To:
>>>>> static /*enum*/ CGLineCap fl_quartz_line_cap_ = kCGLineCapButt;
>>>>>
>>>>> Then, I came accross to another error. Fl_Type.h. I found the solution
>>>>> here and fixed the issue by changing:
>>>>>
>>>>> friend Fl_Widget *make_type_browser(int,int,int,int,const char *l=0);
>>>>>
>>>>> to
>>>>>
>>>>> friend Fl_Widget *make_type_browser(int,int,int,int,const char *);
>>>>>
>>>>> Now, I am getting another error (please see attached file):
>>>>>
>>>>> /bin/sh: line 1: 57588 Segmentation fault: 11
>>>>> /Volumes/cmake-3.4.1-Darwin-x86_64/CMake.app/Contents/bin/cmake
>>>>> -DCMAKE_BUILD_TYPE:STRING=
>>>>> -DCMAKE_CXX_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
>>>>> -DCMAKE_CXX_FLAGS:STRING=
>>>>> -DCMAKE_C_COMPILER:PATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
>>>>> -DCMAKE_C_FLAGS:STRING= -DCMAKE_EXE_LINKER_FLAGS:STRING=
>>>>> "-DCMAKE_GENERATOR:STRING=Unix Makefiles" -DCMAKE_EXTRA_GENERATOR:STRING=
>>>>> -DCMAKE_OSX_ARCHITECTURES:STRING= -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING=
>>>>> -DCMAKE_OSX_SYSROOT:PATH= -DBUILD_SHARED_LIBS:BOOL=FALSE
>>>>> -DITK_DIR:PATH=/Volumes/Academic/ITKVTK/Applications/ITKApps-Superbuild/ITK-build
>>>>> -DUSE_VTK:BOOL=ON
>>>>> -DVTK_DIR:PATH=/Volumes/Academic/ITKVTK/Applications/ITKApps-Superbuild/VTK-build
>>>>> -DUSE_FLTK:BOOL=ON
>>>>> -DFLTK_DIR:PATH=/Volumes/Academic/ITKVTK/Applications/ITKApps-Superbuild/FLTK-install/FLTK/.framework/Resources/CMake
>>>>> -DITK_FLTK_RESOURCE:FILEPATH=Carbon.r "-GUnix Makefiles"
>>>>> /Volumes/Academic/ITKVTK/Applications/ITKApps/Superbuild/..
>>>>> make[2]: *** [ITKApps-prefix/src/ITKApps-stamp/ITKApps-configure] Error
>>>>> 139
>>>>> make[1]: *** [CMakeFiles/ITKApps.dir/all] Error 2
>>>>> make: *** [all] Error 2
>>>>>
>>>>>
>>>>> I would be very thankful if you could help me with this problem.
>>>>>
>>>>> Thanks,
>>>>> Sara
>>>>>
>>>>>
>>>>>
>>>>> On Sun, Mar 13, 2016 at 12:51 AM, Sara Gh <sg.ele.eng at gmail.com> wrote:
>>>>> Thank you for your reply. Actually, I tried building ITK Apps
>>>>> Superbuild. It also ends with some errors:
>>>>> "4 errors generated.
>>>>> make[5]: *** [src/CMakeFiles/fltk.dir/fl_line_style.cxx.o] Error 1
>>>>> make[4]: *** [src/CMakeFiles/fltk.dir/all] Error 2
>>>>> make[3]: *** [all] Error 2
>>>>> make[2]: *** [FLTK-prefix/src/FLTK-stamp/FLTK-build] Error 2
>>>>> make[1]: *** [CMakeFiles/FLTK.dir/all] Error 2
>>>>> make: *** [all] Error 2"
>>>>> Please find attached the text file including the errors I got.
>>>>>
>>>>> Thanks,
>>>>> Sara
>>>>>
>>>>> On Fri, Mar 11, 2016 at 2:03 PM, Bill Lorensen
>>>>> <bill.lorensen at gmail.com> wrote:
>>>>>
>>>>> Please use the ITK Apps superbuild.
>>>>> http://www.itk.org/ITK/resources/applications.html
>>>>>
>>>>> This will build all of the proper vtk,itk,fltk.
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Mar 11, 2016 at 1:44 PM, Sara Gh <sg.ele.eng at gmail.com> wrote:
>>>>> > Hello ITK experts,
>>>>> >
>>>>> > I have been trying to make ITK Apps work but I have not been
>>>>> > successful so
>>>>> > far. When I am building (making) ITKApps the process ends with 8
>>>>> > errors in
>>>>> > DICOMApp. I would be thankful if you could help me in this regard. I
>>>>> > am on
>>>>> > Mac (El Capitan) and here is the summary of what I have done so far:
>>>>> >
>>>>> > 1- Installing CMake-3.4.1.
>>>>> > 2- Installing VTK-6.3.0
>>>>> > 3- Installing ITK-4.8.2
>>>>> > 4- Installing FLTK-1.3.3 (Initially, I had some issues with building
>>>>> > FLTK
>>>>> > and came across to this; and using this solution: brew reinstall
>>>>> > --devel
>>>>> >
>>>>> > https://raw.githubusercontent.com/dpo/homebrew/ec46018128dde5bf466b013a6c7086d0880930a3/Library/Formula/fltk.rb
>>>>> > , I could fix the problem and fltk folder has been created at
>>>>> > \usr\local\Cellar\fltk\1.3.3-r10866_1\)
>>>>> > 5- Installing ITKApps:
>>>>> >
>>>>> > - Create a folder named "Applications"
>>>>> >
>>>>> > - In "Applications" directory run: git clone
>>>>> > http://itk.org/ITKApps.git
>>>>> >
>>>>> > -This will make a floder named "ITKApps"
>>>>> >
>>>>> > - Then, create a folder named "build" in "Applications" directory
>>>>> >
>>>>> > - Use Cmake gui:
>>>>> >
>>>>> > * Source: PathTo/Applications/ITKApps
>>>>> > * Build: PathTo/Applications/build
>>>>> >
>>>>> > - Configure! There is a bug: Fltk resources not found, GUI
>>>>> > application will
>>>>> > not respond to mouse events
>>>>> >
>>>>> > - Manually set the ITK_FLTK_RESOURCE to
>>>>> > \usr\local\Cellar\fltk\1.3.3-r10866_1\
>>>>> >
>>>>> > - Configure again! Successful!
>>>>> >
>>>>> > - Generate! Successful!
>>>>> >
>>>>> > - Go to /Applications/build directory, and make.
>>>>> >
>>>>> > This process ends with 8 errors related to DICOMApp.
>>>>> > "8 errors generated.
>>>>> > make[2]: *** [DICOMApp/CMakeFiles/DICOMApp.dir/main.cxx.o] Error
>>>>> > 1make[1]:
>>>>> > *** [DICOMApp/CMakeFiles/DICOMApp.dir/all] Error 2
>>>>> > make: *** [all] Error 2"
>>>>> >
>>>>> > Please find attached the text file including the errors I got.
>>>>> >
>>>>> > Thanks,
>>>>> > Sara Gh
>>>>> >
>>>>> >
>>>>> > _______________________________________________
>>>>> > Community mailing list
>>>>> > Community at itk.org
>>>>> > http://public.kitware.com/mailman/listinfo/community
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Community mailing list
>>>>> Community at itk.org
>>>>> http://public.kitware.com/mailman/listinfo/community
>>>>>
>>>>
>>>
>>
>


More information about the Community mailing list