<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The only way to get my app to compile is to add all the libs to the
LIBS variable thus:<br>
<br>
LIBS += -lCosmo \<br>
-lMapReduceMPI \<br>
-lmpistubs \<br>
-lQVTK \<br>
-lVPIC \<br>
-lvtkalglib \<br>
-lvtkCharts \<br>
-lvtkCommon \<br>
-lvtkDICOMParser \<br>
-lvtkexoIIc \<br>
-lvtkexpat \<br>
-lvtkFiltering \<br>
-lvtkfreetype \<br>
-lvtkftgl \<br>
-lvtkGenericFiltering \<br>
-lvtkGeovis \<br>
-lvtkGraphics \<br>
-lvtkHybrid \<br>
-lvtkImaging \<br>
-lvtkInfovis \<br>
-lvtkIO \<br>
-lvtkjpeg \<br>
-lvtklibxml2 \<br>
-lvtkmetaio \<br>
-lvtkNetCDF \<br>
-lvtkNetCDF_cxx \<br>
-lvtkParallel \<br>
-lvtkpng \<br>
-lvtkproj4 \<br>
-lvtkQtChart \<br>
-lvtkRendering \<br>
-lvtksqlite \<br>
-lvtksys \<br>
-lvtktiff \<br>
-lvtkverdict \<br>
-lvtkViews \<br>
-lvtkVolumeRendering \<br>
-lvtkWidgets \<br>
-lvtkzlib<br>
<br>
This seems out of the ordinary since I only use a handful of vtk
classes in my app. <br>
<br>
On 08/04/2011 11:59 AM, Joseph D. Wieber Jr. wrote:
<blockquote cite="mid:4E3AC1CC.4080307@gmail.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<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<br>
by /usr/lib/vtk-5.6/libvtkCommon.so, not found (try using
-rpath<br>
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>
</blockquote>
</body>
</html>