build-nodejs-for-android icon indicating copy to clipboard operation
build-nodejs-for-android copied to clipboard

Build GCC and G++ for Android

Open paulocoutinhox opened this issue 8 years ago • 4 comments

Hi,

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

Thanks.

paulocoutinhox avatar Dec 09 '16 04:12 paulocoutinhox

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

paulocoutinhox avatar Dec 09 '16 05:12 paulocoutinhox

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

jjqq2013 avatar Dec 13 '16 04:12 jjqq2013

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

paulocoutinhox avatar Dec 13 '16 12:12 paulocoutinhox

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.

jjqq2013 avatar Dec 15 '16 08:12 jjqq2013