vtest server unable to find libvirglrenderer if not installed or without LD_LIBRARY_PATH
This only affects kicking vtest server installed at a custom location. Directly starting the server in the build output dir is not affected.
e.g. an example of the issue is:
- the host machine doesn't have virglrenderer installed in path
- add prefix to /tmp/xxx for install
- start vtest server from prefixed install location
- unable to find libvirglrenderer
A workaround can be LD_LIBRARY_PATH
pointing to the install location. Forgetting to do so could end up linking against the wrong library already installed in system paths.
Options:
- do static linking for vtest server
- add rpath to default out path and out install path
- suggest installing to system lib paths
- suggest manually setting
LD_LIBRARY_PATH
Edited by Yiwei Zhang