arch+matlab: setup opengl rendering
hardware accelerated rendering needs enabling.
- check out the arch-wiki page.
- i needed to install the intel graphics driver. explained here.
- to set the opengl paths (as explained in the wiki), i needed to modify the .desktop file
- for me, the path was:
/usr/share/applications/matlab.desktop
- changed execution line
- before:
Exec=matlab -desktop -nosplash
- after:
Exec=/my/personal/binary/path/matlab_startWithEnvVars
- before:
- created seperate start script
- path: (same as given to Exec command above)
- content:
[code language="bash" collapse="true" title="/my/personal/binary/path/matlab_startWithEnvVars"]
#!/bin/shexport LD_PRELOAD=/usr/lib/libstdc++.so
export LD_LIBRARY_PATH=/usr/lib/xorg/modules/dri/exec /usr/local/bin/matlab -desktop -nosplash "$@"
[/code] - make file executable
- for me, the path was: