[vtkusers] compile tests or examples

Jacinto Perez jacintoperez at mail.com
Mon Jun 11 09:57:41 EDT 2012


Hello, I tried copying CMakeLists for other examples.. but when running make, gives me this error..

Scanning dependencies of target labeledMesh
 /[100%] Building CXX object CMakeFiles/labeledMesh.dir// /labeledMesh.cxx.o/

 //home/Applications// /TESTS/labeledMesh/labeledMesh./ /cxx:15:3: error: expected unqualified-id before numeric constant/

 //home/Applications// /TESTS/labeledMesh/labeledMesh./ /cxx: In function ‘int main(int, char**)’:/

 //home/Applications// /TESTS/labeledMesh/labeledMesh./ /cxx:117:15: error: ‘class vtkPolyDataMapper2D’ has no member named ‘SetInputData’/

 /make[2]: *** [CMakeFiles/labeledMesh.dir// /labeledMesh.cxx.o] Error 1/

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

 /make: *** [all] Error 2/
 /I tried with another example.. VtkLinearSelector3d and gives me a similar error.. maybe they are old?/

 /[100%] Building CXX object CMakeFiles// /TestLinearSelector3D.dir// /TestLinearSelector3D.cxx.o/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx: In function ‘int CheckExtractedUGrid(/ /vtkExtractSelection*, const char*, int, bool)’:/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:109:/ /15: error: ‘class vtkUnstructuredGridWriter’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx: In function ‘int TestLinearSelector3D(int, char**)’:/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:144:/ /8: error: ‘class vtkLinearSelector’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:152:/ /8: error: ‘class vtkExtractSelection’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:164:/ /8: error: ‘class vtkLinearSelector’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:172:/ /8: error: ‘class vtkExtractSelection’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:190:/ /8: error: ‘class vtkLinearSelector’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:197:/ /8: error: ‘class vtkExtractSelection’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:215:/ /8: error: ‘class vtkLinearSelector’ has no member named ‘SetInputData’/

 //home/Applications// /TESTS/TestLinearSelector3D// /TestLinearSelector3D.cxx:222:/ /8: error: ‘class vtkExtractSelection’ has no member named ‘SetInputData’/

 /make[2]: *** [CMakeFiles// /TestLinearSelector3D.dir// /TestLinearSelector3D.cxx.o] Error 1/

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


cmake_minimum_required(VERSION 2.8)PROJECT( /TestLinearSelector3D/)find_package(VTK REQUIRED)include(${VTK_USE_FILE})if(APPLE)add_executable( /TestLinearSelector3D/ MACOSX_BUNDLE  /TestLinearSelector3D/.cxx)else()add_executable( /TestLinearSelector3D/ /TestLinearSelector3D/.cxx)endif()if(VTK_LIBRARIES)target_link_libraries( /TestLinearSelector3D/${VTK_LIBRARIES})else()target_link_libraries( /TestLinearSelector3D/ vtkHybrid )endif()







----- Original Message -----
From: Bill Lorensen
Sent: 06/11/12 02:45 PM
To: Jacinto Perez
Subject: Re: [vtkusers] compile tests or examples

 When you configure your vtk with cmake, turn on BUILD_TESTING and BUILD_EXAMPLES. On Mon, Jun 11, 2012 at 8:31 AM, Jacinto Perez <jacintoperez at mail.com> wrote: > Hello! > > One question. In the examples that are on the wiki pages, each one comes > with its cmakelists.txt .. > What about the tests and examples that are in the class documentation? > > For example this one > : http://vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/General/Testing/Cxx/BoxClipPolyData.cxx > > Is there a special way to compile them , or to use them? > > Than you for the help! > _______________________________________________ > 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 VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120611/0a33f407/attachment.htm>


More information about the vtkusers mailing list