[vtkusers] Problem in instaling QVTKWidgetPlugin
Rodrigo Lovera
lobo.theslayer at gmail.com
Thu Dec 6 12:19:37 EST 2012
Hi,
Once you build vtk in cmake with the gui support on and the qt checked as
well, you go wether if you build it as debug or release to the folder where
you build your VTK, there you'll find your QVTKWidget.dll u take that and
paste it into the Qt plugin folder, that 'd add the qvtkwidget into your qt
designer window as a widget to add into your gui.
Take in consideration that you have to put:
Shared Libs ON
Regards,
Rodrigo
2012/12/6 qt.itk.vtk.help <qt.itk.vtk.help at gmail.com>
> Hie,
> I am new to VTK.I want to use QVTKPluginWidget in Qt designer.
> I am using Visual Studio 2008 with MSVC compiler
> CMake- 2.8.10.1
> Qt Version -4.8.3
> VTK - 5.0
>
> As per VTK User's Guide we have to configure VTK Lib with Cmake with
> setting
> few options like,
>
> VTK_USE_GUISUPPORT=Turn On
> configure
> Desired Qt version cmake take itself
> configure
> then
> set qt_qmake_executable
> ON Build Example
> configure
>
>
> after doing this i am getting this warning in Cmake
> CMake Warning (dev) at GUISupport/Qt/CMakeLists.txt:113 (ADD_LIBRARY):
> Policy CMP0003 should be set before this line. Add code such as
>
> if(COMMAND cmake_policy)
> cmake_policy(SET CMP0003 NEW)
> endif(COMMAND cmake_policy)
>
> as early as possible but after the most recent call to
> cmake_minimum_required or cmake_policy(VERSION). This warning appears
> because target "QVTKWidgetPlugin" links to some libraries for which the
> linker must search:
>
> vfw32, opengl32
>
> and other libraries with known full path:
>
> C:/Qt/4.8.3/lib/QtGuid4.lib
> E:/DebugLibrary/VtkBin/bin/Debug/vtkRendering.lib
>
> CMake is adding directories in the second list to the linker search path
> in
> case they are needed to find libraries from the first list (for backwards
> compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to
> enable
> or disable this behavior explicitly. Run "cmake --help-policy CMP0003"
> for
> more information.
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> Generating done
>
>
> Then have to build this library in Visual studio then Copy the
> QVTKPluginWidget.dll in Plugin/Designer Folder.
> Then we should get QVTKWidget in designer
>
>
> But i am not getting that in designer after doing this process.Kindly help
> me.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
*Rodrigo aka WarHearT*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20121206/fbf26fc6/attachment.htm>
More information about the vtkusers
mailing list