macsat.com OpenWrt and ASUS WL Forum
December 05, 2008, 14:31:19 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Cross compilation  (Read 816 times)
0 Members and 1 Guest are viewing this topic.
gea
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: November 19, 2007, 23:18:12 PM »


Hi,

I want to compile a program for OpenWRT.The programa is this:

http://ouaye.net/linknx/OpenWRT-WhiteRu … an-rc6.tgz

I've done an script with this:

#!/bin/sh

export PATH=/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/usr/bin:/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/mipsel-linux-uclibc:/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/bin:$PATH
export AR=/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/bin/mipsel-linux-uclibc-ar
export AS=/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/bin/mipsel-linux-uclibc-as
export LD=/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/bin/mipsel-linux-uclibc-ld
export NM=/home/roberto/OpenWrt-SDK-brcm-2.4-for-Linux-i686/staging_dir_mipsel/bin/mipsel-linux-uclibc-nm
export CC=mipsel-linux-uclibc-gcc
export CPP=mipsel-linux-uclibc-cpp
export GCC=mipsel-linux-uclibc-gcc
export CXX=mipsel-linux-uclibc-g++
export RANLIB=mipsel-linux-uclibc-ranlib
export ac_cv_linux_vers=2.4.30
export LDFLAGS="-static"
export CFLAGS="-Os -s"

./configure --host=mipsel-linux && make

I'mnot sure,but I suppose I have to put the script in the same directory where my program is,or do I have to put it in the OpenWrt-SDK-brcm-2.4-for-Linux-i686 directory?
When I execute the script, the output is:

eibd_script.sh: 17: ./configure: not found

Thanks
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.068 seconds with 24 queries.