OpenWrt Forum Archive

Topic: i need a "step-by-step howto" to compile some apps

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,

howto compile for the FONERA Box Midnight Commander + glib 1.2 or any other ???

sources:
http://www.ibiblio.org/pub/Linux/utils/ … 6.1.tar.gz
ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.10.tar.gz
http://download.fon.com/firmware/fonera … ra.tar.bz2

my hostsystem is debian 3.1 and the fonera source is allready compiled.

BusyBox v1.1.3 (2006.09.11-19:54+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

     _______  _______  _______  _______  _______  _______
La |   ____||       ||   _   ||   ____||   ____||   _   |
    |   ____||   -   ||  | |  ||   ____||   _   ||   _   |
    |   |    |_______||__| |__||_______||__| |__||__| |__|
    |___|

La Fonera Firmware (Version 0.7.1 rev 2 - AddOns 0.8.0)

                 Based on OpenWrt - http://openwrt.org
                   Powered by FON - http://www.fon.com
Enhanced by German FON-Community - http://www.freewlan.info
-----------------------------------------------------------
root@OpenWrt:~# uname -a
Linux OpenWrt 2.4.32 #10 Tue Sep 12 17:41:46 UTC 2006 mips unknown
root@OpenWrt:~#

any step-by-step guide to compile some apps aviable?

/mfg tc2k7
thanks in advance

Sorry, no support here for the Fonera firmware here.

We can help if you flash a Kamikaze Atheros [2.6] image to your fonera. Then it's easy to cross-compile programs using the build-system or the SDK.

forum2006 wrote:

Sorry, no support here for the Fonera firmware here.

We can help if you flash a Kamikaze Atheros [2.6] image to your fonera. Then it's easy to cross-compile programs using the build-system or the SDK.

different are only the kernel-version...
i dont want pre-compiled apps..
the way to compile apps it's the same for fonera build (based on openwrt)...

/mfg tc2k7

(Last edited by tc2k7 on 7 Apr 2007, 11:00)

Well, I've flashed the fonera with the kamikaze atheros 2.6 image, and that works fine. I've also downloaded the SDK for the atheros, and compiled some software for it (TinyFugue 5). The only problem I get is that for some reason, the file does not run on the fonera... I always get the same message:

# ./tf
-ash: ./tf: Text file busy

I guess this means that it's compiled wrongly for some reason, but I can't figure out why it's compiled wrongly....

The SDK I used was: OpenWrt-SDK-Linux-i686-1.tar.bz2 with the mipsel-linux-uclibc-gcc compiler...

I needed to edit the default makefile a bit because it runs some commands during compilation to create some additional files. The files needed to be executed during compilation I had compiled using gcc, so they'd run on my linux-machine, but the rest were done using mipsel-linux-uclibc-gcc.

Edit: I think I found the problem.....also found the OpenWrt-SDK-atheros-2.6-for-Linux-i686 SDK.....trying.

Edit 2: Ok, still doesn't work, same error message...

Sar

(Last edited by sariel on 13 Apr 2007, 15:57)

Anyone willing to explain how to cross-compile on an intel machine for an atheros machine?

Thanks, will keep trying smile

Well, finally I figured out how to compile a program for openwrt.......

Steps:
- Download the SDK (http://downloads.openwrt.org/snapshots/ … 86.tar.bz2)
- Download the software you want to compile for the Atheros
- Extract the SDK
- export PATH=$PATH:/path/to/where/the/sdk/is/staging_dir_mips/bin/:/path/to/where/the/sdk/is/staging_dir_mips
- configure the software you want to compile (./configure --host=mipsel-linux or ./configure --host=mipsel-linux-uclibc)
- check for possible executing of programs on the local machine by either checking the makefile or by using make.
   - if any are found, let the executed programs be compiled with gcc, leave the rest unmodified.
- make sure to compile the programs with the -static gcc parameter (yeah, it becomes bigger then)
- make
- use mipsel-linux-strip or mipsel-linux-uclibc-strip on the resulting executable (depending on which build-platform you used)
- scp the file to your Atheros
- Run it smile

Not the easiest way to do it, but it beats the method written down above (http://nbd.name/openwrt.html) because I was totally lost when trying that.

(Last edited by sariel on 26 Apr 2007, 09:31)

- Download the SDK (http://downloads.openwrt.org/snapshots/ … 86.tar.bz2)

Seems this .tar.bz2 is gziped after b2ziped but no named.

to uncompress:
mv OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2 OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2.gz
gunzip OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2.gz
tar -xjf OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2

hi
would someone tell me how to install midniht commander on OpenWrt on Asus 500gPremium on OpenWrt Kamikaze 7.09

a have pendrive and download source of mc from page "ibillo"
then a go to this folder a write ./configure and a have a bad warning


checking for a BSD-compatible install... config/install-sh -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... config/config.guess: unable to guess system type

This script, last modified 2004-03-03, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

    ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (config/config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2004-03-03

uname -m = mips
uname -r = 2.4.34
uname -s = Linux
uname -v = #18 Mon Nov 26 17:48:54 CST 2007

/usr/bin/uname -p =
/bin/uname -X     =

hostinfo               =
/bin/universe          =
/usr/bin/arch -k       =
/bin/arch              =
/usr/bin/oslevel       =
/usr/convex/getsysinfo =

UNAME_MACHINE = mips
UNAME_RELEASE = 2.4.34
UNAME_SYSTEM  = Linux
UNAME_VERSION = #18 Mon Nov 26 17:48:54 CST 2007
configure: error: cannot guess build type; you must specify one


and configurig i stoped hmm
would you help me please
what i supose to do
what i must specyfy and how

sory for my english

(Last edited by WaLeC on 10 Jan 2008, 09:53)

The discussion might have continued from here.