Hi David,<br>thanks for your comments... <br>the code that I m having trouble with, worked three years ago without any problem (I didn't develop this code I am just using it ...) now that I changed the machine, I am getting this error. So my question is where this error comes from? version of cmake, python, vtk?<br>
I would appreciate any comments about this! <br><br>***I don't have any experinece with VTK and a small experience with python (more experinced in c/c++). Thanks for the link about the wraping ...I am going to read it! <br>
<br>Thanks<br>Aj<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 11:54 PM, David E DeMarle <span dir="ltr"><<a href="mailto:dave.demarle@kitware.com">dave.demarle@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The wrapping is not a cmake command per se, but rather a top level<br>
CMake macro that is the entry point into the wrapping infrastructure<br>
that VTK's build system makes for itself. The short story is that the<br>
infrastructure creates a wrapper executable that the macro uses to<br>
parse specified c++ files and make python callable versions of the<br>
classes in those files. The result is a set of shared libraries and<br>
python modules that can be imported into a python interpreter.<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
21 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: <a href="tel:518-881-4909" value="+15188814909">518-881-4909</a><br>
<div><div class="h5"><br>
<br>
<br>
On Wed, Feb 22, 2012 at 5:29 PM, elhadj meljane<br>
<<a href="mailto:elhadj.meljane@gmail.com">elhadj.meljane@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I am trying to compile a code with cmake and I am getting the following<br>
> error<br>
><br>
> Unknown CMake command "VTK_WRAP_PYTHON"<br>
><br>
> here is the line that the cmake does not like in my CMakeLists file<br>
><br>
> VTK_WRAP_PYTHON(cpptrackingPython PYTHON_SOURCES ${wrap_api})<br>
><br>
> I do have vtk-5.2 and python Python 2.6.5 installed on my machine. I tried<br>
> VTK_WRAP_PYTHON2 and VTK_WRAP_PYTHON3 and I got the same error.<br>
><br>
> Thanks for your help!<br>
> Aj<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><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>
><br>
</blockquote></div><br>