Yes! That is exactly what I was missing. It compiles without any issues now.
Thank you Utkarsh. On 8/24/16, 10:30 AM, "Utkarsh Ayachit" <[email protected]> wrote: Chris, Try changing CMakeLists.txt, changing the `find_package(ParaView .. )` and `target_link_libraries(..)` as follows: find_package(ParaView 4.1 REQUIRED COMPONENTS vtkPVPythonCatalyst vtkIOXML) and target_link_libraries(CFullExampleAdaptor vtkPVPythonCatalyst vtkIOXML) Utkarsh On Wed, Aug 24, 2016 at 9:42 AM, Christopher Neal <[email protected]> wrote: > 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 > _______________________________________________ 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
