# Build Android Project

**URL:** <https://openziti.discourse.group/t/build-android-project/3367>\
**Category:** Uncategorized\
**Created:** [November 5, 2024, 7:29am UTC](https://openziti.discourse.group/t/build-android-project/3367 "2024-11-05T07:29:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 5, 2024, 7:29am UTC](https://openziti.discourse.group/t/build-android-project/3367/1 "2024-11-05T07:29:28Z")

</div>

I downloaded the latest version of the Android project v0.12.1, and I want to compile it locally. However, compiling the tunnel is quite challenging. Could you give me some debugging advice? android ndk version ?What environment variables do I need for my computer!

I noticed in the release notes that I can directly use the binary files of the tunnel, and the Android project can use it without needing to compile the tunnel model?

---

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 5, 2024, 11:29am UTC](https://openziti.discourse.group/t/build-android-project/3367/2 "2024-11-05T11:29:30Z")

</div>

![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/b/b2e9b957e5622f79f95bab1d69bb3fafe1fa432a.png)

---

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 5, 2024, 11:35am UTC](https://openziti.discourse.group/t/build-android-project/3367/3 "2024-11-05T11:35:51Z")

</div>

CMAKE\_MAKE\_PROGRAM  
CMAKE\_C\_COMPILER  
CMAKE\_CXX\_COMPILER  
"What do they need to configure?"

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/c/c54cdb36a4a47300b0d3c5b1e28d1ec6ad7c9985.png)

---

<div class="post-metadata">

**Author:** ![ekoby](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/ekoby/32/14_2.png) [@ekoby](https://openziti.discourse.group/u/ekoby)\
**Post date:** [November 5, 2024, 2:48pm UTC](https://openziti.discourse.group/t/build-android-project/3367/5 "2024-11-05T14:48:04Z")

</div>

in order to build Ziti Mobile Edge tunnel from scratch you'll need the following (it appears that you'e on a Mac):

- working C compiler -- download Xcode from App store or `gcc` via homebrew `brew install gcc`
- `ninja` build -- `brew install ninja`
- have `VCPKG_ROOT` set to a reasonable location like `$HOME/vcpkg`

---

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 6, 2024, 9:04am UTC](https://openziti.discourse.group/t/build-android-project/3367/7 "2024-11-06T09:04:16Z")

</div>

I haven't compiled this kind of project before, can you explain how it works?

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [November 7, 2024, 1:06pm UTC](https://openziti.discourse.group/t/build-android-project/3367/8 "2024-11-07T13:06:35Z")

</div>

Unfortunately, I don't think we can provide that sort of help. I would recommend looking at the project, reading the CMake files and the github action and try to learn how it all works. ☹ sorry

---

<div class="post-metadata">

**Author:** ![ekoby](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/ekoby/32/14_2.png) [@ekoby](https://openziti.discourse.group/u/ekoby)\
**Post date:** [November 7, 2024, 3:04pm UTC](https://openziti.discourse.group/t/build-android-project/3367/9 "2024-11-07T15:04:04Z")

</div>

to add to @TheLumberjack message,  
you can read about using C/C++ code in android projects on various places on the Internet

---

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 8, 2024, 12:50am UTC](https://openziti.discourse.group/t/build-android-project/3367/10 "2024-11-08T00:50:11Z")

</div>

Thank you. I'm making some progress now

---

<div class="post-metadata">

**Author:** ![zhaojun1217](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/zhaojun1217/32/1556_2.png) [@zhaojun1217](https://openziti.discourse.group/u/zhaojun1217)\
**Post date:** [November 8, 2024, 12:52am UTC](https://openziti.discourse.group/t/build-android-project/3367/11 "2024-11-08T00:52:53Z")

</div>

Thanks, I read some information about the use of vcpkg and now I can run , it's not as difficult as I thought, my NDK version is too old
