Hi Erkang,
Please always reply to the mailing list.
Your build settings look okay. Do you build a 32 Bit or a 64 Bit version? Take
care that all toolkits are compiled in either 32 bit or 64 bit, especially the
qt binary download.
I'm a bit confused by "I run the MITK-0.14.0-win32.exe and add "C:\Program
Files (x86)\MITK 0.14.0\bin" into path."
This is the installer of our binary distribution of the MITK main application.
It does not contain the source code that you need if you want to compile your
own MITK.
Can you compile and run the MITK CoreApp and ExtApp? There should be batch
files in your binary mitk/bin folder (StartCoreAppRelease.bat...)
Best Regards,
Jochen
Von: Erkang Cheng [mailto:[email protected]]
Gesendet: Samstag, 27. Februar 2010 20:49
An: Neuhaus Jochen
Betreff: Re: [mitk-users] Q about step1
Hi Neuhaus Jochen:
Thanks for your help.
My computer is 64-bit and the opreate system is Windows 7. I use Visual studio
2008 also.
The CMake version is CMake 2.8.
For QT, I download and run qt-win-opensource-4.6.2-vs2008.exe to install QT is
C:\Qt\4.6.2.
Also, I run vcvarsall.bat;
select Visual Studio 2005 Command Prompt -- change the current dir to
C:\Qt\4.6.2
and run set QTDIR=C:\Qt\4.6.2; QMAKESPEC=win32-msvc2008; configure
-debug-and-release;nmake
Then, qt is installed on my computer. I add "C:\Qt\4.6.2\bin" in the path.
For ITK, I use
InsightToolkit-3.16.0<http://voxel.dl.sourceforge.net/sourceforge/itk/InsightToolkit-3.16.0.zip>,
the The option on CMake are:
where is the source code: C:/ITK/InsightToolkit
where to build the binaries: C:/ITK/InsightToolkit_install
Current Generator: Visual Studio 9 2008
BUILD_SHARED_LIBS ON
CMAKE_BACKWARDS_COMPATIBILITY 2.4 (This is presented in the
CMakeLists.txt)
CMake_INSTALL_PREFIX C:/ITK/InsightToolkit_bin
I add " C:\ITK\InsightToolkit_bin\bin" in the path. I test the HelloWorld
example, it works well.
For VTK, I use vtk-5.4.2, The option on CMake are:
where is the source code: C:/ITK/InsightToolkit
where to build the binaries: C:/ITK/InsightToolkit_install
Current Generator: Visual Studio 9 2008
BUILD_SHARED_LIBS ON
CMAKE_BACKWARDS_COMPATIBILITY 2.4
CMAKE_INSTALL_PREFIX C:/VTK/VTK_bin
DESIRED_QT_VERSION 4
QT_QMAKE_EXECUTABLE C:/Qt/4.6.2/bin/qmake.exe
VTK_DATA_ROOT C:/VTK/data/VTKData
VTK_USE_GEOVIS ON
VTK_USE_INFOVIS ON
VTK_USE_MFC ON
VTK_USE_PARALLEL ON
VTK_USE_QVTK ON
VTK_USE_VIEWS ON
I add " C:\VTK\VTK_bin\bin" in the path. I test the Example\GUI\Qt and
Example\GUI\win32. The VTK works well.
For MITK, the version is 0.14 . I just run the CMake. The options on CMake is
like this:
ITK_DIR C:\ITK\InsightToolkit_install
VTK_DIR C:\VTK\VTK_install
DESIRED_QT_VERSION 4
USE_ITKZLIB on
I run the MITK-0.14.0-win32.exe and add "C:\Program Files (x86)\MITK
0.14.0\bin" into path.
Could help me figure out the problem?
Thanks again. I hope I can use MITK to write my own program.
BTW: The attachments are images about CMake options when I build VTK and MITK.
Best
Erkang
On Sat, Feb 27, 2010 at 3:05 AM, Neuhaus Jochen
<[email protected]<mailto:[email protected]>> wrote:
Hello Erkang,
Could you give us some more information about your setup? Which ITK, VTK and QT
versions do you use? Which version of MITK? Which compiler and operating
system? Did you build ITK, VTK and QT as shared libraries? Assuming, you use
Windows, do you have the correct paths in your PATH variable?
Best regards,
Jochen
Von: Erkang Cheng [mailto:[email protected]<mailto:[email protected]>]
Gesendet: Freitag, 26. Februar 2010 21:57
An: [email protected]<mailto:[email protected]>
Betreff: [mitk-users] Q about step1
I have installed the MITK on my computer.
When I play with the step1. I encounter some questions. I debug into the
step1.cpp and I found I have bug in
// Register Qmitk-dependent global instances
QmitkRegisterClasses();
The bug is
Unhandled exception at 0x7582b727 in Step1.exe: Microsoft C++ exception:
itk::ExceptionObject at memory location 0x0174f9b0..
And this error is linked into "itkLightObject.cxx"
line 164 InterlockedIncrement(&m_ReferenceCount);
I think there are some problems here
void
LightObject
::Register() const
{
// Windows optimization
#if (defined(WIN32) || defined(_WIN32))
InterlockedIncrement(&m_ReferenceCount);
....
}
Could anyone help me figure out the problem? I am the newer to learn the MITK.
Tkanks
Best
Erkang Cheng
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users