You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/09/06 06:19:20 UTC

[iotdb] branch cpp_client_arm created (now b1403c8)

This is an automated email from the ASF dual-hosted git repository.

haonan pushed a change to branch cpp_client_arm
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at b1403c8  Compile cpp client on ARM Linux

This branch includes the following new commits:

     new b1403c8  Compile cpp client on ARM Linux

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[iotdb] 01/01: Compile cpp client on ARM Linux

Posted by ha...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch cpp_client_arm
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit b1403c86ba3b3986a38bf86e683b8fd8a7dfeaf1
Author: HTHou <hh...@outlook.com>
AuthorDate: Mon Sep 6 14:18:45 2021 +0800

    Compile cpp client on ARM Linux
---
 client-cpp/pom.xml                 | 16 ++++++++++++++++
 compile-tools/pom.xml              | 23 +++++++++++++++++++++++
 example/client-cpp-example/pom.xml | 12 ++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/client-cpp/pom.xml b/client-cpp/pom.xml
index dfd9403..54f0f99 100644
--- a/client-cpp/pom.xml
+++ b/client-cpp/pom.xml
@@ -69,6 +69,22 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                </os>
+            </activation>
+            <properties>
+                <os.suffix>linux</os.suffix>
+                <!-- use Makefile as default cmake generator, users may specify other generators -->
+                <cmake.generator>Unix Makefiles</cmake.generator>
+                <cmake.root.dir>${project.parent.basedir}/compile-tools/thrift/target/cmake-3.21.2-linux-aarch64/</cmake.root.dir>
+                <thrift.exec.absolute.path>${project.parent.basedir}/compile-tools/thrift/target/build/compiler/cpp/bin/thrift</thrift.exec.absolute.path>
+                <iotdb.server.script>start-server.sh</iotdb.server.script>
+            </properties>
+        </profile>
+        <profile>
             <id>os-mac</id>
             <activation>
                 <os>
diff --git a/compile-tools/pom.xml b/compile-tools/pom.xml
index e8b56e8..74457fa 100644
--- a/compile-tools/pom.xml
+++ b/compile-tools/pom.xml
@@ -65,6 +65,29 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                </os>
+            </activation>
+            <properties>
+                <os.suffix>linux</os.suffix>
+                <os.classifier>linux-arm_32</os.classifier>
+                <cmake.url>https://github.com/Kitware/CMake/releases/download/v3.21.2/cmake-3.21.2-linux-aarch64.tar.gz</cmake.url>
+                <cmake.root.dir>${project.build.directory}/cmake-3.21.2-linux-aarch64/</cmake.root.dir>
+                <cmake.generator>Unix Makefiles</cmake.generator>
+                <boost.url>https://boostorg.jfrog.io/artifactory/main/release/${boost.version}/source/boost_${boost.version.underline}.zip</boost.url>
+                <boost.bootstrap.executable>./bootstrap.sh</boost.bootstrap.executable>
+                <boost.build.executable>./b2</boost.build.executable>
+                <thrift.bootstrap.executable>./bootstrap.sh</thrift.bootstrap.executable>
+                <thrift.configure.executable>./configure</thrift.configure.executable>
+                <thrift.make.executable>make</thrift.make.executable>
+                <thrift.compiler.executable>thrift</thrift.compiler.executable>
+                <gradlew.executable>./gradlew</gradlew.executable>
+            </properties>
+        </profile>
+        <profile>
             <id>os-mac</id>
             <activation>
                 <os>
diff --git a/example/client-cpp-example/pom.xml b/example/client-cpp-example/pom.xml
index d3bb9ba..1a7f61b 100644
--- a/example/client-cpp-example/pom.xml
+++ b/example/client-cpp-example/pom.xml
@@ -47,6 +47,18 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                </os>
+            </activation>
+            <properties>
+                <cmake.generator>Unix Makefiles</cmake.generator>
+                <cmake.root.dir>${project.parent.basedir}/../compile-tools/thrift/target/cmake-3.21.2-linux-aarch64/</cmake.root.dir>
+            </properties>
+        </profile>
+        <profile>
             <id>os-mac</id>
             <activation>
                 <os>