GithubHelp home page GithubHelp logo

cantata-node's Introduction

Evented I/O for V8 javascript.

This is a guide how to compile node.js (v0.8.16-release) for arm architecture and create the node executable to be able to be linked dynamically.

Prerequisites (Unix only):

* Python 2.6 or 2.7
* GNU Make 3.81 or newer
* libexecinfo (FreeBSD and OpenBSD only)

Build using build script (Ubuntu only):

$ ./build -h
Usage: build [options]

Options:
  -h, --help           show this help message and exit
  --dest-cpu=DEST_CPU  CPU architecture to build for. Valid values are: arm,
                       x86
  --with-shared        Build with shared option. Node works as a shared library

  --with-pie           Build with pie option. The executable is able to be
                       linked dynamically
  --prefix=PREFIX      Select the install prefix (defaults to
                       ./node/out/Release)

$ mkdir output
$ ./build --dest-cpu=arm --with-pie --prefix=./output
$ file ./output/node
out/Release/node: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked 
(uses shared libs), for GNU/Linux 2.6.15, not stripped

Build own your own:

Get node Source code:

$ git clone git://github.com/joyent/node.git
$ cd node
$ git checkout v0.8.16-release

Set some envirnments for cross compile:

$ export AR=arm-linux-gnueabi-ar
$ export CC=arm-linux-gnueabi-gcc
$ export CXX=arm-linux-gnueabi-g++
$ export LINK=arm-linux-gnueabi-g++

Set patch for making node shared library

$ patch -p0 < ../patch-for-making-shared-library.patch

Build node

$ ./configure --without-snapshot --dest-cpu=arm --dest-os=linux
$ make --jobs=8

Resources for Newcomers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.