OverviewNano is a text editor, and requires ncurses to compile. PreparationMake sure you have a cross-compiling virtual machine properly setup. Don't forget to source the proper cross-compilation variables. Compilationsudo apt-get install texinfo cd ~/code . ~/bin/crosscompile.drobo5n.sh export DEST=/mnt/DroboFS/Shares/DroboApps/nano export CFLAGS="$CFLAGS -Os -fPIC -ffunction-sections -fdata-sections" export CXXFLAGS="$CXXFLAGS $CFLAGS" export LDFLAGS="$LDFLAGS -Wl,--gc-sections" wget -O ncurses-5.9.tar.gz http://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz tar zxf ncurses-5.9.tar.gz cd ncurses-5.9/ ./configure --host=arm-none-linux-gnueabi --prefix=$DEST --without-shared --enable-widec make clean && make && make install.data pushd include; ln -fs curses.h ncurses.h; popd NCURSES=`pwd` cd .. wget -O nano-2.2.6.tar.gz http://www.nano-editor.org/dist/v2.2/nano-2.2.6.tar.gz tar zxf nano-2.2.6.tar.gz cd nano-2.2.6/ for f in doc/syntax/*.nanorc; do sed -i -e "s/\\\\>/\\\\b/g" -e "s/\\\\</\\\\b/g" $f; done ./configure --host=arm-none-linux-gnueabi --prefix=$DEST CPPFLAGS="-I$NCURSES/include" LDFLAGS="$LDFLAGS -L$NCURSES/lib" make clean && make && make install $STRIP -s -R .comment -R .note -R .note.ABI-tag $DEST/bin/* mkdir -p $DEST/etc cp doc/nanorc.sample $DEST/etc/ Packagingcd $DEST ~/bin/package.sh Final remarksReady to install versions can be found in the subpages below. Please visit the DroboSpace forums to leave your comments, suggestions and feedback. |

