toktok / jvm-toxcore-c Goto Github PK
View Code? Open in Web Editor NEWJVM (Java/Scala/Kotlin) bindings to toxcore
Home Page: https://toktok.ltd
License: GNU General Public License v3.0
JVM (Java/Scala/Kotlin) bindings to toxcore
Home Page: https://toktok.ltd
License: GNU General Public License v3.0
It would be nice if there was a jar file build in the releases section
is there a function to get the used toxcore version info? or if not a release then the commit hash of toxcore?
would be useful for highlevel to display this info in "about" pages and crash reports
same goes for jvm-toxcore version used
with android studio i used it and compiled antox. it compiles without error.
but on runtime crashes with class not found.
seems it needs some specific dependencies installed (with specific version), but you can not see it anywhere.
is there a list what libs are needed as dependencies for jvm-toxcore-c?
only armv7a is built now.
normal arm .so library is missing.
Hi !
First thank you for the project, i have troubles making a working application using Tox4J, where i can find documentation ? An "EchoBot" example would be perfect ! :)
Thank you.
#$ENV{CFLAGS} = $ENV{CXXFLAGS} = '-O3';
There are linker issues if we enable optimisation on Android
Like c-toxcore tests, our tests here should directly bootstrap off the other node's DHT key/port on localhost. Once that is done, enable parallel testing: https://github.com/TokTok/jvm-toxcore-c/blob/master/build.sbt#L41.
I wonder use the tox in my own written chat. Firstly, I use maven but it can't find any resources. Then I come here and git clone the whole repository. I wonder how to add it in my project. I try to build it on my PC, but it seems failed.
I use the command
sbt -D java.security.manager compile
The result is as the following. I don't know what the error and why this error happend.
java.lang.IllegalArgumentException: key can't be empty
at java.base/java.lang.System.checkKey(System.java:1098)
at java.base/java.lang.System.setProperty(System.java:1041)
at scala.sys.SystemProperties.$anonfun$addOne$1(SystemProperties.scala:53)
at scala.sys.SystemProperties.wrapAccess(SystemProperties.scala:56)
at scala.sys.SystemProperties.addOne(SystemProperties.scala:53)
at scala.sys.SystemProperties.addOne(SystemProperties.scala:30)
at scala.collection.mutable.Growable.$plus$eq(Growable.scala:36)
at scala.collection.mutable.Growable.$plus$eq$(Growable.scala:36)
at scala.collection.mutable.AbstractMap.$plus$eq(Map.scala:265)
at xsbt.boot.Configuration$.setProperty(Configuration.scala:52)
at xsbt.boot.Configuration$.find(Configuration.scala:39)
at xsbt.boot.Launch$.apply(Launch.scala:30)
at xsbt.boot.Launch$.apply(Launch.scala:21)
at xsbt.boot.Boot$.runImpl(Boot.scala:78)
at xsbt.boot.Boot$.run(Boot.scala:73)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)
[error] [launcher] error during sbt launcher: java.lang.IllegalArgumentException: key can't be empty
Tired to run scripts/build-aarch64-linux-android
(v0.2.0) and encountered this error:
git clone --depth=1 --branch=3.5.0.1 https://github.com/google/protobuf build/srclib/jvm-toxcore-c/_git/protobuf
Cloning into 'build/srclib/jvm-toxcore-c/_git/protobuf'...
warning: Could not find remote branch 3.5.0.1 to clone.
fatal: Remote branch 3.5.0.1 not found in upstream origin
i am reading the code of jvm-toxcore-c, but i donot know how to get the folder named "generated", this folder contains the XXX.h file created by javah.
1
is there any tools to got them ?
"jvm-toxcore-c\cpp\src\ToxAv\generated"
"jvm-toxcore-c\cpp\src\ToxCore\generated"
2 i am so confused about this file "jvm-toxcore-c\cpp\src\ToxAv\generated\natives.h"
JAVA_METHOD_REF (toxavAnswer)
CXX_FUNCTION_REF (toxav_answer)
could you explain them for me or give me some reference?
thanks!
unresolved dependency: org.toktok#sbt-plugins;0.1.6: not found
idk why
following is the log hope for you help...thanks
/home/ubuntu/toxapp/jvm-toxcore-c/_build/i686-linux-android/protobuf/src/.libs/libprotobuf.a(arena.o):/home/ubuntu/toxapp/jvm-toxcore-c/_git/protobuf/src/google/protobuf/arena.cc:function google::protobuf::internal::ArenaImpl::Init(): error: undefined reference to '__atomic_fetch_add_8'
clang38++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [protoc] Error 1
make[3]: Leaving directory `/home/ubuntu/toxapp/jvm-toxcore-c/_build/i686-linux-android/protobuf/src'
make[2]: *** [install-recursive] Error 1
make[4]: *** [CMakeFiles/tox4j-c.dir/src/tox/core.cpp.o] Error 1
[ 48%] Building CXX object CMakeFiles/tox4j-c.dir/src/util/debug_log.cpp.o
In file included from /Users/ttd/jvm-toxcore-c/cpp/src/util/debug_log.cpp:3:
In file included from /Users/ttd/jvm-toxcore-c/cpp/src/tox/core.h:3:
/Users/ttd/jvm-toxcore-c/cpp/src/tox/common.h:51:12: error: class
template partial specialization contains a template parameter that cannot be
deduced; this partial specialization will never be used
[-Wunusable-partial-specialization]
struct mk_tox_cb<Subsystem, void (Subsystem *, Args..., void *)>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ttd/jvm-toxcore-c/cpp/src/tox/common.h:50:46: note:
non-deducible template parameter 'Args'
template<typename Subsystem, typename ...Args>
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
https://github.com/zoff99/ToxAndroidRefImpl/tree/master/jni-c-toxcore
not 100% complete yet, but most stuff is working.
see the "test client" development snapshot that's using it:
https://circleci.com/api/v1/project/zoff99/ToxAndroidRefImpl/latest/artifacts/0/$CIRCLE_ARTIFACTS/ToxAndroidRefImpl.apk?filter=successful&branch=master
!! Use at your own risk !!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.