<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi all,<br>
<br>
I upgraded to vtk5.6.1 (using cmake) and tried to rebuild an
existing Qt based project, and now I'm getting 717 link errors. I
verified my paths in the qmake file, and environment, are correct.
In vtk5.4 I only needed to link against -lvtkCommon -lvtkRendering
-lvtkVolumeRendering -lQVTK. With 5.6.1 I get a slew of warnings of
the form:
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(178, 7, 7);">/usr/bin/ld: warning: libvtksys.so.5.6, needed
by /usr/lib/vtk-5.6/libvtkCommon.so, not found (try using -rpath
or -rpath-link)</span></p>
followed by 717 undefined reference errors. So, I add the unfound
library named in the to the list, but then the link error count goes
up. It seems strange that I should be getting all these linker
errors. Any idea what could be wrong? I'm using qmake from within
the Qt Creator IDE. Below is my .pro file. In the build settings I
have the variable
LIBRARY_PATH=:/usr/lib/nvidia-current:/usr/lib/vtk-5.6. I also
tried adding -L/usr/lib/vtk-5.6 to the LIBS variable, but that
didn't help either. Could it be possible that I need to have all 36
libraries listed to link against? Note, in the warning above ld
knows the correct path to the vtk shared libs.<br>
<br>
.pro file:<br>
<tt><br>
#-------------------------------------------------<br>
#<br>
# Project created by QtCreator 2011-07-10T16:15:44<br>
#<br>
#-------------------------------------------------<br>
<br>
QT += core gui<br>
<br>
TARGET = SummerIS2011<br>
TEMPLATE = app<br>
<br>
<br>
SOURCES += main.cc\<br>
MainWindow.cc \<br>
PixelNode.cc \<br>
IntelligentScissors.cc \<br>
CvUtils.cc \<br>
ScreenPicker.cc \<br>
StringUtils.cc \<br>
Convert.cc<br>
<br>
HEADERS += MainWindow.h \<br>
Defines.h \<br>
CvUtils.h \<br>
PixelNode.h \<br>
IntelligentScissors.h \<br>
Array2d.h \<br>
Vec.h \<br>
ScreenPicker.h \<br>
StringUtils.h \<br>
Convert.h<br>
<br>
FORMS += MainWindow.ui<br>
<br>
INCLUDEPATH += /usr/include/vtk-5.6<br>
<br>
LIBS += -lvtkCommon \<br>
-lvtkRendering \<br>
-lvtkVolumeRendering \<br>
-lQVTK</tt><br>
<br>
<br>
<br>
Regards,<br>
<br>
/joseph<br>
</body>
</html>