Problem building CoovaChilli with Ubiquiti SDK

Hi all,

I've been trying to build a firmware image for a Nanostation2, using the instructions provided on Ubiquiti's wiki for setting up the build environment, and the ones found on the wiki here. When it comes to build coova-chilli, the build runs into problems. First, it was this:

make[3]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps/gpl/dropbear'
( cd coova-chilli && touch configure && rm -f config.cache && \
LDFLAGS="" \
CFLAGS="" \
CC="/opt/toolchain/mips_ls/bin/mips-linux-gcc" \
AR="/opt/toolchain/mips_ls/bin/mips-linux-ar" \
LD="/opt/toolchain/mips_ls/bin/mips-linux-ld" \
CXX="/opt/toolchain/mips_ls/bin/mips-linux-g++" \
RANLIB="/opt/toolchain/mips_ls/bin/mips-linux-ranlib" \
PREFIX=/home/mike/Devel/SDK.UBNT.v3.5.4499/rootfs/ROOT \
EPREFIX=/home/mike/Devel/SDK.UBNT.v3.5.4499/rootfs/ROOT \
./configure --prefix= \
--host=mips-linux \
--build=i686-linux \
--enable-shared \
--enable-chilliproxy \
--enable-miniportal \
--enable-binstatusfile \
&& touch .configured)
/bin/sh: ./configure: Permission denied
make[2]: *** [coova-chilli/.configured] Error 126
make[2]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps/gpl'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps'
make: *** [xs2] Error 1

I tried to manually touch 'configure' and 'configured', and set them to be executable (of course they are empty, but I assumed they would be filled during the build process). However, this then happened:

make[3]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps/gpl/dropbear'
( cd coova-chilli && touch configure && rm -f config.cache && \
LDFLAGS="" \
CFLAGS="" \
CC="/opt/toolchain/mips_ls/bin/mips-linux-gcc" \
AR="/opt/toolchain/mips_ls/bin/mips-linux-ar" \
LD="/opt/toolchain/mips_ls/bin/mips-linux-ld" \
CXX="/opt/toolchain/mips_ls/bin/mips-linux-g++" \
RANLIB="/opt/toolchain/mips_ls/bin/mips-linux-ranlib" \
PREFIX=/home/mike/Devel/SDK.UBNT.v3.5.4499/rootfs/ROOT \
EPREFIX=/home/mike/Devel/SDK.UBNT.v3.5.4499/rootfs/ROOT \
./configure --prefix= \
--host=mips-linux \
--build=i686-linux \
--enable-shared \
--enable-chilliproxy \
--enable-miniportal \
--enable-binstatusfile \
&& touch .configured)
make -C coova-chilli
make[3]: Entering directory `/home/mike/Devel/coova-chilli'
make[3]: *** No targets specified and no makefile found. Stop.
make[3]: Leaving directory `/home/mike/Devel/coova-chilli'
make[2]: *** [coova-chilli] Error 2
make[2]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps/gpl'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/mike/Devel/SDK.UBNT.v3.5.4499/apps'
make: *** [xs2] Error 1

Does anyone have any suggestions as to why this is happening?

Cheers,

Mike

Well, I seem to have fixed

Well, I seem to have fixed it. Before running make again, I ran sh bootstrap2 in the coova-chilli directory. Note that this step is MISSING from both:

http://www.coova.org/node/3685

and the makefile/patches/whatever (I don't have time to go looking for it, after three solid days trying to get this NS2 to run chilli one way or another). Someone please update to account for this. After running bootstrap2 the build went fine.

Cheers,

Mike

Same issue

Hi

I've been having the same issue, what was the syntax for running "sh bootstrap2" in the coova-chilli directory?

Thanks

Rob

I'm glad you got it worked

I'm glad you got it worked out!

Yes, the bootstrap script is needed for when using the subversion code. It isn't needed if you start with a distribution tarball.