sjitech / build-nodejs-for-android

Build nodejs for android(arm,arm64,x86,x64,mipsel) perfectly and provide prebuilt binaries, and a docker image as workbench.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build GCC and G++ for Android

paulocoutinhox opened this issue · comments

Hi,

How i can build GCC and G++ to run on Android (host=arm).

Thanks.

After a lot of days trying i have created a project with the results. But it dont compile and i dont know what to do now :(

https://github.com/prsolucoes/gcc-for-arm

commented

@prsolucoes 👍 Although this is not relevant with building Node.JS, it is an interesting question. I will think about it in spare time.

Ok, can you contact me when you will check?
Skype, email and hangout is: paulo [at] prsolucoes.com

commented

I am afraid i have no time now, do not know when start to do this research. It seems nobody do this because it's seems not necessary. Why do you want to use gcc in android?

If you really want to do that soon, you have an alternative way: root the android then install "debian Kit", then you can get a complete gcc environment.
I'v ever build node.js from the debian kit then run node.js in other devices, no problem except that:
it does not recognize 'localhost', i have to specify 127.0.0.1. I have not tried use other external dns full name. I know the reason is the debian kit does not use android C runtime, it use standard gcc runtime, so it will try to open /etc/hosts /etc/resolv.conf or something like.

Good luck.