こんにちは、VTKは初めてです。QtデザイナーでQVTKPluginWidgetを使いたいです。VisualStudio2008とMSVCコンパイラCMake-2.8.10.1Qtバージョン-4.8.3VTK-5.0を使用しています
VTKユーザーズガイドに従って、CmakeでVTK Libを構成し、次のようないくつかのオプションを設定する必要があります。
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
次に、このライブラリをVisual Studioでビルドしてから、プラグイン/デザイナーフォルダーにQVTKPluginWidget.dllをコピーする必要があります。次に、デザイナーでQVTKWidgetを取得する必要があります
しかし、私はこのプロセスを行った後、デザイナーでそれを取得していません。親切に私を助けてください。