Git Product home page Git Product logo

Comments (8)

rossmc7 avatar rossmc7 commented on August 19, 2024

Hey Setitch, I'm experiencing the same issue did you manage to resolve it?

from libzt.

Setitch avatar Setitch commented on August 19, 2024

Nope

from libzt.

rossmc7 avatar rossmc7 commented on August 19, 2024

So I've managed to build the .AAR file now which contains an .so binary for each architecture X86, ARM V7, V8. However, the example application does not boot. The error is logcat is "No implementation found for int com.zerotier.libzt.ZeroTier.init()".

The issue with compiling the project seems to be related to ensuring external dependencies are installed on the system.

brew install ninja
brew install tree

The installed version of java must also be modified in the dist.sh - JDK=jdk1.8.0_251.jdk

The android NDK must also be installed available through android studio, I've found that versions
17.2.4988734 18.1.5063045 19.2.5345600 all seem to work.
export ANDROID_NDK_HOME="/Users/$USER/Library/Android/sdk/ndk/17.2.4988734/“

So back to the running the example application issue, "No implementation found for int com.zerotier.libzt.ZeroTier.init()". This would suggest that the method is not defined in the library, however I've checked the actual generated binary and it does contain the required Java_com_zerotier_libzt_ZeroTier_init function, with a method body.

I've checked the externally visible functions, which lists some of the functions bind,accept,socket,connect but does not contain the init method.

Any ideas how I could further debug this?

from libzt.

 avatar commented on August 19, 2024

After updating Gradle, I'm still getting this error when running make android_release on MacOS 11 / Android Studio:

./dist.sh android "release"
Executing task:  android ( release )
> Task :app:generateJsonModelRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:generateJsonModelRelease'.
> /Users/ben/StudioProjects/libzt/CMakeLists.txt : C/C++ release|armeabi-v7a : CMake Error at /Users/ben/StudioProjects/libzt/CMakeLists.txt:431 (add_library):
    Error evaluating generator expression:
  
      $<TARGET_OBJECTS:zt_pic>
  
    Objects of target "zt_pic" referenced but is not an OBJECT library.

from libzt.

Chanthujan avatar Chanthujan commented on August 19, 2024

Hi @Ben-L-E

Did you

After updating Gradle, I'm still getting this error when running make android_release on MacOS 11 / Android Studio:

./dist.sh android "release"
Executing task:  android ( release )
> Task :app:generateJsonModelRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:generateJsonModelRelease'.
> /Users/ben/StudioProjects/libzt/CMakeLists.txt : C/C++ release|armeabi-v7a : CMake Error at /Users/ben/StudioProjects/libzt/CMakeLists.txt:431 (add_library):
    Error evaluating generator expression:
  
      $<TARGET_OBJECTS:zt_pic>
  
    Objects of target "zt_pic" referenced but is not an OBJECT library.

Hi @Ben-L-E

Did you find a solution for the above issue?

from libzt.

 avatar commented on August 19, 2024

@Chanthujan I ended up switching to Tailscale and Nebula

from libzt.

 avatar commented on August 19, 2024

@Chanthujan I revisited this project with another attempt. Let me know if it worked: https://drive.google.com/drive/folders/17_D6Cp791E_QObcI9AWshLywps4QWTsm?usp=sharing

from libzt.

joseph-henry avatar joseph-henry commented on August 19, 2024

An update on this:

Java sources were intentionally removed pending the results of Google V Oracle. We planned on dropping Java support altogether if the case went the wrong way. Now that this is cleared up new (WIP) Java sources have been added. As of this comment they build and pass a basic self-test but still need a lot of refinement, this will take place in the coming weeks.

Btw, thanks for your efforts on this @Ben-L-E. I will take a close look at your PR and figure out what parts are still relevant and if anything can be included.

from libzt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.