VTK Backplot on RPi 4

More
22 Oct 2021 01:38 #223864 by Aaroncnc
Replied by Aaroncnc on topic VTK Backplot on RPi 4
Scotta,

Did you get a change to get VTK 8.2 working?

Also i am trying to build the VTK myself on a 64bit os.
Just having issues getting ccmake to find openGL.

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

More
13 May 2022 14:19 #242880 by elovalvo
Replied by elovalvo on topic VTK Backplot on RPi 4
As reported here
github.com/pyvista/pyvista-support/issue...suecomment-848598723
I compiled (in about 9 hours ...) the latest version of the vtk
on a raspberry pi 4 with preempt_rt
Linux raspberrypi 5.15.32-rt39-v8 + # 1 SMP PREEMPT_RT Sat Apr 2 07:28:17 BST 2022 aarch64 GNU / Linux

I then installed the wheel file, downloadable at this link
drive.google.com/file/d/1H4EwSQ5fpor1YZi...fwy/view?usp=sharing

with the command
python3 -m pip install ./vtk-9.1.20220512.dev0-cp39-cp39-linux_aarch64.whl

However, the VTK works, as shown in the figure, only as environmental variable
LIBGL_ALWAYS_SOFTWARE = ​​true
 
The screen also shows the results of the commands 'neofetch' and 'glxinfo -B'

Without the environmental variable, the error message is this:

vtkShaderProgram.cxx: 438 ERR | vtkShaderProgram (0x15e63020): 0: 1 (10): error: GLSL 1.50 is not supported. Supported versions are: 1.10, 1.20, 1.00 ES, and 3.00 ES


Using, as some suggest, the environmental variable
MESA_GL_VERSION_OVERRIDE = 3.2 MESA_GLSL_VERSION_OVERRIDE = 150
the example shown works for a few seconds but then goes into error


in any case it is then possible to install QtVCP, QTpyVCP and Probe_basic
 


Anyone know how to use the V3D 4.2 driver with VTK?
Attachments:
The following user(s) said Thank You: TurBoss

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

More
13 May 2022 16:55 #242901 by TurBoss
Replied by TurBoss on topic VTK Backplot on RPi 4
took this notes while building VTK with QT on amd64 and python3.10

maybe they apply to the PI

I'll try to get one Pi 4 running

build vtk python3.10 with QT amd64


$ sudo apt install build-essential cmake mesa-common-dev mesa-utils freeglut3-dev ninja-build git-lfs qtquickcontrols2-5-dev

$ git clone --recursive https://gitlab.kitware.com/vtk/vtk.git

$ cd vtk

$ cmake -B build -S . -GNinja -DVTK_WRAP_PYTHON=ON -DVTK_PYTHON_VERSION=3 -DVTK_ENABLE_WRAPPING=ON -DVTK_GROUP_ENABLE_Qt=YES -DVTK_QT_VERSION=5

$ cmake --build build --parallel 2

# make --install build



build linuxcnc against python3.10 or rebuild if new boost lib in system


install for vtk runtime

libospray libopenvr_api liblas libcgns libadios2_cxx11 libhpdf libboost_python310

to run or add this line to .bashrc

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python3.10/site-packages/
The following user(s) said Thank You: elovalvo

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

Moderators: KCJLcvette
Time to create page: 0.163 seconds
Powered by Kunena Forum