[ITK] Module_ITKLevelSetsv4Visualization warning

Francois Budin francois.budin at kitware.com
Mon Oct 10 17:56:04 EDT 2016


Hello Kenji,

Thanks for your report. I found the bug that was causing you problems. I
have submitted a correction that is under review now:
http://review.source.kitware.com/#/c/21611/

Feel free to look at it, and test it on your machine.

Best,
Francois

On Mon, Oct 10, 2016 at 2:39 PM, Francois Budin <francois.budin at kitware.com>
wrote:

> Hello Kenji,
>
> Can you try to add this line before Line 98?
> string(REGEX REPLACE "\""
>          "\\\\\"" ITKLevelSetsv4Visualization_VTK_DEFINITIONS
>          "${ITKLevelSetsv4Visualization_VTK_DEFINITIONS}")
>
> The idea is to escape the quote characters that are added in the variable
> ITKLevelSetsv4Visualization_VTK_DEFINITIONS.
> The result should be:
> set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "
> vtkRenderingCore_INCLUDE=*\"*D:/workspace_itk_org/InsightToolk
> it-4.10.1-bin/CMakeFiles/vtkRenderingCore_AUTOINIT_
> vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h*\"* ")
>
> On Mon, Oct 10, 2016 at 2:06 PM, Kenji Tsumura <
> kenji.tsumura at neosoftmedical.com> wrote:
>
>> Hi Francois,
>>
>>
>>
>> The problem still persists.
>>
>> I changed the CMakeList.txt like this: spaces before and after
>> ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS}.
>>
>>
>>
>> Line 98:
>>
>>   set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS \"
>> ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS} \")
>>
>> Line 130:
>>
>>   set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS \"
>> ${ITKLevelSetsv4Visualization_VTK_DEFINITIONS} \")
>>
>>
>>
>> In the generated file, there are spaces after the first double quotation
>> and before the last double quotation.
>>
>> I think spaces are required for the double quotations of the path.
>>
>>
>>
>>   set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "
>> vtkRenderingCore_INCLUDE="D:/workspace_itk_org/InsightToolki
>> t-4.10.1-bin/CMakeFiles/vtkRenderingCore_AUTOINIT_
>> vtkInteractionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h" ")
>>
>>
>>
>> Thank you,
>>
>>
>>
>> Kenji
>>
>> *From:* Francois Budin [mailto:francois.budin at kitware.com]
>> *Sent:* Monday, October 10, 2016 12:46 PM
>> *To:* Kenji Tsumura
>> *Cc:* Matt McCormick; community at itk.org
>>
>> *Subject:* Re: [ITK] Module_ITKLevelSetsv4Visualization warning
>>
>>
>>
>> Hello Kenji,
>>
>> Could you add these extra space in ITK/Modules/Segmentation/Level
>> Setsv4Visualization/CMakeLists.txt line 98 and line 130 and see if that
>> solves your issue?
>>
>> Thanks,
>>
>> Francois
>>
>>
>>
>> On Mon, Oct 10, 2016 at 1:35 PM, Kenji Tsumura <
>> kenji.tsumura at neosoftmedical.com> wrote:
>>
>> Hi Matt,
>>
>>
>>
>>                   |
>>
>>
>>                   V
>>     set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
>> "vtkRenderingCore_INCLUDE="D:/workspace_itk/InsightToolkit-4
>> .10.1-bin-2/CMakeFiles/vtkRenderingCore_AUTOINIT_vtkInteract
>> ionStyle_vtkRenderingFreeType_vtkRenderingOpenGL2.h"")
>>
>> I think adding spaces after starting double quotation and before ending
>> double quotation solves the warning.
>> But the problem is that this file ITKLvelSetsv4Visualization.cmake is
>> auto-generated...
>>
>> Thank you,
>>
>> Kenji
>>
>> -----Original Message-----
>> From: Matt McCormick [mailto:matt.mccormick at kitware.com]
>> Sent: Monday, October 10, 2016 11:53 AM
>> To: Kenji Tsumura
>>
>> Cc: Francois Budin; community at itk.org
>> Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning
>>
>> Hi Kenji,
>>
>> Could you please share the content of
>>
>>   Syntax Warning in cmake code at
>>
>>     D:/workspace_itk/InsightToolkit-4.10.1-java-bin/lib/cmake/
>> ITK-4.10/Modules/ITKLevelSetsv4Visualization.cmake:41:91
>>
>> ?
>>
>> Thanks,
>> Matt
>>
>> On Mon, Oct 10, 2016 at 11:55 AM, Kenji Tsumura <
>> kenji.tsumura at neosoftmedical.com> wrote:
>> > Hi Francois,
>> >
>> >
>> >
>> > I tried again and saw the same problem.
>> >
>> > I turned on only BUILD_EXAMPLES and Module_ITKLevelSetsv4Visualization.
>> >
>> >
>> >
>> > I forgot to mention that I use Visual Studio 2013.
>> >
>> >
>> >
>> > Thank you,
>> >
>> >
>> >
>> > Kenji
>> >
>> >
>> >
>> > From: Francois Budin [mailto:francois.budin at kitware.com]
>> > Sent: Monday, October 10, 2016 10:38 AM
>> > To: Kenji Tsumura
>> > Cc: community at itk.org
>> > Subject: Re: [ITK] Module_ITKLevelSetsv4Visualization warning
>> >
>> >
>> >
>> > Hello Kenji,
>> >
>> > I do not seem to be able to reproduce your error on Ubuntu 16.04:
>> >
>> > cmake 3.1.1
>> >
>> > ITK 4.10.1
>> >
>> > VTK 7.0.0
>> >
>> > Did you change any of the default values in CMake beside
>> > BUILD_EXAMPLES and Module_ITKLevelSetsv4Visualization?
>> >
>> > Francois
>> >
>> >
>> >
>> > On Mon, Oct 10, 2016 at 10:20 AM, Kenji Tsumura
>> > <kenji.tsumura at neosoftmedical.com> wrote:
>> >
>> > Hi,
>> >
>> >
>> >
>> > When I tried to configure ITK, I had the following warning.
>> >
>> > I turned on Module_ITKLevelSetsv4Visualization and BUILD_EXAMPLES in
>> CMake.
>> >
>> > Apparently, due to this warning, I can't use classes in the
>> > LevelSetV4Visualization module,
>> >
>> > when I tried to build an example downloaded from the ITK website.
>> >
>> > (https://itk.org/ITKExamples/src/Segmentation/LevelSetsv4Visualization
>> > /VisualizeEvolvingDense2DLevelSetZeroSet/Documentation.html)
>> >
>> >
>> >
>> > I can modify the cmake file directly, but "Generate" action erases the
>> > changes I made.
>> >
>> > So I am not sure what to do.
>> >
>> >
>> >
>> >
>> >
>> > CMake Warning (dev) at CMake/ITKModuleAPI.cmake:54 (include):
>> >
>> >   Syntax Warning in cmake code at
>> >
>> >
>> >
>> >
>> > D:/workspace_itk/InsightToolkit-4.10.1-java-bin/lib/cmake/ITK-4.10/Mod
>> > ules/ITKLevelSetsv4Visualization.cmake:41:91
>> >
>> >
>> >
>> >   Argument not separated from preceding token by whitespace.
>> >
>> > Call Stack (most recent call first):
>> >
>> >   CMake/ITKModuleAPI.cmake:26 (itk_module_load)
>> >
>> >   CMake/ITKModuleAPI.cmake:84 (_itk_module_config_recurse)
>> >
>> >   D:/workspace_itk/InsightToolkit-4.10.1-java-bin/ITKConfig.cmake:68
>> > (itk_module_config)
>> >
>> >   Examples/CMakeLists.txt:5 (find_package)
>> >
>> > This warning is for project developers.  Use -Wno-dev to suppress it.
>> >
>> >
>> >
>> >
>> >
>> > My environment is ...
>> >
>> > OS: Windows 7
>> >
>> > CMake 3.1.1
>> >
>> > ITK 4.10.1
>> >
>> > VTK 7.0.0
>> >
>> >
>> >
>> > I would appreciate any advice.
>> >
>> > Thank you in advance!
>> >
>> >
>> >
>> > Kenji
>> >
>> > Disclaimer: The information contained in this communication may be
>> > confidential, is intended only for the use of the recipient(s) named
>> > above, and may be legally privileged. If the reader of this message is
>> > not the intended recipient, you are hereby notified that any
>> > dissemination, distribution, or copying of this communication, or any
>> > of its contents, is strictly prohibited. If you have received this
>> > communication in error, please return it to the sender immediately and
>> > delete the original message and any copy of it from your computer
>> > system. If you have any questions concerning this message, please
>> contact the sender.
>> >
>> >
>> > _______________________________________________
>> > Community mailing list
>> > Community at itk.org
>> > http://public.kitware.com/mailman/listinfo/community
>> >
>> >
>> >
>> > Disclaimer: The information contained in this communication may be
>> > confidential, is intended only for the use of the recipient(s) named
>> > above, and may be legally privileged. If the reader of this message is
>> > not the intended recipient, you are hereby notified that any
>> > dissemination, distribution, or copying of this communication, or any
>> > of its contents, is strictly prohibited. If you have received this
>> > communication in error, please return it to the sender immediately and
>> > delete the original message and any copy of it from your computer
>> > system. If you have any questions concerning this message, please
>> contact the sender.
>> >
>> > _______________________________________________
>> > Community mailing list
>> > Community at itk.org
>> > http://public.kitware.com/mailman/listinfo/community
>> >
>> Disclaimer: The information contained in this communication may be
>> confidential, is intended only for the use of the recipient(s) named above,
>> and may be legally privileged. If the reader of this message is not the
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this communication, or any of its contents, is
>> strictly prohibited. If you have received this communication in error,
>> please return it to the sender immediately and delete the original message
>> and any copy of it from your computer system. If you have any questions
>> concerning this message, please contact the sender.
>>
>>
>> Disclaimer: The information contained in this communication may be
>> confidential, is intended only for the use of the recipient(s) named above,
>> and may be legally privileged. If the reader of this message is not the
>> intended recipient, you are hereby notified that any dissemination,
>> distribution, or copying of this communication, or any of its contents, is
>> strictly prohibited. If you have received this communication in error,
>> please return it to the sender immediately and delete the original message
>> and any copy of it from your computer system. If you have any questions
>> concerning this message, please contact the sender.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20161010/1622f612/attachment-0001.html>


More information about the Community mailing list