OpenWrt Forum Archive

Topic: weechat cross-compilation

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

hello, i see that you've got weechat on your repository at:
http://downloads.openwrt.org/kamikaze/packages/mipsel
that you've got weechat...

how did you compile it...
i tried to cross-compile it manually with the help from a friend and the IRC but it didn't work because it required too much hacks...

then i download the build system doing :
$ svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze

but weechat is not included in the build system:
# ls
acx               bridge-utils   fonera-mp3-drv  ifenslave         keynote    mtd         pptp          strongswan
acx-mac80211      broadcom-diag  foxboard-utils  ifxmips_adsl      libertas   ncurses     qc-usb        switch
admswconfig       broadcom-mmc   fuse            iproute2          libjson-c  nozomi      qos-scripts   udev
alsa              broadcom-wl    gdbserver       ipsec-tools       libnl      nvram       robocfg       util-linux-ng
aodv-uu           busybox        gmp             ipset             libpcap    nw802-2.4   rt2500        wireless-tools
ar7-atm           comgt          grub            iptables          libtool    openssl     rt2570        wlcompat
arptables         dnsmasq        gspcav1         isakmpd           linux-atm  openswan    rt2x00        wpa_supplicant
b43               dropbear       hostapd         iw                linux-uvc  ov51x-jpeg  rt61          yamonenv
base-files        e2fsprogs      hostap-driver   ixp4xx-microcode  mac80211   p54         shfs          zd1211-driver
bcm43xx-mac80211  ebtables       hostap-utils    kernel            madwifi    pcmcia-cs   spca5xx-le    zd1211-firmware
br2684ctl         fonera-mp3     hotplug2        kexec-tools       Makefile   ppp         spca5xx-view  zlib



i'd like to be able to cross-compile it?
how did you suceed at cross-compiling it?

by the way i have the following problem with the build system:

/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/mipsel-linux-uclibc/libstdc++-v3/include/ext/stdio_sync_filebuf.h:172: error: there are no arguments to 'ftello64' that depend on a template parameter, so a declaration of 'ftello64' must be available
make[8]: *** [globals_io.lo] Error 1
make[8]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/mipsel-linux-uclibc/libstdc++-v3/src'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/mipsel-linux-uclibc/libstdc++-v3'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final/mipsel-linux-uclibc/libstdc++-v3'
make[5]: *** [all-target-libstdc++-v3] Error 2
make[5]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/build_dir/toolchain-mipsel_gcc4.1.2/gcc-4.1.2-final'
make[3]: *** [/home/gentux/dev/embedded/wrt/openwrt/kamikaze/staging_dir/toolchain-mipsel_gcc4.1.2/stamp/.gcc_installed] Error 2
make[3]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze/toolchain/gcc'
make[2]: *** [toolchain/gcc/install] Error 2
make[2]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze'
make[1]: *** [/home/gentux/dev/embedded/wrt/openwrt/kamikaze/staging_dir/mipsel/stamp/.toolchain_install] Error 2
make[1]: Leaving directory `/home/gentux/dev/embedded/wrt/openwrt/kamikaze'
make: *** [world] Error 2

Start with a fresh, clean build

cd ~
rm -rf kamikaze/
svn checkout https://svn.openwrt.org/openwrt/trunk kamikaze/
cd ~/kamikaze/
./scripts/feeds update
make defconfig
make package/symlinks
make menuconfig
make world

Weechat is located in menuconfig -> Network -> Instant Messaging

user@host-laptop:~/kamikaze$ ./scripts/feeds search weechat
Search results in feed 'packages':
weechat                         Lightweight IRC client
weechat-mod-charset             Lightweight IRC client (charset plugin)
weechat-mod-lua                 Lightweight IRC client (LUA plugin)
user@host-laptop:~/kamikaze$

Though, no idea if it builds in latest trunk...

(Last edited by forum2008 on 5 Jan 2008, 00:29)

The discussion might have continued from here.