Dear all,<br><br>I'm starting using VTK and I wanna ask you if there is some interesting documentation to learn VTK. Software guide...<br><br>My objective is to create 3D objects (cells that have been segmented preciously). My input are png files so I need to read them. I'm programming in C++ and there are just IO examples in Python and Tcl. Does anyone have ideas?<br>
<br>Thanks,<br><br>Fran Serrano<br><br><div class="gmail_quote">On Mon, Dec 1, 2008 at 4:42 PM, c674 <span dir="ltr"><<a href="mailto:c674332@web.de">c674332@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks for your reply!<br>
Yes, so far I did not use cmake. I could only find tutorials using cmake to<br>
build vtk, none to build my own applications using it - would using it make<br>
a difference?<br>
<br>
I did not include all libraries for I did not need them when linking on my<br>
linux system. But even when I link to all libraries I could find in my vtk<br>
lib folder, using<br>
<g++ main.o postprocessor.o -L C:\msys\1.0\lib\vtk-5.2 -lvtkNetCDF<br>
-lvtkverdict -lvtkRendering -lvtkzlib -lvtkViews -lvtkVolumeRendering<br>
-lvtkWidgets -lvtkexoIIc -lvtkexpat -lvtkCommon -lvtkfreetype<br>
-lvtkDICOMParser -lvtkftgl -lvtkFiltering -lvtkjpeg -lvtkGenericFiltering<br>
-lvtklibxml2 -lvtkGraphics -lvtkmetaio -lvtkHybrid -lvtkpng -lvtkIO<br>
-lvtksqlite -lvtkImaging -lvtksys -lvtkInfovis -lvtktiff><br>
I still geta huge list of undefined references like this (random excerpt):<br>
C:\msys\1.0\lib\vtk-5.2/libvtkHybrid.a(vtkImplicitModeller.obj):vtkImplicitModel<br>
ler.cxx:(.text$_Z32vtkImplicitModellerAppendExecuteIhEvP19vtkImplicitModellerP10<br>
vtkDataSetP12vtkImageDatadPT_[void vtkImplicitModellerAppendExecute<unsigned<br>
cha<br>
r>(vtkImplicitModeller*, vtkDataSet*, vtkImageData*, double, unsigned<br>
char*)]+0x<br>
520): undefined reference to `vtkImageIterator<unsigned char>::NextSpan()'<br>
C:\msys\1.0\lib\vtk-5.2/libvtkIO.a(vtkDataWriter.obj):vtkDataWriter.cxx:(.text+0<br>
x4b5c): undefined reference to `vtkByteSwap::SwapWrite2BERange(void const*,<br>
int,<br>
std::ostream*)'<br>
C:\msys\1.0\lib\vtk-5.2/libvtkIO.a(vtkDataWriter.obj):vtkDataWriter.cxx:(.text+0<br>
x4bb4): undefined reference to `vtkByteSwap::SwapWrite4BERange(void const*,<br>
int,<br>
std::ostream*)'<br>
<br>
I'd be grateful for any more input!<br>
<br>
<br>
Bill Lorensen-2 wrote:<br>
><br>
> So I guess you are not using cmake to build your example.<br>
><br>
> That said, you are missing many of the vtk libraries. Look in<br>
> C:\msys\1.0\lib\vtk-5.2 and see the other libraries there. You<br>
> probably need to list all of them.<br>
><br>
> Bill<br>
><br>
> On Thu, Nov 27, 2008 at 4:46 PM, c674 <<a href="mailto:c674332@web.de">c674332@web.de</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I'm trying to compile an application that runs fine on Linux on Windows<br>
>> (XP) using MinGW. Building (also with MinGW) and installing VTK itself<br>
>> went well. But when linking my application I get an endless (at least it<br>
>> didn't end withing minutes) list of undefined references:<br>
>><br>
>> C:\Sph\pp>g++ main.o postprocessor.o -L C:\msys\1.0\lib\vtk-5.2<br>
>> -lvtkCommon -lvtkGraphics -lvtkRendering -lvtkHybrid<br>
>> postprocessor.o:postprocessor.cpp:(.text+0x2c0): undefined reference to<br>
>> `vtkData<br>
>> SetAttributes::GetScalars()'<br>
>> ...<br>
>> postprocessor.o:postprocessor.cpp:(.text$_ZN12vtkAlgorithm13GetOutputPortEv[vtkA<br>
>> lgorithm::GetOutputPort()]+0x15): undefined reference to<br>
>> `vtkAlgorithm::GetOutpu<br>
>> tPort(int)'<br>
>> C:\msys\1.0\lib\vtk-5.2/libvtkCommon.a(vtkObjectFactory.obj):vtkObjectFactory.cx<br>
>> x:(.text+0x44a): undefined reference to `vtksys::Directory::Directory()'<br>
>> ...<br>
>> (little longer example: <a href="http://codepad.org/TfX1fGaA" target="_blank">http://codepad.org/TfX1fGaA</a> not sure how long it<br>
>> will be available)<br>
>><br>
>> I would be thankful for any hint on what could go wrong and on how to fix<br>
>> it.<br>
><br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/linking-vtk-application%2C-mingw-tp20726011p20781173.html" target="_blank">http://www.nabble.com/linking-vtk-application%2C-mingw-tp20726011p20781173.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><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>
</blockquote></div><br><br clear="all"><br>-- <br>~~~~~~~~~~~~~~~~Fran~~~~~~~~~~~~~~~~<br>