Also, I should add that it's independent of static/shared library settings.

On Thu, Mar 3, 2011 at 9:09 PM, Paul Simedrea <simed...@gmail.com> wrote:

> Funny, I had eventually added the same line in exactly the same place to
> try and fix it, but surprisingly with no luck. :(
>
> I gave up on the issue and just changed the relevant Segmentation include
> files line to the relative path for vtkvmtkITK, such as:
> #include "../Utilities/vtkvmtkITK/vtkvmtkITKImageToImageFilterFF.h"
>
> in vtkvmtkSigmoidImageFilter.h and others.
>
>
> Paul
>
>
> On Tue, Mar 1, 2011 at 3:21 AM, Luca Antiga <luca.ant...@gmail.com> wrote:
>
>> Hi Paul,
>>  unfortunately we don't have a build test environment... yet! Which means
>> I didn't know about this issue.
>>
>> Does it only happen with a static build on Windows, or also with shared?
>>
>> It's certainly a cmake include dir issue, somehow it looks like the CMake
>> variable vtkvmtkITK_SOURCE_DIR has not been assigned or isn't available for
>> some reason when the Segmentation directory is compiled.
>>
>> Can you please try adding
>>
>> INCLUDE_DIRECTORIES (${VTK_VMTK_SOURCE_DIR}/Utilities/vtkvmtkITK)
>>
>> after
>> INCLUDE_DIRECTORIES (${vtkvmtkITK_SOURCE_DIR})
>> INCLUDE_DIRECTORIES (${vtkvmtkITK_BINARY_DIR})
>>
>> in vtkVmtk/Segmentation/CMakeLists.txt?
>>
>> Thanks!
>>
>>
>> Luca
>>
>>
>> On Feb 28, 2011, at 4:36 AM, Paul Simedrea wrote:
>>
>> Also, just to test I have added ../Utilities/vtkvmtkITK to the #include
>> for vtkvmtkITKImageToImageFilterFF.h for SigmoidImageFilter and others
>> within the Segmentation directory and it solves the issue. I'd prefer not
>> modifying VMTK, however. :)
>>
>> On Sun, Feb 27, 2011 at 9:09 PM, Paul Simedrea <simed...@gmail.com>wrote:
>>
>>> Hi All,
>>>
>>> I'm compiling a statically linked project which uses VTK and VMTK that I
>>> have no troubles with in OS X, however the windows build fails with the
>>> error below:
>>>
>>> C:\MinGW\msys\1.0\home\paul\vmtk-0.9.0\vtkVmtk\Segmentation\vtkvmtkSigmoidImageFilter.h(35):
>>> fatal error C1083: Cannot open include file:
>>> 'vtkvmtkITKImageToImageFilterFF.h': No such file or directory
>>>   Generating Code...
>>>
>>> This error occurs whether I use MSVC or mingw, which leads me to believe
>>> that there is a CMake issue somewhere. My c++ module uses
>>> vtkvmtkSigmoidImageFilter.h, which in turn uses
>>> vtkvmtkITKImageToImageFilterFF.h. However, the include path to
>>> vtkVmtk\Utilities\vtkvmtkITK doesn't seem to be resolved. It's correct if I
>>> include vtkvmtkITKImageToImageFilterFF.h directly from my project, however,
>>> though this is not sufficient of course. Also I should mention that I was
>>> able to build VTK and VMTK without any issues.
>>>
>>> Has anyone else seen a similar issue? I know most people use the vmtk
>>> scripts rather than these modules directly. Any help would be appreciated.
>>>
>>> Thanks,
>>> Paul
>>>
>>>
>>>
>>
>> ------------------------------------------------------------------------------
>> Free Software Download: Index, Search & Analyze Logs and other IT data in
>> Real-Time with Splunk. Collect, index and harness all the fast moving IT
>> data
>> generated by your applications, servers and devices whether physical,
>> virtual
>> or in the cloud. Deliver compliance at lower cost and gain new business
>> insights. 
>> http://p.sf.net/sfu/splunk-dev2dev_______________________________________________
>> vmtk-users mailing list
>> vmtk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>>
>>
>>
>
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to