Hi,
I am trying to use/execute a C++ file like a part of a vmtk chain
instructions. For this I was trying to copy the
c++ file and the header file in the VTK folder, because the idea was to
create a new module VTK and then use into a new module Vmtk. I also
changed the CmakeLists file. I copy the files in the Graphics folder of
VTK(inside of vmtk-buid). If I compile only the VTK-build folder it' s
no problem, but when I compile the vmtk I have the next error:
...
[ 98%] Built target vtkViewsPython
[ 98%] Built target vtkCharts
[100%] Built target vtkChartsPythonD
[100%] Built target vtkChartsPython
Linking CXX executable ../../bin/vtkpython
../../bin/libvtkGraphics.so.5.8.0: undefined reference to
`vtkInstantiatorvtkamodulecppcarotidNew()'
collect2: ld returned 1 exit status
make[5]: *** [bin/vtkpython] Error 1
make[4]: *** [Wrapping/Python/CMakeFiles/vtkpython.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [Stamp/VTK/VTK-build] Error 2
make[1]: *** [CMakeFiles/VTK.dir/all] Error 2
make: *** [all] Error 2
lau@lau-laptop:~/vmtk-build$
I thing this is not the best way to do this. I saw that in my new
vmtk module I can simply run the executable .bin file created by C++,
but I don't want this. Maybe I must do my own folder inside of the vmtk source
code folder and then compile, which it's better, or to copy this c++files in
Contrib of Vmtk. I appreciate all the advices and documentation to solve this
issue.
Best regards,Laurentiu
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users