OpenWrt Forum Archive

Topic: No g++ for openwrt ?

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

Hi all !

I'm trying to get rva compile ( http://sourceforge.net/projects/rva ) but the configure script can not find the G++ compiler is it normal ?

I only see cpp gcc x-compiler with the openwrt buildroot, how can I remedy ?

Thanks a lot for your answer(s)

You may look into buildroot/Makefile and search those lines:

# Build/install c++ compiler and libstdc++?
#INSTALL_LIBSTDCPP:=true
INSTALL_LIBSTDCPP:=false

Cheers.

Thanks a lot, excuse me for not having seen this option smile

Btw. I just want to mention this new project.
http://cxx.uclibc.org/

I've not yet tested the bins on the router but the mipsel-uclibc++ is around 200kb and the testprograms are (all around) half the size of those build with libstdc++.

antimac

I am not that familiar with the WRT buildroot. Does this replace uclibc or is it an addition to it?

I found no configuration support for mipsel, how did you managed to compile it ?

The truth is, noone has managed it to my knowledge.
However, the fact that there is no option si simple to remedy.
in the file extra/Configs/Config.in all you have to do is uncomment the architecture you want.

The truth is, noone has managed it to my knowledge.
However, the fact that there is no option si simple to remedy.
in the file extra/Configs/Config.in all you have to do is uncomment the architecture you want.

Huh?  What coder wrote above is working fine for me.

You may look into buildroot/Makefile and search those lines:

# Build/install c++ compiler and libstdc++?
#INSTALL_LIBSTDCPP:=true
INSTALL_LIBSTDCPP:=false

Older uClibc (the one coms with the linksys tarball, for example) had lots of problems like incompatible string.h, math lib fucntion names, etc., but these were either fixed or patched in the one that the current buildroot uses.  The patches add the mipsel-uclibc target to the gcc/g++/stdlibc++, etc. configs, too.

Sorry, I was refferring to uClibc++. I also have the libstdc++ working on my setup, but at 3.2mb uncompressed, it is really a joke to put it on a WRT, so getting uClibc++ working would definately be worth something.

Cool, I am looking into this now.
Now I realize that even if I have programmed at rather sophisticated level for quite some years I have no idea how gcc actually works. How do I choose what libraries to link against? 
Finding out what gcc actually is trying to do and why seems nearly impossible.

Oh, and this error message seems rather funny:
root@OpenWrt:/mnt/ash# ipkg install uclibc++_0.1.9_mipsel.ipk
ipkg_install_file: ERROR: uclibc++ depends on the following uninstalled programs:
         uclibc++
ipkg_install_file: You may want to use `ipkg install' to install these.

The discussion might have continued from here.