Hi Luca,
Thanks for the suggestions, but I think the issue was due to the build
environment getting messed up in some way. I had set up different build
directories for mingw and MSVC, but I believe the SRC directories were
shared. It shouldn't have caused problems, but it's the only thing I can
think of. I got rid of mingw and rebuilt everything from scratch with MSVC
and I had successful compilation. Of course, my app segfaults for some
reason at startup, but that is the next challenge. :)
Cheers,
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
>
>
>
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users