Hi all,

 

I’m playing with the catalyst example “CxxFullExample”. I can get it to compile 
and run just fine as it comes packaged with ParaView. I added the following to 
the “FEAdaptor.cxx” file:

#include <vtkXMLUnstructuredGridWriter.h>

 

*in the CoProcess function I added,

 

vtkXMLUnstructuredGridWriter* writer ;

      writer->SetFileName("UnstructuredGrid.vtu");

      writer->SetInputData(VTKGrid);

      writer->Write();

 

 

When I try to compile like I did before I see the following:

 

cmake -DCMAKE_PREFIX_PATH=/home/neal/software/ParaView5.2/build 
/home/neal/software/Catalyst_examples/CxxFullExample_source/

.

.

~software/Catalyst_examples/CxxFullExample_build> make

 

Scanning dependencies of target CxxFullExampleAdaptor

[ 20%] Building CXX object CMakeFiles/CxxFullExampleAdaptor.dir/FEAdaptor.cxx.o

[ 40%] Linking CXX static library libCxxFullExampleAdaptor.a

[ 40%] Built target CxxFullExampleAdaptor

Scanning dependencies of target CxxFullExample

[ 60%] Building CXX object CMakeFiles/CxxFullExample.dir/FEDriver.cxx.o

[ 80%] Building CXX object CMakeFiles/CxxFullExample.dir/FEDataStructures.cxx.o

[100%] Linking CXX executable CxxFullExample

/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: 
libCxxFullExampleAdaptor.a(FEAdaptor.cxx.o): undefined reference to symbol 
'_ZN12vtkXMLWriter12SetInputDataEP13vtkDataObject'

/home/neal/software/ParaView5.2/build/lib/libvtkIOXML-pv5.1.so.1: error adding 
symbols: DSO missing from command line

collect2: error: ld returned 1 exit status

CMakeFiles/CxxFullExample.dir/build.make:166: recipe for target 
'CxxFullExample' failed

make[2]: *** [CxxFullExample] Error 1

CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/CxxFullExample.dir/all' 
failed

make[1]: *** [CMakeFiles/CxxFullExample.dir/all] Error 2

Makefile:83: recipe for target 'all' failed

make: *** [all] Error 2

 

 

Am I missing an additional header that needs to be included beyond the XML 
writer one?

Thank you,

Chris Neal

_______________________________________________
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to