473,398 Members | 2,525 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Problem of Compiling VTK5.0 with Qt Support in Win2000

Hi guys,

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". At the end, I
found a solution, that was to modify the
"CMake/Share/Modules/Windows.cmake" file and change the library prefix
and suffix value to the following,

SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")

After that, CMake was able to find all the Qt libraries and a Makefile
was generated successfully. Then I used "nmake" to start compiling.
However, an error (" libQtCore4.a.lib" is not found) was displayed
during linking QVTK.dll with other Qt libraries.

I realised the problem was also from the "Windows.cmake" file. Since
SET(CMAKE_LINK_LIBRARY_SUFFIX ".lib"), all Qt libraries are added
extension of ".lib" during linking. Then I changed the setting to
SET(CMAKE_LINK_LIBRARY_SUFFIX ""). After that, linking Qt libraries
become possible, however, linking the other libraries are not possible.
Because there are libraries with extension ".lib".

Does anyone know how to solve this problem, i.e. to let CMake recognise
all libraries with either extension of ".a" or ".lib". I will greatly
appreciate your help.

--
Kind Regards,
Haifeng Zhao

Jun 4 '06 #1
1 2084
fs********@gmail.com wrote:
Hi guys,

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.


This is pretty far from being topical here. See
http://www.parashift.com/c++-faq-lit...t.html#faq-5.9 for more
informations and newsgroup suggestions.
Jonathan

Jun 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RJS | last post by:
Hi all, I can't get a py2exe compiled app to run with numarray (numarray-0.5.win32- py2.2). Also wxPythonWIN32-2.3.3.1-Py22 and ActivePython-2.2.1-222. In the sample below, commenting out...
0
by: TheAd01 | last post by:
In an Access97 application I fetch data from an Oracle database via a linked table (via Odbc/sqlnet). The Oracle database now upgrades from 7.3 to 8.0. The Oracle odbc driver I use (2.0.3.1,...
0
by: arkam | last post by:
Hi, I am trying to use DirectoryServices in C# to create a Virtual Directory on a Win2003/IIS6 server. I am using AppCreate3 to bind the Application with the ApplicationPool. When I...
2
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
0
by: Issac | last post by:
Hi, I am writing a program which will be used in Win2000 and Win98 platform. The program include a Form (called myForm) which has a TextBox, Tooltip, Errorprovider and a Button. Tooltip...
9
by: MSDNAndi | last post by:
Hi, I have the following problem with VS 2005 (Professional) and C# 2.0 I will use assembly and namespace synonymously here. I have a class in namespace InheritClass inherit from a baseclass...
9
by: Andreas Schmitt | last post by:
I am workin on a 2 part project right now. The first part is a DLL, the second part a normal exe using that DLL. When I use the VS2005 standard setting for compiling with the Multithreaded-DLL...
4
by: Salad | last post by:
I have an A97 MDB that I converted to A2003 yesterday. My MainMenu calls ARInfoForm. I hit the Exit button in ARInfoForm and it closes and displays/activates the MainMenu just fine. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.