OpenWrt Forum Archive

Topic: Trying to compile for OpenWRT

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

I'm trying to compile oww with libghttp using the WhiteRussian RC2 SDK.  I'm not trying to build packages, as I'm feeling particularly lazy today smile  However, I can't quite figure out how to get the configure scripts and makefiles to make use of the correct libraries and utilities from the SDK.  This is really my first foray into any kind of non-conventional software compiling, so please, go easy on me smile  Will I have better luck with the WhiteRussian BuildRoot package, or does the SDK have everything I need, and I've just not figured things out yet?

What I've tried so far...
./configure -host mipsel-linux
Editing the Makefiles, changing "prefix" from "/usr/local" to "/home/myhome/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel"

Without the makefile change, things compile, but when I execute owwnogui on my WRT54G, I get:

root@OpenWrt:~# ./owwnogui
./owwnogui: 1:EL4à: not found
./owwnogui: 2:4à: not found
./owwnogui: 3:4à: not found
./owwnogui: 4: à: not found
./owwnogui: 5: Syntax error: "(" unexpected
root@OpenWrt:~#

With the makefile change, a compile attempt fails with "libtool: link: only absolute run-paths are allowed"

Thoughts?  Any other info needed?

Ok, I got oww to compile, and it runs happily on my WRT54GS (compile issues were a problem with my path settings).  However, I'm still unable to get libghttp to compile for OpenWRT.  Can someone give me a hand with this?

The discussion might have continued from here.