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

[iotdb] branch master updated: [IOTDB-1630] Compile cpp client on ARM Linux (#3912)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 3877d00  [IOTDB-1630] Compile cpp client on ARM Linux (#3912)
3877d00 is described below

commit 3877d0078ed18e69320a64d16fac2e9df1878e50
Author: Haonan <hh...@outlook.com>
AuthorDate: Tue Sep 7 17:59:30 2021 +0800

    [IOTDB-1630] Compile cpp client on ARM Linux (#3912)
---
 client-cpp/pom.xml                 | 18 ++++++++++++++++++
 compile-tools/pom.xml              | 24 ++++++++++++++++++++++++
 example/client-cpp-example/pom.xml | 15 +++++++++++++++
 3 files changed, 57 insertions(+)

diff --git a/client-cpp/pom.xml b/client-cpp/pom.xml
index dfd9403..2d5fbb5 100644
--- a/client-cpp/pom.xml
+++ b/client-cpp/pom.xml
@@ -69,6 +69,24 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                    <arch>aarch64</arch>
+                </os>
+            </activation>
+            <properties>
+                <os.suffix>linux</os.suffix>
+                <os.classifier>linux-arm_32</os.classifier>
+                <!-- 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..02ecea0 100644
--- a/compile-tools/pom.xml
+++ b/compile-tools/pom.xml
@@ -65,6 +65,30 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                    <arch>aarch64</arch>
+                </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..dd10fe7 100644
--- a/example/client-cpp-example/pom.xml
+++ b/example/client-cpp-example/pom.xml
@@ -47,6 +47,21 @@
             </properties>
         </profile>
         <profile>
+            <id>os-unix-arm</id>
+            <activation>
+                <os>
+                    <family>unix</family>
+                    <arch>aarch64</arch>
+                </os>
+            </activation>
+            <properties>
+                <os.suffix>linux</os.suffix>
+                <os.classifier>linux-arm_32</os.classifier>
+                <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>