Hi,<br><br>That is a really good point, but I don't know the order either. I will try to look in one of the CMake configuraiton files to see if the list is given there.<br><br>Thanks,<br><br>Ken<br><br><div class="gmail_quote">
On Mon, Aug 12, 2013 at 5:12 AM, Andrea Caloni <span dir="ltr"><<a href="mailto:andreacaloni@hotmail.com" target="_blank">andreacaloni@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><font color="#2672ec">Hello,</font><br><font color="#2672ec">in the .pro file, are 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>' <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"><b>Andrea</b></font></font><font color="#0000ff"><br></font><br> <br><div><hr>Date: Sat, 10 Aug 2013 01:28:47 +1200<br>
From: <a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a><br>To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>Subject: Re: [vtkusers] Problems when compiling simple program in Qt Creator<div>
<div class="h5"><br><br>
<div>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>
<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>main</span><span style>()</span></pre>
<pre style="text-indent:0px"><span style>{</span></pre>
<span style="color:rgb(192,192,192)"></span><span style="color:rgb(0,128,0)"> //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>*</span><span style>cone</span><span style="color:rgb(192,192,192)"> </span><span style>=</span><span style="color:rgb(192,192,192)"> </span><span style="color:rgb(128,0,128)">vtkConeSource</span><span style>::</span><span style>New</span><span style>();</span></pre>
<pre style="text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style>cone</span><span style>-></span><span style="font-style:italic">SetHeight</span><span style>(</span><span style="color:rgb(0,0,128)">3.0</span><span style>);</span></pre>
<pre style="text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style>cone</span><span style>-></span><span style="font-style:italic">SetRadius</span><span style>(</span><span style="color:rgb(0,0,128)">1.0</span><span style>);</span></pre>
<pre style="text-indent:0px"><span style="color:rgb(192,192,192)"> </span><span style>cone</span><span style>-></span><span style="font-style:italic">SetResolution</span><span style>(</span><span style="color:rgb(0,0,128)">10</span><span style>);</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>;</span></pre>
<pre style="text-indent:0px"><span style>}</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></fieldset>
<br>
<pre>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a 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 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
<br>
<pre>--
Dr. Gib Bogle
Senior Research Fellow
Auckland Bioengineering Institute
University of Auckland
New Zealand
<a href="http://www.bioeng.auckland.ac.nz" target="_blank">http://www.bioeng.auckland.ac.nz</a>
<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>
(64-9) 373-7599 Ext. 87030
</pre>
<br>_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a 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 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a></div></div></div>                                            </div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Ken D'Aquila<br>Ph.D. Candidate, Dept. of Materials Science and Engineering<br>Petford-Long Group, Northwestern University<br>