<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font color="#2672ec">Hello,</font><BR><font color="#2672ec">in the .pro file, are&nbsp;the various 'libvtk***.a' added in the correct order ?</font><BR><font color="#2672ec">I mean, are you sure the order in which you added your </font>'<span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> ...</span>'&nbsp;<font color="#2672ec">to the .pro file is correct ?</font><BR><font color="#2672ec">I was not able to find out which is the correct order...<br></font><br><font color="#0000ff"><font color="#4f81bd"><strong>Andrea</strong></font></font><font color="#0000ff"><br></font><br>&nbsp;<BR><div><hr id="stopSpelling">Date: Sat, 10 Aug 2013 01:28:47 +1200<br>From: g.bogle@auckland.ac.nz<br>To: vtkusers@vtk.org<br>Subject: Re: [vtkusers] Problems when compiling simple program in Qt Creator<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">I believe your include path should be
      simply:<br>
      <br>
      <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/include/vtk_5.10/</pre>
      <br>
      Gib<br>
      <br>
      On 8/08/2013 5:14 p.m., Kenneth D'Aquila wrote:<br>
    </div>
    <blockquote cite="mid:CAN0kDKFD9PVw8xCO8CmOv9UqfMtA4GVzQU4sT_tv_Le1c0y0PQ@mail.gmail.com">
      
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>Hi All,<br>
                  <br>
                </div>
                <div>I am completely new to VTK and have not been able
                  to successfully compile one simple program.<br>
                  <br>
                  <span style="color: rgb(0, 0, 128);">#include</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"vtkConeSource.h"</span>
                  <pre style="text-indent: 0px;"></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 128, 0);">int</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">main</span><span style="color: rgb(0, 0, 0);">()</span></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);">{</span></pre>
                  <span style="color: rgb(192, 192, 192);"></span><span style="color: rgb(0, 128, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //Create</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">a</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">cone</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">source</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">object</span>
                  <pre style="text-indent: 0px;"></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(128, 0, 128);">vtkConeSource</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">*</span><span style="color: rgb(0, 0, 0);">cone</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 0);">=</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">vtkConeSource</span><span style="color: rgb(0, 0, 0);">::</span><span style="color: rgb(0, 0, 0);">New</span><span style="color: rgb(0, 0, 0);">();</span></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(0, 0, 0);">cone</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0); font-style: italic;">SetHeight</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">3.0</span><span style="color: rgb(0, 0, 0);">);</span></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(0, 0, 0);">cone</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0); font-style: italic;">SetRadius</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">1.0</span><span style="color: rgb(0, 0, 0);">);</span></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">    </span><span style="color: rgb(0, 0, 0);">cone</span><span style="color: rgb(0, 0, 0);">-&gt;</span><span style="color: rgb(0, 0, 0); font-style: italic;">SetResolution</span><span style="color: rgb(0, 0, 0);">(</span><span style="color: rgb(0, 0, 128);">10</span><span style="color: rgb(0, 0, 0);">);</span></pre>
                  <pre style="text-indent: 0px;"></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(192, 192, 192);">        </span><span style="color: rgb(128, 128, 0);">return</span><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 0, 128);">0</span><span style="color: rgb(0, 0, 0);">;</span></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(0, 0, 0);">}</span></pre>
                  <br>
                  <br>
                </div>
                <div>When I try to compile, there are 32 undefined
                  references. For example,<br>
                  <br>
                  <span style="color: rgb(170, 0, 0);">c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkGraphics.a(vtkConeSource.cxx.obj):vtkConeSource.cxx:(.text+0x1c):
                    undefined reference to
                    `vtkInformationVector::GetInformationObject(int)'</span><br>
                  <br>
                  <br>
                  I have read other posts similar to this problem, but I
                  can't figure out what is wrong with my .pro file for
                  QtCreator.<br>
                  <br>
                </div>
                <div>from my .pro file:<br>
                  <br>
                  <span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Common
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Graphics</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Filtering</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Rendering</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Hybrid</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Source-VTK5.10.1/Imaging</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">INCLUDEPATH</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/includes/vtk-5.10</pre>
                  <pre style="text-indent: 0px;"></pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkCommon.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtksys.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libQVTK.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkViews.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkWidgets.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkInfovis.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkRendering.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkGraphics.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkImaging.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkIO.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkFiltering.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkDICOMParser.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkpng.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtktiff.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkzlib.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkjpeg.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkalglib.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkexpat.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkverdict.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkmetaio.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkNetCDF.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtksqlite.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkexoIIc.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkftgl.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkfreetype.a</pre>
                  <pre style="text-indent: 0px;"><span style="color: rgb(128, 0, 128);">LIBS</span><span style="color: rgb(192, 192, 192);"> </span>+=<span style="color: rgb(192, 192, 192);"> </span>c:/VTK/Install-VTK5.10.1/lib/vtk_5.10/libvtkHybrid.a</pre>
                  <pre style="text-indent: 0px;"></pre>
                  I have the source code in:
                  <pre style="text-indent: 0px;">C:\VTK\Source-VTK5.10.1
</pre>
                </div>
                <div>I have the build code from after mingw32-make in: <br>
                  <pre style="text-indent: 0px;">C:\VTK\Build-VTK5.10.1
</pre>
                </div>
                <div>I have the installed code from after mingw32-make
                  install in: <br>
                  <pre style="text-indent: 0px;">C:\VTK\Install-VTK5.10.1
</pre>
                </div>
                <div><br>
                </div>
                I am on Windows and using the following software
                versions:<br>
                <br>
                VTK 5.10.1<br>
              </div>
              QtCreator 2.8.0<br>
            </div>
            Qt 4.8.5<br>
          </div>
          <div>minGW 4.7.2, 32 bit, <br>
          </div>
          <div><br>
          </div>
          VTK and Qt were compiled from source with minGW.<br>
          <br>
        </div>
        Any help would be appreciated. Thanks,<br>
        <br>
        Ken<br clear="all">
        <br>
      </div>
      <br>
      <fieldset class="ecxmimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Powered by <a class="ecxmoz-txt-link-abbreviated" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a class="ecxmoz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a class="ecxmoz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a class="ecxmoz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="ecxmoz-signature">-- 
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand

<a class="ecxmoz-txt-link-freetext" href="http://www.bioeng.auckland.ac.nz" target="_blank">http://www.bioeng.auckland.ac.nz</a>

<a class="ecxmoz-txt-link-abbreviated" href="mailto:g.bogle@auckland.ac.nz">g.bogle@auckland.ac.nz</a>
(64-9) 373-7599 Ext. 87030
</pre>
  

<br>_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers</div>                                               </div></body>
</html>