[vtkusers] Compiling VTK Python from source
ashwin .D
winash12 at gmail.com
Thu Mar 8 09:32:27 EST 2018
The log file I sent you just now is the result of running make -j8.
On Thu, Mar 8, 2018 at 7:58 PM, David E DeMarle <dave.demarle at kitware.com>
wrote:
> Did you run make?
> cmake just builds makefiles/visual studio solution files or whatever. You
> still have to compile those to make the library/binraries/bindings and
> whatnot.
>
> David E DeMarle
> Kitware, Inc.
> Principal Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
> On Thu, Mar 8, 2018 at 6:45 AM, ashwin .D <winash12 at gmail.com> wrote:
>
>> Hello,
>> I have VTK 7.0.0 tar file and I am trying to compile from
>> source the python wrapper for VTK. I have ccmake installed on my Ubuntu
>> 16.04 box but no matter what I try(the installation itself proceeds with no
>> errors) but I cannot find out where the python wrapper for SDK is present.
>> When I type
>>
>> python3.5 import vtk
>>
>> I get ImportError : no module named 'vtk`
>>
>> Here is how I built VTK for python using ccmake
>>
>>
>> ccmake -DCMAKE_INSTALL_PREFIX=/opt/local/vtk7.0-py3.5.0
>> -DBUILD_SHARED_LIBS:BOOL=ON-DVTK_WRAP_PYTHON:BOOL=ON
>> -DVTK_PYTHON_VERSION:STRING=3.5 -DPYTHON_EXECUTABLE:PATH=/usr/bin/python3.5
>> -DPYTHON_INCLUDE_DIR=/usr/include/python3.5
>> -DPYTHON_LIBRARY:PATH=/usr/local/lib/python3.5/ ..VTK-7.0.0
>>
>> Then a ccmake window pops up and I type ctcl - c twice and ctrl-g once.
>> But this does not do the job.
>>
>> Any suggestions will be appreciated. I intend to use VTK with Mayavi
>> eventually.
>>
>> Best regards,
>> Ashwin.
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> https://vtk.org/mailman/listinfo/vtkusers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180308/aa4bb348/attachment.html>
More information about the vtkusers
mailing list