[vtkusers] Busted Qt Examples

Scott Johnson Scott.Johnson at neuwave.com
Mon Mar 29 12:39:19 EDT 2010


I grabbed my CMakeLists.txt from http://www.cmake.org/Wiki/VTK/Examples/Qt/SideBySideRenderWindows.

If I make your modification and re-run CMake, everything works out of the box.  Your include statement should be added to the example.

Thanks again.

		-- Scott

-----Original Message-----
From: John Drescher [mailto:drescherjm at gmail.com] 
Sent: Monday, March 29, 2010 11:28 AM
To: Scott Johnson
Cc: David Doria; vtkusers at vtk.org
Subject: Re: [vtkusers] Busted Qt Examples

On Mon, Mar 29, 2010 at 12:23 PM, Scott Johnson
<Scott.Johnson at neuwave.com> wrote:
> Hi Folks,
>
>
>
> Thanks for the help.  I'm attempting to build this on Windows under Visual
> Studio 2008.
>
>
>
> It turns out that the ui_SimpleView.h file is being generated, but I had to
> add '.' to the search path for include files for it to compile.  I'm not
> familiar enough with CMake to know how to modify CMakeLists.txt to modify
> the search path from there.
>
>

Hmm. In my copy of the vtk example I have:

# Use the include path and library for Qt that is used by VTK.
INCLUDE_DIRECTORIES(
	  ${QT_INCLUDE_DIR}
	  ${CMAKE_CURRENT_BINARY_DIR}
	  ${CMAKE_CURRENT_SOURCE_DIR}
)

I must have had that problem as well..

John



More information about the vtkusers mailing list