LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2010, 03:51 PM   #1
kevinx17910
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Rep: Reputation: 0
Exclamation How can I cross-compile a program for my openwrt router?


Hi,

I am new to Linux and the whole programming world. I want to compile a program with the source I already have but I have to add an option.

When I run the command ./autogen.sh the terminal returns aclocal not found. Is it a package or something i have to install?

Please guide me through the process as many guides are confusing.

Any help would be very very much appreciated!
 
Old 11-15-2010, 08:40 PM   #2
flakblas
Member
 
Registered: Jun 2009
Location: Maryland
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 41

Rep: Reputation: 3
Try
Code:
yum install automake
 
Old 11-15-2010, 11:43 PM   #3
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

"automake" is a good start, but not sufficient. Please look here:

http://www.linuxquestions.org/questi...7/#post4159934
 
Old 11-16-2010, 05:08 PM   #4
kevinx17910
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Exclamation

Hi,

I tried ./autogen.sh becuase I think thats the only way to go (please advice me if there are any other ways)and ./configure but many errors showed up. I have also tried the openwrt sdk but it didnt work.

Any help please?!
 
Old 11-16-2010, 05:48 PM   #5
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Install the aclocal macros package.
 
Old 11-17-2010, 06:38 AM   #6
kevinx17910
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
thx for all the help. I solved the aclocal problem by installing libtools.

Does anyone know how to build a gcc 4.3.3 for target ar71xx?

Thx
 
Old 11-17-2010, 02:07 PM   #7
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Yes:
Quote:
How to Cross-compile for OpenWRT

Hi -

Eric Bishop wrote a great tutorial several years ago. The original site moved; here's it's current location:

http://www.gargoyle-router.com/wiki/...openwrt_coding

https://forum.openwrt.org/viewtopic.php?id=12247

http://downloads.openwrt.org/docs/bu...mentation.html
'Hope that helps!
 
  


Reply

Tags
compiling, openwrt


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vpnc + adding routes for VPN machine on OpenWRT router morphix Linux - Networking 2 09-15-2010 07:53 PM
Which current model ADSL modem router for DD-WRT, OpenWRT or Tomato? catkin Linux - Networking 4 03-25-2010 04:23 PM
how to cross compile linux program on window platform. anshexp Linux - Software 2 07-15-2009 12:25 PM
use ipv6 OpenWrt router with Debian donnied Linux - Networking 1 07-20-2008 09:17 AM
LXer: X-Wrt extends OpenWrt router firmware LXer Syndicated Linux News 0 06-18-2007 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration