目前共有6篇帖子。 字体大小:较小 - 100% (默认)▼  内容转换:不转换▼
 
点击 回复
27 5
iotdb里面的libthrift.a是仓库自带的(pre-built Thrift library)
武林盟主 二十一级
1楼 发表于:2026-6-22 11:39
#### Visual Studio 2017 or older
If you are using Visual Studio 2017 or older, the pre-built Thrift library is incompatible. You
will have to compile the thrift library manually:

1. Install the dependencies of Thrift:
* flex http://gnuwin32.sourceforge.net/packages/flex.htm
* bison http://gnuwin32.sourceforge.net/packages/bison.htm
* openssl https://slproweb.com/products/Win32OpenSSL.html

2. Clone the repository: https://github.com/apache/iotdb-bin-resources.

3. Enter the "iotdb-tools-thrift" folder in the cloned repository; use the following command to
   compile the thrift library:

`mvn install`

武林盟主 二十一级
2楼 发表于:2026-6-22 11:40
iotdb-client/client-cpp/README.md的58-79行有编译thrift库的说明。
 
武林盟主 二十一级
3楼 发表于:2026-6-22 11:41
oct1158@oct1158-ubuntu:~/Documents/Code/C/iotdb$ ls -l $(find . -name libthrift.a)
-rw-r--r-- 1 oct1158 oct1158 32115874 Nov  9  2023 ./iotdb-cpp/iotdb-client/client-cpp/target/client-cpp-2.0.7-SNAPSHOT-cpp-linux-x86_64/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 32115874 Jun 11  2023 ./iotdb-cpp/iotdb-client/client-cpp/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 32115874 Jun 11  2023 ./iotdb-cpp/iotdb-protocol/thrift-commons/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 24767486 Jun 11  2023 ./iotdb/iotdb-protocol/thrift-ainode/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 24767486 Jun 11  2023 ./iotdb/iotdb-protocol/thrift-commons/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 24767486 Jun 11  2023 ./iotdb/iotdb-protocol/thrift-confignode/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 24767486 Jun 11  2023 ./iotdb/iotdb-protocol/thrift-consensus/target/thrift/lib/libthrift.a
-rw-r--r-- 1 oct1158 oct1158 24767486 Jun 11  2023 ./iotdb/iotdb-protocol/thrift-datanode/target/thrift/lib/libthrift.a
oct1158@oct1158-ubuntu:~/Documents/Code/C/iotdb$
 
武林盟主 二十一级
4楼 发表于:2026-6-22 11:47
 
武林盟主 二十一级
5楼 发表于:2026-6-22 11:51

的确是自带的。

libiotdb_session.so和libthrift.a库都是自带的,都不是现编译出来的。

都在下载的client-cpp-2.0.7-SNAPSHOT-cpp-linux-x86_64.zip里面。

 
武林盟主 二十一级
6楼 发表于:2026-6-22 15:00
 

回复帖子

内容:
用户名: 您目前是匿名发表
验证码:
(快捷键:Ctrl+Enter)
 

本帖信息

点击数:27 回复数:5
评论数: ?
作者:巨大八爪鱼
最后回复:巨大八爪鱼
最后回复时间:2026-6-22 15:00
 
©2010-2026 Purasbar Ver2.0
除非另有声明,本站采用知识共享署名-相同方式共享 3.0 Unported许可协议进行许可。