[vtkusers] Problem executing VTK in release mode with Visual Studio 2013

Olivier Ameline olivameline at gmail.com
Tue Jul 5 05:11:42 EDT 2016


Hello everyone, 

I'm trying to execute the VTK-Qt example "SimpleView" (available  here
<https://gitlab.kitware.com/vtk/vtk/tree/8f27431046ddbfe6665790b334f1a78d56c961fe/Examples/GUI/Qt/SimpleView> 
) in Windows 10 with Visual Studio 2013, but it does not work in release
mode.

I have compiled VTK 6.2.0 with Qt 5.4.2 using Visual Studio 2013 (in a
folder C:/VTK-build-MSVC2013-x64).

Then, I have added the following line in the CMakeLists (just after
project(SimpleView)) :

set(VTK_DIR "C:/VTK-build-MSVC2013-x64")

I have compiled in debug and release mode successfully, and the executables
are created.
I have also added the VTK debug/release .dll in the folders where the
executables are.

The execution works well in debug mode, but not in release mode : the
program starts and exit immediately.
I receive no error message.

More generally, I never could execute any program VTK compiled with Visual
Studio in release mode.

What am I doing wrong ?

Thanks for help.

Olivier








--
View this message in context: http://vtk.1045678.n5.nabble.com/Problem-executing-VTK-in-release-mode-with-Visual-Studio-2013-tp5739093.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list