<!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>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lMapReduceMPI \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lmpistubs \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lQVTK \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lVPIC \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkalglib \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkCharts \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkCommon \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkDICOMParser \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkexoIIc \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkexpat \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkFiltering \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkfreetype \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkftgl \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkGenericFiltering \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkGeovis \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkGraphics \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkHybrid \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkImaging \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkInfovis \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkIO \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkjpeg \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtklibxml2 \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkmetaio \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkNetCDF \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkNetCDF_cxx \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkParallel \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkpng \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkproj4 \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkQtChart \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkRendering \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtksqlite \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtksys \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtktiff \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkverdict \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkViews \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkVolumeRendering \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkWidgets \<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -lvtkzlib<br>
    <br>
    This seems out of the ordinary since I only use a handful of vtk
    classes in my app.&nbsp; <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.&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<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.&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>
    </blockquote>
  </body>
</html>