shadowsocks / libQtShadowsocks

A lightweight and ultra-fast shadowsocks library written in C++14 with Qt framework
GNU Lesser General Public License v3.0
1.5k stars 645 forks source link

Porting to mobile #201

Open bevinhex opened 6 years ago

bevinhex commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

I'll look forward to your mobile app ;)