Comments (8)
Hey Setitch, I'm experiencing the same issue did you manage to resolve it?
from libzt.
Nope
from libzt.
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.
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.
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.
@Chanthujan I ended up switching to Tailscale and Nebula
from libzt.
@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.
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)
- Java process does not exit after finishing libzt work HOT 3
- Memory leak if libzt events aren't consumed by user app
- How to deal with scenarios that requires cancelling? HOT 5
- .NET binding: `Node.InitSetEventHandler` is not really optional as stated in example HOT 1
- .NET binding: Socket.Send behavior is unexpected HOT 2
- Error installing ZeroTier Nuget, visual studio 2022 .net framework project
- xcodebuild: error: Unable to read project 'zt.xcodeproj'. Reason: The project âztâ is damaged and cannot be opened due to a parse error. Examine the project file for invalid edits or unresolved source control conflicts.
- NodeService heap corruption after ZTS_EVENT_PEER_PATH_DISCOVERED HOT 6
- Required fixes to build libzt on Windows HOT 4
- cmake errors for java build HOT 1
- unable to use compiled jar HOT 6
- Java multithreaded server hangs
- java windows does not compile dll HOT 16
- Script fail in Ubuntu HOT 1
- Script fail in Windows HOT 5
- Question about android example from documentation
- iOS clang error: no such file Build/Products/Release/zt.framework/Versions/A/zt
- C# Optional Setup Doesn't Seem So Optional -> System.ExecutionEngineException HOT 1
- C# node.IdString can leave out leading zeroes
- Java Windows: Could not get IPs correctly and Could not send data via sockets. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libzt.