[Insight-developers] ITKApps Superbuild

Bill Lorensen bill.lorensen at gmail.com
Tue Jan 10 11:03:53 EST 2012


The apps require fltk 1.3 I believe.

On Tue, Jan 10, 2012 at 9:42 AM, Williams, Norman K
<norman-k-williams at uiowa.edu> wrote:
> FLTK is dependent on Carbon under OSX, so it's 32-bit only on that
> platform.
>
>
> I've used this to build FLTK
>
> ExternalProject_add(fltk
>  URL "http://ftp2.easysw.com/pub/fltk/1.1.10/fltk-1.1.10-source.tar.gz"
>  URL_MD5 e6378a76ca1ef073bcb092df1ef3ba55
>  UPDATE_COMMAND ""
>  BUILD_IN_SOURCE 1
>  CONFIGURE_COMMAND ./configure
>  --prefix=${CMAKE_CURRENT_BINARY_DIR}/Prereqs
>  ${platform_cflags}
> )
>
> But then everything that depends on FLTK needs this:
>
> if(APPLE)
>  # need to do a 32-bit build because of FLTK needing Carbon
>  set(platform_flags ${platform_flags}
>    -DCMAKE_OSX_ARCHITECTURES:STRING=i386
>    -DCMAKE_C_FLAGS:STRING=-m32;-O2
>    -DCMAKE_CXX_FLAGS:STRING=-m32;-O2)
>    set(platform_cflags "CFLAGS=-m32 -O2" "CXXFLAGS=-m32 -O2")
> endif()
>
>
>
>
>
> On 1/9/12 6:49 PM, "Bill Lorensen" <bill.lorensen at gmail.com> wrote:
>
>>fltk was a real pain...
>>
>>On Mon, Jan 9, 2012 at 7:14 PM, Matt McCormick
>><matt.mccormick at kitware.com> wrote:
>>> Hi Bill,
>>>
>>> I tested with only the FLTK ExternalProject, using my own VTK_DIR and
>>> ITK_DIR, and it worked great!  FLTK apps were not building before, but
>>> they are now.
>>>
>>> Thanks,
>>> Matt
>>>
>>> On Sun, Jan 8, 2012 at 4:57 PM, Bill Lorensen <bill.lorensen at gmail.com>
>>>wrote:
>>>> Folks,
>>>>
>>>> Arnaud and I have created a Superbuild for ITKApps. It turns out it is
>>>> a pain to get the proper flags and versions for the dependent
>>>> toolkits, especially FLTK and VTK. I've only tested it on Linux.
>>>>
>>>> Please kick the tires and let me know what issues you uncover.
>>>>
>>>> git clone git://itk.org/ITKApps.git
>>>> mkdir ITKApps-Superbuild
>>>> cd ITKApps-Superbuild
>>>> cmake ../ITKApps/Superbuild
>>>> make
>>>>
>>>> If you have your own fltk, vtk and itk you can still
>>>> cmake ../ITKApps
>>>>
>>>> or
>>>>
>>>> cmake -DVTK_DIR:PATH=/home/lorensen/ProjectsGIT/VTKGerrit-linux
>>>> -DITK_DIR:PATH=/home/lorensen/ProjectsGIT/ITKGerrit-linux/
>>>> ../ITKAppsGerrit/Superbuild/
>>>>
>>>> Once we get the cooties out, we can apply a patch to the ITKApps
>>>>release.
>>>>
>>>> Bill
>>>> _______________________________________________
>>>> Powered by www.kitware.com
>>>>
>>>> Visit other Kitware open-source projects at
>>>> http://www.kitware.com/opensource/opensource.html
>>>>
>>>> Kitware offers ITK Training Courses, for more information visit:
>>>> http://kitware.com/products/protraining.html
>>>>
>>>> Please keep messages on-topic and check the ITK FAQ at:
>>>> http://www.itk.org/Wiki/ITK_FAQ
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.itk.org/mailman/listinfo/insight-developers
>>
>>
>>
>>--
>>Unpaid intern in BillsBasement at noware dot com
>>_______________________________________________
>>Powered by www.kitware.com
>>
>>Visit other Kitware open-source projects at
>>http://www.kitware.com/opensource/opensource.html
>>
>>Kitware offers ITK Training Courses, for more information visit:
>>http://kitware.com/products/protraining.html
>>
>>Please keep messages on-topic and check the ITK FAQ at:
>>http://www.itk.org/Wiki/ITK_FAQ
>>
>>Follow this link to subscribe/unsubscribe:
>>http://www.itk.org/mailman/listinfo/insight-developers
>
>
>
> ________________________________
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> ________________________________



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the Insight-developers mailing list