<html><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><META name="Author" content="Novell GroupWise WebAccess"></head><body style='font-family: Tahoma, sans-serif; font-size: 13px; '>I think I realized what the problem is.  I don't have time to verify this now but I will report back when I do.<br><br>When I did this last (about a year ago) I was using a VTK build that was set to create shared libraries.  As I recall that was required when I built ITK with ITKVTKGlue turned on.  My current build is using static VTK libraries (nice not to have to deal with .dll's) and I didn't get the error in CMake when setting up ITK, and the Quickviewer worked just fine.  I suspect that my problem now is that I don't have VTK built with shared libraries.  Does this make sense to anyone?<br><br>Kent<br><br><br>>>> Pol Monsó Purtí<lluna.nova@gmail.com> 04/09/15 1:48 PM >>><br>
<div dir="ltr"><div>Hello Kent,<br><br>vtkRenderingCore_INCLUDE is probably empty so it then results on #include and that's it.<br><br></div>Maybe try adding #warning vtkRenderingCore_INCLUDE to see it's contents, but that's probably what's happening. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-09 18:42 GMT+02:00 Kent Ogden <span dir="ltr"><<a href="mailto:ogdenk@upstate.edu" target="_blank">ogdenk@upstate.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="MARGIN:4px 4px 1px;FONT:10pt Segoe UI">
<div dir="ltr">Hi,</div>
<div dir="ltr"> </div>
<div dir="ltr">I am trying to do something really simple, I have a VTK project (I'm trying this with the cone.cxx example, about as simple as it gets) and I want to add ITK functionality.  In the past I had used a modified version of the ITKQuickView example, and it used to work:</div>
<div dir="ltr"> </div>
<div dir="ltr">cmake_minimum_required(VERSION 2.8)<br> <br>project(Cone)<br> <br>find_package(ITK REQUIRED)<br>include(${ITK_USE_FILE})<br>if (ITKVtkGlue_LOADED)<br>  find_package(VTK REQUIRED)<br>  include(${VTK_USE_FILE})<br>else()<br>  find_package(ItkVtkGlue REQUIRED)<br>  include(${ItkVtkGlue_USE_FILE})<br>  set(Glue ItkVtkGlue)<br>endif()<br> <br>add_executable(Cone MACOSX_BUNDLE Cone.cxx)<br>target_link_libraries(Cone<br>  ${Glue}  ${VTK_LIBRARIES} ${ITK_LIBRARIES})</div>
<div dir="ltr"> </div>
<div dir="ltr">Now, however, I get the following compile error (VS 2012 64 bit on Win 7):</div>
<div dir="ltr"> </div>
<div dir="ltr">2>C:\KW\VTKBuild\Rendering\Core\vtkRenderingCoreModule.h(37): error C2006: '#include' : expected a filename, found 'newline'<br></div>
<div dir="ltr">The vicinity of that line in vtkRenderingCoreModule.h is</div>
<div dir="ltr"> </div>
<div dir="ltr">/* AutoInit implementations.  */<br>#if defined(vtkRenderingCore_INCLUDE)<br># include vtkRenderingCore_INCLUDE  // Error is from this line <br>#endif<br>#if defined(vtkRenderingCore_AUTOINIT)<br># include "vtkAutoInit.h"<br>VTK_AUTOINIT(vtkRenderingCore)<br>#endif</div>
<div dir="ltr"> </div>
<div dir="ltr">I do not have any ITK functionality added to the program yet, it is just the cone.cxx example.  If I use a very simple CMakelists.txt file the program compiles and runs just fine:</div>
<div dir="ltr"> </div>
<div dir="ltr">cmake_minimum_required(VERSION 2.8)<br> <br>project(Cone)<br>set(VTK_DIR "C:/KW/VTKBuild")<br>set(ITK_DIR "C:/KW/ITKBuild")<br> <br>find_package(VTK REQUIRED)<br>include(${VTK_USE_FILE})<br> <br>add_executable(Cone MACOSX_BUNDLE Cone.cxx)<br>target_link_libraries(Cone ${VTK_LIBRARIES} )</div>
<div dir="ltr"> </div>
<div dir="ltr">But if I try to add</div>
<div dir="ltr"> </div>
<div dir="ltr">find_package(ITK REQUIRED)<br>include(${ITK_USE_FILE})</div>
<div dir="ltr"> </div>
<div dir="ltr">I get the same error as above.  I am sure this is a simple issue but my understanding of CMake is limited.  I know this isn't precisely an ITK problem per se but I hoped someone could point out what I am doing wrong.</div>
<div dir="ltr"> </div>
<div dir="ltr">Any help greatly appreciated!</div>
<div dir="ltr"> </div>
<div dir="ltr">Kent</div>
<div dir="ltr"> </div>
<div dir="ltr"><br> </div>
<div dir="ltr"> </div>
<div dir="ltr"> </div>
<div dir="ltr"><br> </div>
<div> </div>
<div dir="ltr"> </div>Kent Ogden PhD<br>Associate Professor, Radiology<br>SUNY Upstate Medical University<br>750 E. Adams Street<br>Syracuse, NY  13210<br><br>email:  <a href="mailto:ogdenk@upstate.edu" target="_blank">ogdenk@upstate.edu</a> <br>voice:  <a href="tel:%28315%29%20464-5083" value="+13154645083" target="_blank">(315) 464-5083</a><br>fax:       <a href="tel:%28315%29%20464-8789" value="+13154648789" target="_blank">(315) 464-8789</a></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</lluna.nova@gmail.com></body></html>