[vtkusers] VTK build with postfix d : error

Ashish Singh asinghmlists at gmail.com
Mon Jun 24 04:15:40 EDT 2013


I am replying to my own post. For issue # 2, I checked file
GUISupport/Qt/PluginInstall.cmake

The contents of this file are as follows:
----
# Configured file and directory locations.
SET(VTK_LIB_DIR "E:/VTKDebugBuild/bin")
SET(VTK_INSTALL_QT_DIR "/plugins/designer")
SET(VTK_INSTALL_QT_PLUGIN_DIR
"${CMAKE_INSTALL_PREFIX}${VTK_INSTALL_QT_DIR}")
SET(VTK_INSTALL_QT_PLUGIN_FILE "QVTKWidgetPlugin.dll")
SET(VTK_CONFIGURATIONS "Debug;Release;MinSizeRel;RelWithDebInfo")

IF(VTK_CONFIGURATIONS)
  SET(VTK_LIBSUBDIR "/${BUILD_TYPE}")
ENDIF(VTK_CONFIGURATIONS)

# Install the file to the specified location.
FILE(INSTALL DESTINATION "${VTK_INSTALL_QT_PLUGIN_DIR}" TYPE SHARED_LIBRARY
  FILES "${VTK_LIB_DIR}${VTK_LIBSUBDIR}/${VTK_INSTALL_QT_PLUGIN_FILE}")
----
If we look at line :
SET(VTK_INSTALL_QT_PLUGIN_FILE "QVTKWidgetPlugin.dll")

we see that it is looking for file "QVTKWidgetPlugin.dll". But since, I
already added a postfix d, it cannot find this file and therefore is giving
errors. If I change the file name to QVTKWidgetPlugind.dll, the build
"Install" step succeeds.

Is this a bug?

Issue # 1, still remains. I am still not able to run the
RenderWindowNoUiFile example after adding postfix d.

Can anyone please help?

Thanks,
Ashish

On Mon, Jun 24, 2013 at 12:26 PM, Ashish Singh <asinghmlists at gmail.com>wrote:

> Hi,
>
> 1) I am trying to build VTK5.10.1 with Qt 4.8.4 on Windows 7, x64 platform
> with Visual Studio 2010 with postfix 'd' option. The build goes fine
> without any errors. I am able to run the cone example( plain VTK example)
> using my build.  But when I run the RenderWindowNoUiFile ( VTK + Qt
> example), I get a runtime error saying -
> "The application was unable to start correct (0xc000000d). Click OK to
> close the application"
>
> 2) When I try to build "Install" for this VTK build, I  get the following
> error:
>
> 1>  -- Up-to-date: E:/VTKDebugBin/bin/QVTKd.dll
> 1>  CMake Error at GUISupport/Qt/PluginInstall.cmake:13 (FILE):
> 1>    file INSTALL cannot find
> "E:/VTKDebugBuild/bin/Debug/QVTKWidgetPlugin.dll".
> 1>  Call Stack (most recent call first):
> 1>    GUISupport/Qt/cmake_install.cmake:89 (INCLUDE)
> 1>    GUISupport/cmake_install.cmake:32 (INCLUDE)
> 1>    cmake_install.cmake:181 (INCLUDE)
> 1>
> 1>
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: The command "setlocal
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe"
> -DBUILD_TYPE=Debug -P cmake_install.cmake
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: if %errorlevel% neq 0 goto :cmEnd
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: :cmEnd
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: :cmErrorLevel
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: exit /b %1
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: :cmDone
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: if %errorlevel% neq 0 goto :VCEnd
> 1>C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(113,5): error
> MSB3073: :VCEnd" exited with code 1.
> 1>
> 1>Build FAILED.
> 1>
> 1>Time Elapsed 00:00:10.95
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
> Can anyone please help me figure out what is going wrong here and how to
> fix these 2 issues?
>
> The details of my environment are:
> VTK version: 5.10.1
> Qt: 4.8.4
> OS: windows 7 64 bit
> Visual Studio 2010
>
> Thanks,
> Ashish
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130624/f3ff4e48/attachment.htm>


More information about the vtkusers mailing list