Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation for td/jnibuild/td/generate/td_generate_java_api #3198

Closed
TunifyBasic opened this issue Dec 22, 2024 · 6 comments
Closed

documentation for td/jnibuild/td/generate/td_generate_java_api #3198

TunifyBasic opened this issue Dec 22, 2024 · 6 comments

Comments

@TunifyBasic
Copy link

where can i find documentation about this command or how to use it to generate the td_api.cpp.

@levlam
Copy link
Contributor

levlam commented Dec 22, 2024

You need to use https://tdlib.github.io/td/build.html to get complete build instructions, which can use the utility.

@TunifyBasic
Copy link
Author

TunifyBasic commented Dec 22, 2024

yes i got a complete build but i wan't to generate a c contains the jni binding so i could compile it and have something like the once in example/java/.../TdApi.java and td_jni.cpp i copied them but is there any better way than coping them into project dev directory?

@levlam
Copy link
Contributor

levlam commented Dec 22, 2024

You must copy the Java files built along with libtdjni.so.

@TunifyBasic
Copy link
Author

TunifyBasic commented Dec 22, 2024

libtdjni.so built with predefined -DPACKAGE_NAME and set to the java app package (org/drinkless) i am just asking how to generate this td_jni.cpp.

~/td/example/java $ ls
CMakeLists.txt  README.md  build  org  td  td_jni.cpp

@levlam
Copy link
Contributor

levlam commented Dec 23, 2024

The Java files and libtdjni.so must be compatible. You can't generate them separately. td_jni.cpp isn't generated. It is a manually created file.

@TunifyBasic
Copy link
Author

alright thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants