<span class="gmail_quote"></span><span class="gmail_quote"></span>Hi guys,<br><div><div><br>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.<br><br>
After QVTK is enabled in CMake, configuring it will prompt a message of &quot;QtCore/QtGUI library is not found&quot;. This was because CMake did not find Qt libraries with prefix &quot;lib&quot; and suffix &quot;.a&quot;. At the end, I found a solution, that was to modify the &quot;CMake/Share/Modules/Windows.cmake&quot; file and change the library prefix and suffix value to the following,
<br><br>SET(CMAKE_FIND_LIBRARY_PREFIXES &quot;lib&quot;)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>SET(CMAKE_FIND_LIBRARY_SUFFIXES &quot;.a&quot;)&nbsp;&nbsp; <br><br clear="all">After that, CMake was able to find all the Qt libraries and a Makefile was generated successfully. Then I used &quot;nmake&quot; to start compiling. However, an error (&quot;
libQtCore4.a.lib&quot; is not found) was displayed during linking QVTK.dll with other Qt libraries.<br><br>I realised the problem was also from the &quot;Windows.cmake&quot; file. Since SET(CMAKE_LINK_LIBRARY_SUFFIX &quot;.lib&quot;), all Qt libraries are added extension of &quot;.lib&quot; during linking. Then I changed the setting to SET(CMAKE_LINK_LIBRARY_SUFFIX &quot;&quot;). After that, linking Qt libraries become possible, however, linking the other libraries are not possible. Because there are libraries with extension &quot;.lib&quot;.
<br><br>Does anyone know how to solve this problem, i.e. to let CMake recognise all libraries with either extension of &quot;.a&quot; or &quot;.lib&quot;. I will greatly appreciate your help.<br><br>-- <br>Kind Regards,<br>

</div><div><span>
Haifeng Zhao</span></div></div>