Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/client-cpp-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
Using maven to build this example project:

* cd the root path of the whole project
* run `mvn package -DskipTests -P compile-cpp -pl example/client-cpp-example -am`
* run `mvn clean package -DskipTests -P with-cpp -pl example/client-cpp-example -am`
* cd example/client-cpp-example/target

You can find some files to form a complete project:
Expand Down
20 changes: 16 additions & 4 deletions iotdb-client/client-cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,28 @@
-->
# Building C++ Client

To compile cpp client, add "-P compile-cpp" option to maven build command.
To compile cpp client, add "-P with-cpp" option to maven build command.

The compiling requires the module "compile-tools" to be built first.
For more information, please refer to "compile-tools/README.md".

Explicitly using mvnw here as the build requires maven 3.9 and the default installation is older

## Compile and Test:

`mvn integration-test -P compile-cpp -pl client-cpp,server -am -Diotdb.test.skip=true -Dtsfile.test.skip=true -Djdbc.test.skip=true`
### Compile
`mvn clean package -P with-cpp -pl iotdb-client/client-cpp -am -DskipTests`

### Test
First build IoTDB server

Explicitly using "install" instead of package in order to be sure we're using libs built on this machine

`mvn clean install -P with-cpp -pl distribution,iotdb-client/client-cpp -am -DskipTests`

After run verify

`mvn clean verify -P with-cpp -pl iotdb-client/client-cpp -am`

To compile on Windows, please install Boost first and add following Maven settings:
```
Expand All @@ -37,8 +50,7 @@ To compile on Windows, please install Boost first and add following Maven settin

e.g.,
```
mvn integration-test -P compile-cpp -pl client-cpp,server,example/client-cpp-example -am
-D"iotdb.test.skip"=true -D"tsfile.test.skip"=true -D"jdbc.test.skip"=true
mvn clean package -P with-cpp -pl iotdb-client/client-cpp -am -DskipTest
-D"boost.include.dir"="D:\boost_1_75_0" -D"boost.library.dir"="D:\boost_1_75_0\stage\lib"
```

Expand Down