[HOW TO] Compile a program for your router
To use this how to, you have to use a set up like in the how to from wengi or something similair.
This is the way to compile a package on Oleg, I''m still trying to do one on puppylinux (or others) with the tool chain.
All the credits to Dr.Chair who explained it to me:)
first step:
make sure everything is updated
choose "N" if promted with a question
Quote:
ipkg update
ipkg upgrade
now we have to install some packages, about 80MB!:eek:
Quote:
ipkg install optware-devel
ipkg install buildroot
if you get any errors, try the command again or use
behind the commands
Now we need a package to compile, I changed dosbox to apache in this tutorial because I couldn''t get dosbox working.
Apache also would be more usefull
Download the source (or search for a recent version) here:
http://www.apache.org/dist/httpd/httpd-2.2.8.tar.bz2
Open the file with winrar and copy the files via samba on your disc.
Note that you can also unpack this file on the router (not explained here)
I''ve uploaded the file to /mnt/share/apache
cd to the directory
Quote:
cd /mnt/share/apache
you need an additional packages for apache to make the compile successfull, check the manual of the program you want to compile wich package it needs and search for it on ipkgfind
Quote:
ipkg install apr
ipkg install apr-util
ipkg install e2fsprogs
ipkg install expat
ipkg install openssl
ipkg install zlib
ipkg install openldap-libs
now we can finally hit the configure:
This took me about half a hour
Quote:
./configure --prefix=/opt
now make the files:
and make install:)
well... basicly this is the way you should compile on the router.
In my next post I will try to tell you how to do it on ubuntu and puppy linux, or other distributions.
have fun:D