Skip to content
This repository has been archived by the owner on Dec 10, 2019. It is now read-only.

Porting to mobile #201

Open
bevinhex opened this issue Nov 7, 2018 · 3 comments
Open

Porting to mobile #201

bevinhex opened this issue Nov 7, 2018 · 3 comments

Comments

@bevinhex
Copy link

bevinhex commented Nov 7, 2018

Hi, I am doing some test using Qt to write a cross-platform application, so far Qt is working great, can even open up embedded servers on mobile, now when it came to libQtShadowsocks, I find it a bit daunting to include both botan and the library code itself inside another Qt project, I find another botan integration for qt https://github.com/danimo/qt-creator.git, however not very successful on mobile, I have two options on my mind:

  1. include whatever source code & header required by libQtShadowsocks into the library , and combile it together with libQtSS
  2. compile botan saperately each time building for different platform, then link it to the application.

second approach I think is the one you had in your mind when using it, however it adds complexity for deployment process and other stuff, so I prefer first approach, I'll keep posting after testing things out, however any insight on your experience on mobile part would be useful , thank you.

@librehat
Copy link
Contributor

librehat commented Nov 7, 2018

botan is not that hard to compile for Android so far as it's concerned. I haven't tried iOS because I don't have any devices running iOS. The first approach is not that simple and we shouldn't bundle a private library into this project (it's only used for linking and at the runtime)

@bevinhex
Copy link
Author

I am having success on creating a static library from ss code, then creating all in one botan .cpp/.h and compiling it as another static library, so far shadowsocks is working on linux & android successfully, one project , one code.
Although proxying seems to halt when the app is on background, I'll solve it a bit later, then keep posting my approach.

@librehat
Copy link
Contributor

I'll look forward to your mobile app ;)

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

No branches or pull requests

2 participants