哪里把"插件"放在linux中

Ron*_*del 2 c c++ linux directory plugins

我目前正在开发/破解图像分析/转换工具.其中的过滤器将在运行时使用dlopen&co加载.

我的问题是*nix工具在安装时通常放置插件(*.so文件)在哪里?

bin/program
lib/program/plugins/thisandthat.so
Run Code Online (Sandbox Code Playgroud)

也许?

其次,我如何使用它以及在开发过程中将其放在何处而不安装它.(这可能是棘手的部分)

我想尽可能避免使用shell脚本.

谢谢Ronny

tli*_*iff 5

通常/ usr/lib/programmname应该是一个好地方

在开发过程中,我将创建一个命令行参数来指定插件搜索路径,并将插件保留在build-dir中.