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

How to use openvpn3 in java #319

Open
HunterWbk opened this issue Jul 19, 2024 · 0 comments
Open

How to use openvpn3 in java #319

HunterWbk opened this issue Jul 19, 2024 · 0 comments

Comments

@HunterWbk
Copy link

I am a beginner in C++. I have been exposed to Java for a while, and now I want to try app development, such as implementing the Android client of openvpn. As you know, Android can be developed with Java, but the openvpn3 class library does not Support java. Then I looked up a lot of documentation,Also based on your tips, I used swig (it was my first time to come into contact with this tool) and executed ovpncli.i in the client directory, and then generated ovpncli_wrap.cxx, ovpncli_wrap.h and some java files. I don’t know how. Go ahead and use it. What I searched on the Internet is to encapsulate these into dlls. I am using Visual Studio 2022. When I put the generated cxx and h questions in, a bunch of errors were reported, such as: namespace "openvpn" has no member "DnsOptions", "openvpn::TunBuilderBase" has no member "tun_builder_add_dns_options", member functions declared using "override" cannot override base class members...etc., this is for beginners It's very painful and I need your help.

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

1 participant