<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jose,<br>
<br>
U should use the line:<br>
<br>
<font color="#0000ff" size="2">
LIBS += -LC:\vtk5.0-32b\lib\vtk-5.</font><font size="2"><font
color="#000000">0<br>
<br>
instead of </font></font><font color="#0000ff" size="2">
LIBS += C:\vtk5.0-32b\lib\vtk-5.</font><font size="2"><font
color="#000000">0 and then link the libraries as -lvtkRendering (with
the -l in front). So u get<br>
<br>
</font></font><font color="#0000ff" size="2">
LIBS += -LC:\vtk5.0-32b\lib\vtk-5.</font><font size="2"><font
color="#000000">0 </font></font><font size="2"><font color="#000000">-lvtkRendering</font></font><br>
<font size="2"><font color="#000000"><br>
These are the standard gcc link instructions that u directly put into
Qt projects. U could alternatively put the libraries into the mingw lib
directory. Google for more info on how to link using gcc. Note u may
need to link more vtk libraries than just Rendering. Hope that helps.<br>
<br>
Cheers<br>
Shakes<br>
<br>
PS: This is my project linkage (edited)<br>
unix:INCLUDEPATH += /usr/include/vtk-5.0 /usr/local/include/vtk-5.0<br>
unix:LIBS += -L/usr/local/lib<br>
unix:LIBS += -lvtkRendering -lvtkFiltering -lvtkGraphics
-lvtkVolumeRendering -lvtkHybrid -lvtkImaging -lvtkIO -lvtkCommon<br>
<br>
win32-msvc2005:LIBS += vtkRendering.lib vtkFiltering.lib
vtkGraphics.lib vtkVolumeRendering.lib vtkHybrid.lib vtkImaging.lib
vtkIO.lib vtkCommon.lib<br>
win32-g++:LIBS += -lvtkRendering -lvtkFiltering -lvtkHybrid
-lvtkGraphics -lvtkVolumeRendering -lvtkImaging -lvtkIO -lvtkCommon<br>
</font></font><br>
<br>
Jose David Pfuturi Huisa wrote:
<blockquote cite="mid:BLU122-W437A3DC1804BF5D7EE7280AF730@phx.gbl"
type="cite">
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style> Hello all. I use Eclipse ,c++ and QT under WindowXP. I have
installed Eclipse, mingw32 with QT4 successfully but i can only
run c++ code, i want to add vtk code therefore i changed the file *.pro
as follows:<br>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">TEMPLATE = ap</font><font
size="2"><font color="#000000">p</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">TARGET = QTvtkConsol</font><font
size="2"><font color="#000000">e</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">QT += core </font><font
size="2"><font color="#000000">\</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">gui </font><font
size="2"><font color="#000000">\</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">openg</font><font
size="2"><font color="#000000">l</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">HEADERS +=</font><font
size="2"><font color="#000000"> </font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">SOURCES += Cone.c</font><font
size="2"><font color="#000000">c</font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">FORMS +=</font><font
size="2"><font color="#000000"> </font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">RESOURCES +=</font><font
size="2"><font color="#000000"> </font></font></p>
<font color="#0000ff" size="2"></font>
<p align="left"><font color="#0000ff" size="2">INCLUDEPATH +=
C:/vtk5.0-32b/include/vtk-5.</font><font size="2"><font color="#000000">0</font></font></p>
<font color="#0000ff" size="2">LIBS += C:\vtk5.0-32b\lib\vtk-5.</font><font
size="2"><font color="#000000">0</font></font><br>
<font size="2"><font color="#000000">but i got this result:</font></font><br>
<br>
<font size="2"><font size="2">
<p align="left">mingw32-make debug </p>
<p align="left">mingw32-make -f Makefile.Debug</p>
<p align="left">mingw32-make[1]: Entering directory
`F:/MisProyectosEclipse3.2/QTvtkConsole'</p>
<p align="left">g++ -mthreads -Wl,-enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,windows -o "debug\QTvtkConsole.exe" debug\Cone.o
-L"c:\Qt\4.1.4\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32
-lqtmaind C:\vtk5.0-32b\lib\vtk-5.0 -lQtOpenGLd4 -lQtGuid4 -lQtCored4</p>
<p align="left">C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe:<font
color="#3366ff"> C:\vtk5.0-32b\lib\vtk-5.0: No such file: Permission
denied</font></p>
<p align="left">collect2: ld returned 1 exit status</p>
<p align="left">mingw32-make[1]: *** [debug\QTvtkConsole.exe] Error 1</p>
<p align="left">mingw32-make[1]: Leaving directory
`F:/MisProyectosEclipse3.2/QTvtkConsole'</p>
<p align="left">mingw32-make: *** [debug] Error 2</p>
<p align="left"> </p>
<p align="left">But when i removed LIBS i had:</p>
<p align="left"> </p>
<font size="2">
<p align="left">mingw32-make debug </p>
<p align="left">mingw32-make -f Makefile.Debug</p>
<p align="left">mingw32-make[1]: Entering directory
`F:/MisProyectosEclipse3.2/QTvtkConsole'</p>
<p align="left">g++ -mthreads -Wl,-enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
-Wl,-subsystem,windows -o "debug\QTvtkConsole.exe" debug\Cone.o
-L"c:\Qt\4.1.4\lib" -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32
-lqtmaind -lQtOpenGLd4 -lQtGuid4 -lQtCored4</p>
<p align="left">debug\Cone.o(.text+0x107): In function `Z5qMainiPPc':</p>
<p align="left">F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:12:
undefined reference to `_imp___ZN11vtkRenderer3NewEv'</p>
<p align="left">debug\Cone.o(.text+0x111):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:14:
undefined reference to `_imp___ZN15vtkRenderWindow3NewEv'</p>
<p align="left">debug\Cone.o(.text+0x15c):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:19:
undefined reference to `_imp___ZN13vtkConeSource3NewEv'</p>
<p align="left">debug\Cone.o(.text+0x183):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:21:
undefined reference to `_imp___ZN17vtkPolyDataMapper3NewEv'</p>
<p align="left">debug\Cone.o(.text+0x193):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:22:
undefined reference to `_imp___ZN20vtkPolyDataAlgorithm9GetOutputEv'</p>
<p align="left">debug\Cone.o(.text+0x1a4):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:22:
undefined reference to
`_imp___ZN17vtkPolyDataMapper8SetInputEP11vtkPolyData'</p>
<p align="left">debug\Cone.o(.text+0x1ab):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:23:
undefined reference to `_imp___ZN8vtkActor3NewEv'</p>
<p align="left">debug\Cone.o(.text+0x1de):F:/MisProyectosEclipse3.2/QTvtkConsole/Cone.cc:27:
undefined reference to `_imp___ZN11vtkRenderer8AddActorEP7vtkProp'</p>
<p align="left">collect2: ld returned 1 exit status</p>
<p align="left">mingw32-make[1]: *** [debug\QTvtkConsole.exe] Error 1</p>
<p align="left">mingw32-make[1]: Leaving directory
`F:/MisProyectosEclipse3.2/QTvtkConsole'</p>
mingw32-make: *** [debug] Error 2<br>
</font>
<p align="left"> </p>
<p align="left"> </p>
<p align="left">Could someone tell me why i get the message <font
color="#3366ff">No such file: Permission denied and how i can run VTK
??</font></p>
<p align="left"> </p>
<p align="left"><font color="#000000">thanks in advance, a lot</font></p>
<p align="left"><font color="#000000">José</font></p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
<p align="left"> </p>
</font></font><br>
<hr>Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines
para estar a la última <a moz-do-not-send="true"
href="http://newsletters.msn.com/hm/maintenanceeses.asp?L=ES&C=ES&P=WCMaintenance&Brand=WL&RU=http%3a%2f%2fmail.live.com"
target="_new">MSN Newsletters</a>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>