[vtkusers] QVTK problems

Clinton Stimpson clinton at elemtech.com
Tue Mar 28 18:39:27 EST 2006


> I m tying to use the gui support package for qt. 
> The problem is that it generates several link errors (LNK 2019).
> I m not sure what the problem could be but i was told that it is because of
> my compiler which is visual c++ 2003 .net.(i m using qt 4.1.1 and tried to
> cmake it whith cmake 2.2.3 but no success)
> does anybody have any idea.
> could sb tell me how he installed the whole kit and succeded using it.(step
> by step pls)
> 
> Thanks
> --
> View this message in context: http://www.nabble.com/QVTK-problems-t1357816.html#a3636756
> Sent from the VTK - Users forum at Nabble.com.


If you gave the link errors, that might help narrow down the problem.
My best guess is not correctly specifying the Qt libraries to link with.


1. Run CMake on VTK
2. Turn VTK_USE_GUISUPPORT on
3. Turn VTK_USE_QVTK on
4. Fill in the correct values for Qt.  Make sure qmake, moc, Qt includes, Qt libraries are all specified correctly.
5. Generate the project files/makefiles.
6. Build
7. Build the INSTALL project to install it (you might want to make sure your CMAKE_INSTALL_PREFIX is what you want).

Clint




More information about the vtkusers mailing list