[Insight-users] CMake configure insightapplications with FLTK
Bill Lorensen
bill.lorensen at gmail.com
Mon Feb 27 14:29:00 EST 2012
ITKApps.4.1 has a superbuild option that will build everything you
need (ITK,VTK and FLTK) with all of the proper options. It works for
Windows and Linux. We expect ITKApps 4.1 to be announced with the soon
to be released ITK 4.1 release.
On Mon, Feb 27, 2012 at 1:28 PM, Kevin Keraudren
<kevin.keraudren10 at imperial.ac.uk> wrote:
> Hi Yang,
>
> I think the problem you are faced with is a bug between the two following
> lines:
>
> InsightApplications-4.0.0/FindFLTK.cmake, line 80:
> SET(USE_FLTK_FILE ${FLTK_DIR}/FLTKConfig.cmake)
>
> InsightApplications-4.0.0/CMakeList.txt, line 128:
> INCLUDE(${FLTK_USE_FILE})
>
> To fix it, you can change the second "FLTK_USE_FILE" into "USE_FLTK_FILE".
>
> Then I used:
> cd InsightApplications-4.0.0
> mkdir build
> cd build
> cmake -DFLTK_FLUID_EXECUTABLE:FILEPATH=/usr/local/bin/fluid -D
> ITK_DIR:PATH=/usr/local/lib/cmake/ITK-4.0 ..
> ccmake ..
> [turn OFF all the USE_* that correspond to application we do not want;
> turn OFF BUILD_TESTING;
> if we do not turn them off, the build will take ages, even with "make -j 4"]
> make -j 4
>
> I hope this helps,
> and if you confirm this then I'll file a bug report
> http://www.itk.org/Wiki/ITK/Procedure_for_Contributing_Bug_Fixes#Reporting_a_Bug
> (unless it's been already reported)
>
> Kind regards,
>
> Kevin
>
>
>
>
> Le 24/02/2012 14:30, Yang, Jinzhong a écrit :
>
>> Hi Bill,
>>
>> The InsightApplications I downloaded is version 4.0.0, coming with ITKv4.
>> If
>> I turned off USE_FLTK, everything was fine, and the vc++ 2005 solution is
>> ITKApps.sln. I would like to compile the DeformableModelSimplexMesh
>> project
>> so I need the FLTK turned on. Could you please help? Please let me know if
>> you need further information.
>>
>> Thank you!
>> -Jinzhong
>>
>>
>> -----Original Message-----
>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>> Sent: Thursday, February 23, 2012 8:06 PM
>> To: Yang, Jinzhong
>> Cc: insight-users at itk.org
>> Subject: Re: [Insight-users] CMake configure insightapplications with FLTK
>>
>> Are you trying InsightApplications or ITKApps. ITKApps is for ITKv4.
>>
>> On Thu, Feb 23, 2012 at 6:19 PM, Yang, Jinzhong<jinzhong76 at gmail.com>
>> wrote:
>>>
>>> Hi All,
>>>
>>>
>>>
>>> I was trying to configure InsightApplications in CMake with USE_FLTK
>>
>> turned
>>>
>>> on, but I continuously got the error message:
>>>
>>>
>>>
>>> CMake Error at CMakeLists.txt:128 (INCLUDE):
>>>
>>> include called with wrong number of arguments. Include only takes one
>>>
>>> file.
>>>
>>>
>>>
>>> Can anyone help? My Cmake version is 2.8.7, fltk version 1.1.10 and ITK
>>> version 4.0.0.
>>>
>>>
>>>
>>> Thanks,
>>>
>>> Jinzhong
>>>
>>>
>>> _____________________________________
>>> 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://www.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-users
>>>
>>
>>
>
> _____________________________________
> 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://www.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-users
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list