[sr-dev] git:master: snmpstats: fix cross-compilation
Olle E. Johansson
oej at edvina.net
Thu Apr 25 23:05:53 CEST 2013
Now I remember. It was the USE_READLINE. I did not have readline in my build environment, but on the
host Linux. The build regardless added option USE_READLINE since it was detected in a hard coded
path in the Makefile.
/O
25 apr 2013 kl. 23:03 skrev Ovidiu Sas <osas at voipembedded.com>:
> It is working fine for me. Here's what I use to cross compile for a
> different platform:
> make[3]: Entering directory
> `/home/osas/slug/optware/nslu2/builds/kamailio/utils/sercmd'
> /home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc
> -marm -march=armv5t -O9 -funroll-loops -Wall -fexpensive-optimizations
> -fomit-frame-pointer -fsigned-char -O2 -pipe
> -I/home/osas/slug/optware/nslu2/staging/opt/include
> -I/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/armv5b-softfloat-linux/include
> -DNAME='"kamcmd"' -DSRNAME='"kamailio"' -DVERSION='"0.2"'
> -DUSE_READLINE -DMOD_NAME="utils/kamcmd" -c parse_listen_id.c -o
> parse_listen_id.o -MMD -MP
> /home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc
> -marm -march=armv5t -O9 -funroll-loops -Wall -fexpensive-optimizations
> -fomit-frame-pointer -fsigned-char -O2 -pipe
> -I/home/osas/slug/optware/nslu2/staging/opt/include
> -I/home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/armv5b-softfloat-linux/include
> -DNAME='"kamcmd"' -DSRNAME='"kamailio"' -DVERSION='"0.2"'
> -DUSE_READLINE -DMOD_NAME="utils/kamcmd" -c sercmd.c -o sercmd.o -MMD
> -MP
> /home/osas/slug/optware/nslu2/toolchain/armv5b-softfloat-linux/gcc-3.3.5-glibc-2.2.5/bin/armv5b-softfloat-linux-gcc
> -Wl,-O2 -Wl,-E -L/home/osas/slug/optware/nslu2/staging/opt/lib
> -Wl,-rpath,/opt/lib
> -Wl,-rpath-link,/home/osas/slug/optware/nslu2/staging/opt/lib
> parse_listen_id.o sercmd.o -lresolv -lreadline -lncurses -o kamcmd
>
> You can see my make file here:
> http://svn.nslu2-linux.org/svnroot/optware/trunk/make/kamailio.mk
>
> For OpenWRT you could use the ddwrt feed and kamailio is already built :)
> Here's the list of all packages available for ddwrt (including all
> versions of asterisk):
> http://ipkg.nslu2-linux.org/feeds/optware/ddwrt/cross/stable/
>
> -ovidiu
>
> On Thu, Apr 25, 2013 at 4:49 PM, Olle E. Johansson <oej at edvina.net> wrote:
>>
>> 25 apr 2013 kl. 20:48 skrev Ovidiu Sas <osas at voipembedded.com>:
>>
>>> snmpstats: fix cross-compilation
>>
>> THank you!
>>
>> Can you please also look into the build process of kamcmd/sercmd.
>>
>> It failed when I tried to cross compile for OpenWRT. There is some fixed path in the make file,
>> so it looks outside the build environment. I couldn't figure out how to fix it properly.
>>
>> Thanks,
>> /O
>> _______________________________________________
>> sr-dev mailing list
>> sr-dev at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>
>
>
> --
> VoIP Embedded, Inc.
> http://www.voipembedded.com
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
More information about the sr-dev
mailing list