http://lists.busybox.net/pipermail/b...st/000145.html
http://old.nabble.com/gcc-4.1.1-and-...td5744269.html
Exceptions are not working in optware's buildroot package's gcc.
How can I in other way compile my program?
http://lists.busybox.net/pipermail/b...st/000145.html
http://old.nabble.com/gcc-4.1.1-and-...td5744269.html
Exceptions are not working in optware's buildroot package's gcc.
How can I in other way compile my program?
Ok, so how can i use it?
Can you give me some tips or links?
My programs Makefile looks like that
How can i compile it with that toolchain?Code:CC=g++ CFLAGS=-c -g LDFLAGS=-lsqlite3 -lcurl -lpthread SOURCES=main.cc CppSQLite3.cc addons.cc 4chan.cc md5.cc baza.cc OBJECTS=$(SOURCES:.cc=.o) EXECUTABLE=skit all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cc.o: $(CC) $(CFLAGS) $< -o $@ clean: rm -rf $(OBJECTS) $(EXECUTABLE)
I builded it with binary from hndtools-mipsel-uclibc/bin and "./program: can't load library 'libstdc++.so.6'"
hndtools-mipsel-uclibc-4.3.5/mipsel-linux-uclibc/bin "g++: error trying to exec 'cc1plus': execvp: No such file or directory"
I am a completely newbie when it comes to compile anything under Linux.
Last edited by Lesiuk; 23-06-2010 at 12:46.
presuming you have the toolchain installed: http://code.google.com/p/wl500g/wiki...CustomFirmware
you can directly link CC to the c++ compiler in the folder /opt/brcm/hndtools-mipsel-uclibc/bin/g++ (I believe, I'm not on linux right now, so you might need to check that)
or if you've exported the path you can just do
CC=mipsel-linux
(I thought)
anyway, you might need to compile other libraries as well, since the toolchain doesn't use libraries from your linux distro you're working on.Code:CC=/opt/brcm/hndtools-mipsel-uclibc/bin/g++ CFLAGS=-c -g LDFLAGS=-lsqlite3 -lcurl -lpthread SOURCES=main.cc CppSQLite3.cc addons.cc 4chan.cc md5.cc baza.cc OBJECTS=$(SOURCES:.cc=.o) EXECUTABLE=skit all: $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC) $(LDFLAGS) $(OBJECTS) -o $@ .cc.o: $(CC) $(CFLAGS) $< -o $@ clean: rm -rf $(OBJECTS) $(EXECUTABLE)
buildroot is not really complete for c++, but ordinary c works pretty good
hello,
i'm trying to build the firmware from source for wl500gx, since it's not included in core.dumped.ru - by the way - who can i ask to provide builds for this platform since here in Romania there are still plenty of second hand units to buy on online markets okazii.ro
So i get the following error in the lasts step on "make" command in /gateway folder:
that's happening since I've downloaded also the rtn branch and tried to build the k26 for gx. the cuurrent svn is 1722Code:decompress.c:35:24: error: LzmaDecode.h: No such file or directory decompress.c:90: error: expected declaration specifiers or '...' before 'UInt32' decompress.c: In function 'read_byte': decompress.c:99: error: 'bufferSize' undeclared (first use in this function) decompress.c:99: error: (Each undeclared identifier is reported only once decompress.c:99: error: for each function it appears in.) decompress.c:102: error: 'LZMA_RESULT_OK' undeclared (first use in this function) decompress.c: In function 'get_byte': decompress.c:108: error: 'UInt32' undeclared (first use in this function) decompress.c:108: error: expected ';' before 'fake' decompress.c:110: error: 'fake' undeclared (first use in this function) decompress.c:110: error: too many arguments to function 'read_byte' decompress.c: In function 'entry': decompress.c:119: error: 'CLzmaDecoderState' undeclared (first use in this function) decompress.c:119: error: expected ';' before 'vs' decompress.c:120: error: 'ILzmaInCallback' undeclared (first use in this function) decompress.c:120: error: expected ';' before 'callback' decompress.c:124: error: 'callback' undeclared (first use in this function) decompress.c:136: error: 'vs' undeclared (first use in this function) decompress.c:136: warning: left-hand operand of comma expression has no effect decompress.c:136: warning: value computed is not used decompress.c:137: warning: left-hand operand of comma expression has no effect decompress.c:153: error: 'CProb' undeclared (first use in this function) decompress.c:153: error: expected expression before ')' token decompress.c:155: warning: implicit declaration of function 'LzmaDecode' decompress.c:156: error: 'LZMA_RESULT_OK' undeclared (first use in this function) make[1]: *** [decompress.o] Error 1 make[1]: Leaving directory `/whatever-you-want/broadcom/src/gateway/loader' make: *** [loader] Error 2
but i've deleted the gateway folder and run make again in 1.9.2.7-d folder
I've previously build d1705 with success
thanks
LATER EDIT:
My mistake, i had both rtn and d in the same src folder :P
Last edited by maurer; 02-07-2010 at 15:20. Reason: fix