Dear Brad,

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 " ([EMAIL PROTECTED]@@QBEH.................

Similar errors like the above about QVTKWidget.obj were kept coming up, then compilation stop again. Any idea?

Thank you very much indeed.

Kind Regards,
Haifeng Zhao


On 05/06/06, Brad King <[EMAIL PROTECTED]> wrote:
Haifeng Zhao wrote:
> I am trying to compile VTK5.0 with Qt GUI Support in Windows 2000 that
> has Qt Open-Sourced 4.1.2 and CMake 2.4.2 installed.
>
> After QVTK is enabled in CMake, configuring it will prompt a message of
> "QtCore/QtGUI library is not found". This was because CMake did not find
> Qt libraries with prefix "lib" and suffix ".a".

What compiler was used to build Qt?  AFAIK, if it was not MSVC then the
libraries will not work with MSVC.  If it was MSVC then they would have
a .lib extension instead of a .a extension.

-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to