[CMake] Problem of Compiling VTK5.0 with Qt GUI Support in Win2000
Brad King
brad.king at kitware.com
Mon Jun 5 13:23:10 EDT 2006
Haifeng Zhao wrote:
> I am not sure what compiler was used to build Qt. Because it is a binary
> installation downloaded from the Qt official website. Do you mean I have
> to download the Qt source and build it with MSVC?
>
> I also found a solution for to change the Qt libraries extension. That
> is to modify the linking arguments from the
> "Build\GUISupport\Qt\CMakeFiles\QVTK.dir\build.make". After I did that,
> the linking problem was solved. However, another problem came up as follow,
>
> QVTKWidget.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: int __thiscall QWheelEvent::x(void)const
> " (__imp_?x at QWheelEvent@@QBEH.................
>
> Similar errors like the above about QVTKWidget.obj were kept coming up,
> then compilation stop again. Any idea?
This is what I meant about the libraries not being compatible with MSVC.
You probably downloaded libraries built with a MinGW compiler (g++)
and are trying to use them with MSVC. This will not work no matter what
build tool you use.
I don't think there is any free Qt version that works with MSVC and is
supported by Trolltech.
-Brad
More information about the CMake
mailing list