There are currently 6 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
32 5
iotdb里面的libthrift.a是仓库自带的(pre-built Thrift library)
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 6/22/26 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`

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 2 Posted at: 6/22/26 11:40
iotdb-client/client-cpp/README.md的58-79行有编译thrift库的说明。
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 3 Posted at: 6/22/26 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$
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 4 Posted at: 6/22/26 11:47
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 5 Posted at: 6/22/26 11:51

的确是自带的。

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

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

巨大八爪鱼
武林盟主 二十一级
Reply
Floor 6 Posted at: 6/22/26 15:00
下载thrift源码:https://dlcdn.apache.org/thrift/0.23.0/thrift-0.23.0.tar.gz
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 32 Replies: 5
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 6/22/26 15:00
Announcements