pomelo icon indicating copy to clipboard operation
pomelo copied to clipboard

libpomelo cannot be compiled with android NDK due to libuv build failure

Open ezhozhe opened this issue 13 years ago • 6 comments

As title.

Seems android NDK doesn't support libuv. All the terms started with "pthread_" cannot be recognized by android NDK.

Any clue or hint? Thanks a lot.

ezhozhe avatar Mar 30 '13 07:03 ezhozhe

In wiki, I find this issue https://github.com/NetEase/pomelo/issues/147

I get the android.mk from https://github.com/NewYuil/libpomelo prepared by NewYuil, but I got the same error......

NewYuil, please add my QQ 1211674942 so that I could check with you, thanks !

ezhozhe avatar Mar 30 '13 13:03 ezhozhe

I update my libpomelo.you can check what I modify。It would work today。and now I'm try to js-bind . https://github.com/NewYuil/libpomelo

NewYuil avatar Mar 30 '13 16:03 NewYuil

Hi, NewYuil. Thanks.

But it still failed in win7 + Android NDK-r8d

I switch to complie it in MacOS + Android NDK-r8d. libuv could be built.

For libjansson, there is a very minor update. After this minor update, the build is successful.

Now, my application could be compiled with libpomelo. Although the connection to pomelo server is not successful yet, this is another issue.

I think this issue could be closed. For the win7 build problem, the current solution is to use MacOS or linux......

ezhozhe avatar Mar 31 '13 15:03 ezhozhe

for windows do you try this ?
###Windows in your libpomelo project root directory
open git bash and type in

mkdir -p build
git clone https://github.com/martine/gyp.git build/gyp

then open cmd shell in windows and cd to your libpomelo project root directory
and type in

build\gyp\gyp.bat --depth=. pomelo.gyp -Dlibrary=static_library  

then open pomelo.sln in visual studio and you can build libpomelo in windows

fantasyni avatar Apr 01 '13 00:04 fantasyni

I build libuv with android sdk 17,it's error when android sdk is 8. and you can build it with minsdk is 10 and target sdk is 10.

NewYuil avatar Apr 01 '13 05:04 NewYuil

Hi, NewYuil, for your 1st suggestion, I have done all that to follow the official guideline of pomelo team,

For your 2nd suggestion, try it. It does not work. I will not spend more time on win7 debug. Thank you anyway!!!

BTW, my apk could now access pomelo server. Our features do work now. It is amazing.

Thank you, team pomelo and all guys here help us !!!

ezhozhe avatar Apr 01 '13 09:04 ezhozhe