Skip to content

Commit

Permalink
Updated to vtk7.1.1 with openGL
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Alford committed Sep 5, 2020
1 parent 1db6ea1 commit e55ba55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Binary file not shown.
11 changes: 6 additions & 5 deletions docs/4. VTK for QtPyVCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,26 @@ nav: true

# VTK for QtPyVCP on Raspberry Pi

QtPyVCP utilises VTK to provide GCode back plot functionality. Unfortunately there is no pip package for VTK and the normal installation of QtPyVCP fails. Below is the procedure using the development installation instructions with some adjustmentsto to use a specifically compiled version of VTK 8.2.0 with Qt5 and Python 2 wrapping.
QtPyVCP utilises VTK to provide GCode back plot functionality. Unfortunately there is no pip package for VTK and the normal installation of QtPyVCP fails. Below is the procedure using the development installation instructions with some adjustmentsto to use a specifically compiled version of VTK 7.1.1 with Qt5 and Python 2 wrapping.


### STEP 1: Download and install

Download and install the VTK deb pacakge.

```
wget https://github.com/scottalford75/LinuxCNC-on-RPi/blob/master/Pi%20OS/vtk_8.2.0-1_armhf.deb
sudo dpkg -i vtk_8.2.0-1_armhf.deb
wget https://github.com/scottalford75/LinuxCNC-on-RPi/blob/master/Pi%20OS/vtk_7.1.1-qt5py2-1_armhf.deb
sudo dpkg -i vtk_7.1.1-qt5py2-1_armhf.deb
```


### STEP 2: Update Python Path

Create a ```.xsessionrc``` file in your home directory and add the following line. This will add the path to your PYTHONPATH each time xwindows starts.
Modify your ```.bashrc``` file in your home directory and add the following line. This will add the path to your PYTHONPATH each time xwindows starts.

```
export PYTHONPATH=$PYTHONPATH:/usr/lib/arm-linux-gnueabihf/python2.7/site-packages
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/lib/python2.7/site-packages/vtk:$PYTHONPATH
export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib/python2.7/site-packages/vtk:$LD_LIBRARY_PATH
```


Expand Down

0 comments on commit e55ba55

Please sign in to comment.