RPI4 - Debian / LinuxCNC / EtherCAT / XFCE

More
22 May 2022 00:14 #243515 by rodw

Please Log in or Create an account to join the conversation.

More
22 May 2022 00:24 #243518 by ftree
adding vtk now.

Please Log in or Create an account to join the conversation.

More
23 May 2022 00:54 #243584 by ftree

Success! I hope...
After 5 hours, there was still about 2000 files remaining to be built with ninja. (of just under 10000)

apt install -y build-essential mesa-common-dev mesa-utils freeglut3-dev ninja-build git cmake
git clone --recursive https://gitlab.kitware.com/vtk/vtk.git
mkdir build
cd build
cmake -GNinja -DVTK_WHEEL_BUILD=ON -DVTK_WRAP_PYTHON=ON ../vtk/
ninja
python setup.py bdist_wheel


Then checking with python

[code]cnc@bcm2711:~/devel/build$ python3
>>> import vtk
>>> print(vtk.vtkVersion.GetVTKSourceVersion())
vtk version 9.1.0
>>> exit()


Now I just have to find where the wheel file is living
 
[/code]

 


Hi Rod.  Any reason to compile vtk9.1?  It is in sid already?
packages.debian.org/source/bookworm/vtk9
Did it need those particular build ops to work with qtpyvcp?

Please Log in or Create an account to join the conversation.

More
23 May 2022 01:13 - 23 May 2022 01:31 #243585 by rodw
Thats awesome if you found them.
I had looked and I must have been looking for the wrong thing.
Let us know what debs you install and I'll try tonight

EDIT: yes QTPYVCP uses VTK..
Last edit: 23 May 2022 01:31 by rodw.

Please Log in or Create an account to join the conversation.

More
23 May 2022 01:36 #243587 by ftree
apt install -y vtk9 python3-vtk9 libvtk9-dev libvtk9.1-qt

Some of those are covered in each other but as deps.

Please Log in or Create an account to join the conversation.

More
23 May 2022 02:20 #243588 by rodw
Great.  Here is a minimal VTK test file the QTPYVCP guys shared with me,
 

File Attachment:

File Name: minimal_vtk.py
File Size:1 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
23 May 2022 02:42 #243589 by ftree
bookworm linuxcnc-uspace-dev installs libvtk9.1-dev as a dep :-)
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
23 May 2022 03:02 #243591 by ftree
FYI, I have requested that 'linux arm64' be added to the nightly builds

gitlab.kitware.com/vtk/vtk/-/pipelines/282170
The following user(s) said Thank You: rodw

Please Log in or Create an account to join the conversation.

More
23 May 2022 03:13 #243592 by rodw
Good luck with that. It would be  a nice addition.

Please Log in or Create an account to join the conversation.

More
23 May 2022 03:20 - 23 May 2022 03:22 #243593 by ftree
by adding /artifacts/browse/build/dist/ to the end of the build links here gitlab.kitware.com/vtk/vtk/-/pipelines/282170 you can download the whl

for example linux x86-x64

gitlab.kitware.com/vtk/vtk/-/jobs/691537...s/browse/build/dist/
Last edit: 23 May 2022 03:22 by ftree.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum