Hi,

I used to build it directly on the PI. I've got a recorded build of 0.8.9
taking 287 minutes (~4h47m).

Currently, you can build it directly just by doing a ./configure;make. If
you have multiple PIs it compiles really well via distcc.

I used to run this steps (this is for a 0.9 build):

=========

export NODE_VER=0.9.12
export BUILD=node-$NODE_VER-static_ssl-snapshots
export PREFIX=~/opt/$BUILD
cd ~
rm -rf ~/work/node-build/$BUILD-src;mkdir -p ~/work/node-build && cd
~/work/node-build
rm -rf $PREFIX;mkdir -p $PREFIX

[[ -f node-v$NODE_VER.tar.gz ]] || \
curl -O http://nodejs.org/dist/v$NODE_VER/node-v$NODE_VER.tar.gz

mkdir $BUILD-src && cd $BUILD-src
tar --strip-components=1 -zxf ../node-v$NODE_VER.tar.gz

export CC="distcc gcc"
export CXX="distcc g++"
export DISTCC_HOSTS="rpi1,cpp,lzo rpi2,cpp,lzo localhost,cpp,lzo"

./configure --gdb --prefix=$PREFIX
time make install

=========

BTW, if you can, use tmux/screen as it is really useful for doing this
remotely.

If you want to cross compile, this gist by @adammw has awesome
instructions: https://gist.github.com/adammw/3245130

Just to add another detail: If you build locally on the PI, the V8 build
will include a producing snapshot to accelerate bootstrap. From my
experience this isn't a huge improvement, but YMMV.


Luis Reis
-- 



On Thu, Jan 23, 2014 at 12:23 AM, Nathan Rajlich <[email protected]>wrote:

> On Wed, Jan 22, 2014 at 2:30 PM, Jeroen Janssen 
> <[email protected]>wrote:
>
>> Hi Nathan,
>>
>> Thanks for updating, unfortunately I don't have a pi yet (but a friend of
>> mine does).
>> I discovered the missing binaries while checking some dependencies for a
>> possible domotica project.
>> (and some blogposts mentioned getting pi binaries from the dist directory)
>>
>> And I agree that it is impossible to build nodejs binaries for each
>> relevant distribution/hardware platform out there.
>>
>> On a side note, are you crosscompiling or are you building natively on
>> the pi (and how long does that usually take?)
>>
>
> For these tarballs, I've been cross-compiling from my Mac (yup! OS X ->
> Linux ARM cross-compiler... I don't even remember where I got it from),
> which takes like 10 minutes per build (the `make binary` command doesn't
> use the --jobs flag in Make).
>
> I *have* directly compiled on the pi before and I remember it taking north
> of 2 hours.
>
>
>> Best regards,
>>
>> Jeroen
>>
>> Op dinsdag 21 januari 2014 20:05:50 UTC+1 schreef Nathan Rajlich:
>>>
>>> On Sun, Jan 19, 2014 at 1:26 PM, Jeroen Janssen <[email protected]>wrote:
>>>
>>>> Hi,
>>>>
>>>> It seems that after nodejs v0.10.22 the node-..-linux-arm-pi.tar.gz
>>>> has not been build and uploaded to dist.
>>>> Similar for the v0.11 line, as v0.11.9 is the last one with raspberry
>>>> pi binaries.
>>>>
>>>> Is anyone still building these binaries (manually)?
>>>>
>>>
>>> I build them manually when I get a chance. IMO they're more of a
>>> convenience thing, and not an "official" dist from us. I used to simply
>>> upload the builds to my own node fork's "Files" section of GitHub, but when
>>> they took that feature away we decided I could place them in the dist/
>>> builds dir alongside the other releases.
>>>
>>> I am fine with that, however I don't like playing favorites with ARM
>>> processors (what's so special about Pi, other than that I own one? Why no
>>> "official" AR.Drone ARM build!?!), so on that note I've always
>>> intentionally not included the SHASUM of the arm-pi tarball in the
>>> SHASUMS.txt file, so that people won't rely on the builds (though obviously
>>> that's not working very well :p ).
>>>
>>> Anyways, that was just a little bit of history while catching up on
>>> these arm-pi builds, all should be up-to-date on the website now. Just
>>> uploaded v0.10.23, v0.10.24, and v0.11.10. Feel free to give me a poke
>>> whenever I fall behind like that ;)
>>>
>>> Cheers!
>>>
>>>
>>>>
>>>> Best regards,
>>>>
>>>> Jeroen
>>>>
>>>>  --
>>>> --
>>>> Job Board: http://jobs.nodejs.org/
>>>> Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-
>>>> Posting-Guidelines
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.
>>>> To post to this group, send email to [email protected]
>>>>
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>>
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>>>
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "nodejs" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
>> --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "nodejs" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>  --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to