Thanks Stephan for your help!

QtSimpleView from the VTK 5.0.4 Examples does work well now. And I managed to build and launch the MITK Tutorial Step1, 2 and 3.

But when it comes to Step 4, line 154
toplevelWidget.show();
I get the old glViewport error, when resized/initialized by mitkVtkPropRenderer in line 418.

In Step 3 the corresponding line 146
renderWindow.show();
makes no problem.

So there is a problem with this QHBox toplevelWidget. Unfortunately I cannot debug behind this glViewport and don't know what happens there and how to solve it.

Is there a way to debug qt3 in XCode? Is it useful to try mitk on MacOS with qt4.5? If yes, how does qt4 use this glViewport?

I won't give up!!

Regards,

Andreas

Am 01.04.2009 um 09:33 schrieb Stephan Wirth:

Hi Andreas,

On Tue, Mar 31, 2009 at 8:59 PM, Andreas Hahn <[email protected]> wrote:
Hi Stephan,
i rebuilded everything with your options, exept i had to use ITK_ZLIB and VTK 5.2.1. I could build mitk, but the error stayed the same. Cmake threw
the following warning, but generated anyway:
CMake Warning (dev) at Core/CMakeLists.txt:47 (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 "mitkCore" links to some libraries for which the linker
must
  search:
    m, -lpthread, -lm
  and other libraries with known full path:
/Users/ahahn/Documents/BINARIES/MITK0.10.0/bin/Debug/ libmitkIpPic.dylib
    /opt/local/lib/libqt-mt.dylib
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

I got the same policy warning, it does not seem to generate any errors though.

I dont know what to check next. Does this error in glViewport mean, that
openGL is wrong??

Try to get a minimal VTK example working that uses the QVTKWidget with Qt3. Then try to get the MITK Step1, Step2... examples from the tutorial working.

Best regards,
 Stephan

------------------------------------------------------------------------------
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to