[Olsr-dev] sgwdynspeed do not compiles on OpenWRT Backfire

ZioPRoTo (Saverio Proto) (spam-protected)
Sun Jun 3 16:41:58 CEST 2012


Quickly I do like this:

git clone  git://nbd.name/backfire.git
git clone git://github.com/ninuxorg/ninux-openwrt-packages.git packagesninux-git

(do git checkout of the branch olsr_0_6_3-makefile from my repository)

in feeds.conf.default

put a line that looks like this:
src-link zpackagesninux /home/saverio/SORGENTI/packagesninux-git

then go in the backfire folder and do:

./scripts/feeds update && ./scripts/feeds install olsrd-ninux

this will install the package in the build system

then:

make menuconfig

select the package olsrd-ninux from the menu network->routing and redirection

to compile the all firmware make V=99 (the first time you have to do
this to create the toolchain)

for later tests it is enough to build just the olsrd-ninux package:

 make package/feeds/zpackagesninux/olsrd-ninux-clean V=99
 make package/feeds/zpackagesninux/olsrd-ninux-compile V=99

Saverio





2012/6/3 Ferry Huberts <(spam-protected)>:
> can someone give me instructions on how to setup a cross-compilation
> environment for openwrt?
>
> PS. from my header file it seems that openwrt needs to define:
>  #if defined __USE_MISC || defined __USE_XOPEN2K8
>
>
> On 03-06-12 14:40, ZioPRoTo (Saverio Proto) wrote:
>>
>> Hello,
>>
>> yet another stuff to fix before releasing 0.6.3
>>
>> I upgraded my OpenWRT Makefile to compile all the new plugins:
>>
>>
>> https://github.com/ninuxorg/ninux-openwrt-packages/commit/83b82ca506efa06a9250129cc06cdfc6962176a5
>>
>> The build process fails here:
>>
>> make[4]: Entering directory
>>
>> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
>> make[4]: Leaving directory
>>
>> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
>> make[4]: Entering directory
>>
>> `/home/saverio/SORGENTI/backfire-git/build_dir/target-mips_r2_uClibc-0.9.30.1/olsrd-ninux-0.6.2-pre/lib/sgwdynspeed'
>> [CC] src/configuration.c
>> [CC] src/olsrdPlugin.c
>> [CC] src/sgwDynSpeed.c
>> [CC] src/speedFile.c
>> src/speedFile.c: In function 'readSpeedFile':
>> src/speedFile.c:178: error: 'struct stat' has no member named 'st_mtim'
>> src/speedFile.c:188: error: 'struct stat' has no member named 'st_mtim'
>> make[4]: *** [src/speedFile.o] Error 1
>>
>> do we have some other OpenWRT package to include ?
>>
>> Saverio
>>
>> PS after writing this email a noticed that I forgot to add the pud
>> plugin ! I will test it soon
>>
>
> --
> Ferry Huberts




More information about the Olsr-dev mailing list