[ITK] Problem with installing ITKApplications

Dženan Zukić dzenanz at gmail.com
Tue Mar 15 09:26:49 EDT 2016


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 <https://cmake.org/Bug/bug_report_page.php> 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
> <https://github.com/Homebrew/homebrew/issues/41581>! 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 <https://github.com/Homebrew/homebrew/issues/27404> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160315/5f786b83/attachment-0001.html>


More information about the Community mailing list