Skip to content

Compile as Blender addon

Patricio Gonzalez Vivo edited this page Mar 5, 2023 · 4 revisions

1. Install platform dependencies

You can find how to install your platform dependencies in one of these three pages:

Remember you only need to install the dependencies (step 1)

2. Clone this repository on your addons folder

Blender have an internal script/addons folder. Cloning this repository there is the best way to have a good dev experience. For me that folder is in ~/.config/blender/3.4/scripts/addons but depending on your platform this path should be different. Important Note: you will need to have the Python version development libraries that match your Blender version. For example, for Blender 3.4.1 you need Python 3.10

cd ~/.config/blender/3.4/scripts/addons
git clone --recursive https://github.com/patriciogonzalezvivo/glslViewer.git
cd glslViewer
git submodule init
git submodule update
mkdir build
cd build
cmake -DPYTHON_BINDINGS=TRUE ..
make

3. Enable the glslViewer addon

Go to "Preferences" > "Add-ons" and search for "glslViewer" then click the checkbox to enable.