插件默认是使用ABI=0进行编译的,如CMakeList.txt中的:
下载的server版本:https://www.dolphindb.cn/downloads/DolphinDB_Linux64_V2.00.9.3_ABI.zip
下载的C++ api: git clone https://github.com/dolphindb/api-cplusplus.git --depth=1 --branch release200.9 --single-branch DolphinDBAPI
下载的插件仓库地址: git clone https://github.com/dolphindb/DolphinDBPlugin.git --depth=1 --branch release200.9 --single-branch DolphinDBPlugin
将插件拷贝过去后,运行服务器。
执行dos代码
pluginPath = './plugins/httpClient/PluginHttpClient.txt';
try{loadPlugin(pluginPath)}catch(ex){print ex};
报错内容 :
"SYSTEM_Runtime" : "Couldn't load the dynamic library [./plugins/httpClient/bin/linux/libPluginHttpClient.so]: /mnt/e/work/proj.cpp/dolphindb_work_dir/server/plugins/httpClient/bin/linux/libPluginHttpClient.so: undefined symbol: _ZN4Util14createResourceExRKSsRK12SmartPointerI11FunctionDefEP7Session"
Syntax Error: [line #13] Can't find module [httpClient]
后续尝试:
自己按照教程步骤 安装好各种库后 编译出新的 httpClient的so和txt文件放过去,报以下错误
"SYSTEM_Runtime" : "Couldn't load the dynamic library [./plugins/httpClient/libPluginHttpClient.so]: ./plugins/httpClient/libPluginHttpClient.so: undefined symbol: _ZN4Util11createTableERKSt6vectorISsSaISsEERKS0_I12SmartPointerI8ConstantESaIS7_EE"