Building eLua in Linux

Building eLua in Linux

Building eLua in Linux

Building eLua in Linux is fairly easy. This tutorial assumes that Ubuntu is used for building, however any distro should be fine, you just need to convert the "apt-get" calls to your distro's package manager equivalent. You need a few packages installed to build eLua:

  • a toolchain: check the toolchains page for toolchain instructions. Please note that even if you already have a compiled toolchain, the differences in the Newlib configure flags (mainly the --disable-newlib-supplied-syscalls flags) might prevent eLua for building properly on your machine.
  • Python : it should be already installed. If it's not, use apt-get to install it:
    $ sudo apt-get install python
  • scons - eLua uses scons instead of make and makefiles, because we find scons much more "natural" and easier to use than make. To install it:
    $ sudo apt-get install scons
  • your toolchain's "bin" directory (this is generally something like /usr/local/cross-arm/bin, where /usr/local/cross-arm is the directory in which you installed your toolchain) must be in $PATH.
  • if you're building for the i386 platform, you'll also need "nasm":
    $ sudo apt-get install nasm
  • gcc: if you want to use the ROMFS precompile feature (see here for details) you need to build an image of the eLua cross compiler, and you need an i386 toolchain for this. It should be already installed, but if you want to be on the safe side do this:
    sudo apt-get install build-essential
    Then build the eLua cross compiler by executing this command:
    scons -f cross-lua.py

After you setup your build environment as described above, follow this tutorial to build your eLua image.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值