Issue #37 new

Document required build environment

Tony Arnold
created an issue

It would be good to have a record of the OS and tools required to build this project. There doesn't appear to be anything in the repository documenting this.

Comments (4)

  1. nikk gitanes

    Here is my findings for SuSE / Ubuntu in x64 mode:

    toolchain need those x32 packages / libs:

    # SuSE 13.2 x64 32bit libs for toolchain
    # sudo zypper install libelf1-32bit
    # sudo ln -sf /usr/lib/libmpc.so.3 /usr/lib/libmpc.so.2
    
    # Ubuntu 14.04 LTS x64 32bit libs for toolchain
    # sudo apt-get install libelf1:i386 zlib1g:i386
    
  2. nikk gitanes

    Basic build packages are build-essential in Ubuntu, and autoconf automake flex byson, maybe others... Compiler will tell you what it wants on compile error. Also, toolchain path must be set before cross-compilation:

    SRC=`pwd`/release/src-rt-6.x.4708
    sudo ln -sf $SRC/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3 /opt/hndtools-arm-linux-2.6.36-uclibc-4.5.3
    export PATH=$PATH:/opt/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin
    
  3. jpap

    After setting up packages as above, I get a build error on iptables-1.4.x-configure:

    ./configure: line 11934: syntax error near unexpected token `libnfnetlink,'
    ./configure: line 11934: `PKG_CHECK_MODULES(libnfnetlink, libnfnetlink >= 1.0,'
    Makefile:1036: recipe for target 'iptables-1.4.x-configure' failed
    make[5]: *** [iptables-1.4.x-configure] Error 2
    make[5]: Leaving directory '/home/jpap/Development/tomato-arm/release/src-rt-6.x.4708/router'
    

    While this link suggests to remove the module check completely, it was solved by running autoreconf in the folder $SRC/router/iptables-1.4.x as suggested by StackOverflow, then restarting the build.

    Posting here because this simple solution was very difficult to find...

  4. Log in to comment