OpenWrt Forum Archive

Topic: Cross-Compile Nodejs For OpenWRT [GUIDE]

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi guys!

After trying to compile nodejs for OpenWRT, I've decided to create a guide that shows how to do that. I hope it helps you.

Cross-Compile-Nodejs-for-OpenWrt

Cheers!

(Last edited by luisf on 19 Oct 2015, 14:31)

Well, you do not bring much information not already in the guide I published and referred you to: http://techfindings.one/archives/2175

And, your instructions with not generate a working image on targets without FPU: ar71xx, ramips7620, kirkwood, and many more.

It is not going to work for RPi v1 because you need -march=armv6j.
And for both RPi1 and RPi2 I think you also need -mfloat-abi=softfp.

Did this problem disappear: https://forum.openwrt.org/viewtopic.php?id=60150
And why do you prefer a static build?

Can we maintain a list of targets?

x86              good                     tested
x86_64           should be good           not tested
brcm2708         good                     tested (requires some flags)
brcm2709         good                     tested
mpc85xx          will never work
kirkwood         will never work          (0.10 can work)
ar71xx           maybe                    not tested (requires kernel FPU emulation)
ramips/mt7620    good                     tested (with kernel FPU)  

Have you managed to build and test for any target not in the above list? mvebu?

And why did you start a new thread when there are already several?

zo0ok wrote:

Well, you do not bring much information not already in the guide I published and referred you to: http://techfindings.one/archives/2175

And, your instructions with not generate a working image on targets without FPU: ar71xx, ramips7620, kirkwood, and many more.

It is not going to work for RPi v1 because you need -march=armv6j.
And for both RPi1 and RPi2 I think you also need -mfloat-abi=softfp.

Did this problem disappear: https://forum.openwrt.org/viewtopic.php?id=60150
And why do you prefer a static build?

Can we maintain a list of targets?

x86              good                     tested
x86_64           should be good           not tested
brcm2708         good                     tested (requires some flags)
brcm2709         good                     tested
mpc85xx          will never work
kirkwood         will never work          (0.10 can work)
ar71xx           maybe                    not tested (requires kernel FPU emulation)
ramips/mt7620    good                     tested (with kernel FPU)  

Have you managed to build and test for any target not in the above list? mvebu?

And why did you start a new thread when there are already several?

I really tested this guide on RPIv2 and It works successfully. I'll keep on testing in other architectures.

I prefer static builds because of the libraries dependencies

The discussion might have continued from here.