I'm trying to do the hello world sample using the following url (http://gargoyle-router.com/wiki/doku.ph ... wrt_coding), but when I run the OpenWrt-SDK show me the following error
anyone tried and sucess this sample, ???
or someone how can help me thanks
"
make -C helloworld compile
Rebuilding /home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/bin/packages/helloworld_1_mipsel.ipk
make[4]: Entering directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/package/helloworld'
CFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include " LDFLAGS="-L/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/lib -L/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/lib " make -C /home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/build_mipsel/helloworld AR=mipsel-linux-uclibc-ar AS="mipsel-linux-uclibc-gcc -c -Os -pipe -mips32 -mtune=mips32 -funit-at-a-time" LD=mipsel-linux-uclibc-ld NM=mipsel-linux-uclibc-nm CC="mipsel-linux-uclibc-gcc" GCC="mipsel-linux-uclibc-gcc" CXX=mipsel-linux-uclibc-g++ RANLIB=mipsel-linux-uclibc-ranlib STRIP=mipsel-linux-uclibc-strip OBJCOPY=mipsel-linux-uclibc-objcopy CROSS="mipsel-linux-uclibc-" CXXFLAGS="-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time -I/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/usr/include -I/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/include " ARCH="mipsel" ;
make[5]: Entering directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/build_mipsel/helloworld'
makefile:4: *** missing separator. Stop.
make[5]: Leaving directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/build_mipsel/helloworld'
make[4]: *** [/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/build_mipsel/helloworld/.built] Error 2
make[4]: Leaving directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/package/helloworld'
make[3]: *** [helloworld-compile] Error 2
make[3]: Leaving directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/package'
make[2]: *** [compile] Error 2
make[2]: Leaving directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/vadmin/Documents/OpenWrt-SDK-Linux-i686-1'
make: *** [world] Error 2
vadmin@vadmin:~/Documents/OpenWrt-SDK-Linux-i686-1$
"
Issues
Moderator: Moderators
Re: Issues
I have done this. I am not sure what your facing there but looks like something is amiss in your makefile.
I attached mine (that worked) so you can compare.
Good luck
I attached mine (that worked) so you can compare.
Good luck
Code: Select all
# build helloworld executable when user executes "make"
helloworld: helloworld.o
$(CC) $(LDFLAGS) helloworld.o -o helloworld
helloworld.o: helloworld.c
$(CC) $(CFLAGS) -c helloworld.c
# remove object files and executable when user executes "make clean"
clean:
rm *.o helloworld
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM