[Insight-users] CMake configure insightapplications with FLTK
Yang, Jinzhong
jinzhong76 at gmail.com
Tue Feb 28 11:34:27 EST 2012
Hi Kevin,
I got the same error after I changed the "FLTK_USE_FILE" to "USE_FLTK_FILE"
in InsightApplications-4.0.0/CMakeList.txt, line 128.
Anyway, I will wait till 4.1 released. I also found that ITK 4.0
significantly slowed down my program built on this version. I had to switch
back to 3.16. Hope 4.1 can solve the problem.
Thank you!
-Jinzhong
-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of Kevin Keraudren
Sent: Monday, February 27, 2012 12:29 PM
To: insight-users at itk.org
Subject: Re: [Insight-users] CMake configure insightapplications with FLTK
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
More information about the Insight-users
mailing list