Discussion:
[vtkusers] VTKBlender installation, VTK compile configurations
Alexander2
2018-07-21 06:27:21 UTC
Permalink
Hi everyone,

I am fairly new to VTK and I would like to ask some clarification on how to
compile VTK to make it work with Blender. I am using Blender 2.79b which is
using python 3.5.3. I am running everything on MacOS
I found this very promising work by Chris Want, however it unfortunate that
the GitHub page is somewhat vague on what settings are used while compiling
and installing VTK.
VTKBlender Github <https://github.com/cwant/VTKBlender>
This is where I expect things to go wrong for me because my VTK_build folder
does not contain a "/lib/python3.5/site-packages" folder. Even after I
enable the "VTK_WRAP_PYTHON" configuration.
I know that Blender has his own python interpreter and I have also tried to
link the:
PYTHON_EXECUTABLE to
/Applications/Blender/blender.app/Contents/Resources/2.79/python/lib/python3.5
PYTHON_INCLUDE_DIR to
/Applications/Blender/blender.app/Contents/Resources/2.79/python/include/python3.5m
PYTHON_LIBRARY to
/Applications/Blender/blender.app/Contents/Resources/lib/libiomp5.dylib

However without success, I was not able to configure it like that.
I get errors like:
CMake Error at CMake/FindPythonLibs.cmake:183 (FILE):
FILE STRINGS file

"/Applications/Blender/blender.app/Contents/Resources/2.79/python/include/python3.5m/patchlevel.h"
cannot be read.

I feel a little bit lost on what to do as there are so many parameters.

Awaiting your suggestions and explanation,
Alex



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers
Chris Want
2018-07-21 20:58:14 UTC
Permalink
Hi Alex,

My apologies, I don't use OSX, so my ability to help will be limited.

I suspect that you will need to get python 3.5.3 for OSX from the
python project, and use the headers and libraries from there:
https://www.python.org/downloads/release/python-353/

The python library that ships with Blender does not have the full
headers/libraries (e.g., on Linux, the only header that comes with
blender is pyconfig.h).

Regards,
Chris
Post by Alexander2
Hi everyone,
I am fairly new to VTK and I would like to ask some clarification on how to
compile VTK to make it work with Blender. I am using Blender 2.79b which is
using python 3.5.3. I am running everything on MacOS
I found this very promising work by Chris Want, however it unfortunate that
the GitHub page is somewhat vague on what settings are used while compiling
and installing VTK.
VTKBlender Github <https://github.com/cwant/VTKBlender>
This is where I expect things to go wrong for me because my VTK_build folder
does not contain a "/lib/python3.5/site-packages" folder. Even after I
enable the "VTK_WRAP_PYTHON" configuration.
I know that Blender has his own python interpreter and I have also tried to
PYTHON_EXECUTABLE to
/Applications/Blender/blender.app/Contents/Resources/2.79/python/lib/python3.5
PYTHON_INCLUDE_DIR to
/Applications/Blender/blender.app/Contents/Resources/2.79/python/include/python3.5m
PYTHON_LIBRARY to
/Applications/Blender/blender.app/Contents/Resources/lib/libiomp5.dylib
However without success, I was not able to configure it like that.
FILE STRINGS file
"/Applications/Blender/blender.app/Contents/Resources/2.79/python/include/python3.5m/patchlevel.h"
cannot be read.
I feel a little bit lost on what to do as there are so many parameters.
Awaiting your suggestions and explanation,
Alex
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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
https://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers
Alexander2
2018-07-22 00:30:01 UTC
Permalink
Hi Chris,

Thanks for the quick reply.
I also have an Ubuntu Box available if that makes life easier.
It will be a good idea to get it working on linux first after which I will
take a look at OSX and see what I can do there. I am happy to document my
findings for anyone interested in the future!

On linux do you also have to download the appropriate python version from
the python project website to get the headers and libraries? Or is this a
non-issue on linux?

When running ccmake, are you able to tell me what your parameters in
configuration on linux are?
I am quite new to this, however I am suite sure we can figure this out.

With Kindest regards,
Alex



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers
Chris Want
2018-07-22 15:51:24 UTC
Permalink
Hi Alex,

I haven't run VTKBlender on Ubuntu for a while as there are some
issues with the current release of Ubuntu 18.04: the available Python
versions are Python 3.6 or 3.7, but current Blender uses Python 3.5.
If you aren't running the latest Ubuntu, you may not have this issue,
but assuming you are also on 18.04, there are a couple of ways around
this:

1) There is a (non-official) Ubuntu repository for older python
versions where you could get Python 3.5:
https://askubuntu.com/questions/682869/how-do-i-install-a-different-python-version-using-apt-get
2) There are downloads for the Blender beta version 2.80 which uses
Python 3.6: https://builder.blender.org/download (although I haven't
tried this, with this option, you might not need to build VTK as the
Ubuntu packages should work with Python 3.6)
3) Build your own Blender or Python

My most recent VTK build on Ubuntu, I have the following
CMakeCache.txt:
https://drive.google.com/open?id=12t3rqpKGQZGzBfHnRFoLiwkNF6eP7pe8
(Although you won't be able to use this file directly, it might help you debug).

Regards,
Chris
Post by Alexander2
Hi Chris,
Thanks for the quick reply.
I also have an Ubuntu Box available if that makes life easier.
It will be a good idea to get it working on linux first after which I will
take a look at OSX and see what I can do there. I am happy to document my
findings for anyone interested in the future!
On linux do you also have to download the appropriate python version from
the python project website to get the headers and libraries? Or is this a
non-issue on linux?
When running ccmake, are you able to tell me what your parameters in
configuration on linux are?
I am quite new to this, however I am suite sure we can figure this out.
With Kindest regards,
Alex
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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
https://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
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://public.kitware.com/mailman/listinfo/vtkusers

Loading...