OpenWrt Forum Archive

Topic: problem compiling for wr703n

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

Hi,
Once I had a wrt54gl where I installed whiterussian and was very happy that I can always start with a printf("hello world\n");

Now I have my wr703n and it seems to me not that easy to get my hello-world working. I first installed toolchain under linux (redhat) to do:

./mips-openwrt-linux-uclibc-gcc ./helloworld.c -o hw

but it didn't work, complaining that "libstdc++.so.6" is missing.

I then downloaded full SDK here:
http://downloads.openwrt.org/attitude_a … .2.tar.bz2

I then unzipped it in linux and got to:
/mnt/newhdd/wr703n/staging_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/bin

where I tried the same, and you see the same error:
http://i44.tinypic.com/55ju4x.png

Could someone kindly lead the newbie out of dark with a guide of how to compile a simple hello-world without any make just to see all working? (possibly by finding where this libstdc++.so.6 is?)

Thank you in advance.

(Last edited by Yaon on 21 Oct 2013, 16:11)

FriedZombie wrote:

The howto on crosscompiling can be found here: http://wiki.openwrt.org/doc/devel/crosscompile

https://forum.openwrt.org/viewtopic.php?id=44846 and a rather complete manual on how to make a package

Thank you for pointing to sources I'd pass through them,

just some minutes ago I solved my simple-hello-world, by just compiling openwrt for ar71xx, then got to toolchain and bin, got gcc to compile it, and it worked on my wr703n, wow :-)

now ready to pass full lessons on making a package :-)

The discussion might have continued from here.