<!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.&nbsp; I
    verified my paths in the qmake file, and environment, are correct.&nbsp;
    In vtk5.4 I only needed to link against -lvtkCommon -lvtkRendering
    -lvtkVolumeRendering -lQVTK.&nbsp; 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.&nbsp; So, I add the unfound
    library named in the to the list, but then the link error count goes
    up.&nbsp; It seems strange that I should be getting all these linker
    errors.&nbsp; Any idea what could be wrong?&nbsp; I'm using qmake from within
    the Qt Creator IDE.&nbsp; Below is my .pro file.&nbsp; In the build settings I
    have the variable
    LIBRARY_PATH=:/usr/lib/nvidia-current:/usr/lib/vtk-5.6.&nbsp; I also
    tried adding -L/usr/lib/vtk-5.6 to the LIBS variable, but that
    didn't help either.&nbsp; Could it be possible that I need to have all 36
    libraries listed to link against?&nbsp; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; += core gui<br>
      <br>
      TARGET = SummerIS2011<br>
      TEMPLATE = app<br>
      <br>
      <br>
      SOURCES += main.cc\<br>
      &nbsp;&nbsp;&nbsp; MainWindow.cc \<br>
      &nbsp;&nbsp;&nbsp; PixelNode.cc \<br>
      &nbsp;&nbsp;&nbsp; IntelligentScissors.cc \<br>
      &nbsp;&nbsp;&nbsp; CvUtils.cc \<br>
      &nbsp;&nbsp;&nbsp; ScreenPicker.cc \<br>
      &nbsp;&nbsp;&nbsp; StringUtils.cc \<br>
      &nbsp;&nbsp;&nbsp; Convert.cc<br>
      <br>
      HEADERS&nbsp; += MainWindow.h \<br>
      &nbsp;&nbsp;&nbsp; Defines.h \<br>
      &nbsp;&nbsp;&nbsp; CvUtils.h \<br>
      &nbsp;&nbsp;&nbsp; PixelNode.h \<br>
      &nbsp;&nbsp;&nbsp; IntelligentScissors.h \<br>
      &nbsp;&nbsp;&nbsp; Array2d.h \<br>
      &nbsp;&nbsp;&nbsp; Vec.h \<br>
      &nbsp;&nbsp;&nbsp; ScreenPicker.h \<br>
      &nbsp;&nbsp;&nbsp; StringUtils.h \<br>
      &nbsp;&nbsp;&nbsp; Convert.h<br>
      <br>
      FORMS&nbsp;&nbsp;&nbsp; += MainWindow.ui<br>
      <br>
      INCLUDEPATH += /usr/include/vtk-5.6<br>
      <br>
      LIBS += -lvtkCommon \<br>
      &nbsp;&nbsp;&nbsp; -lvtkRendering \<br>
      &nbsp;&nbsp;&nbsp; -lvtkVolumeRendering \<br>
      &nbsp;&nbsp;&nbsp; -lQVTK</tt><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
    <br>
    <br>
    Regards,<br>
    <br>
    /joseph<br>
  </body>
</html>