OpenWrt Forum Archive

Topic: wxGTK/wxbase

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

Hi,
I'm start to build wxGTK for my opewrt Did some one the same before?
My final task is to run amule on my box. There are some references from SLUG box....
any help is welcome. Tnx

Look in this thread on the oleg-forum - it should helps you to build that library with openwrt:
http://wl500g.info/showthread.php?t=7789
Unfortunately amule uses crypto++. Although after minor corrections I manage to build this library using uclibc++ but it produces errors while encrypting/decrypting (some problems with streams?) , so you must build this package with libstdc++. uclibc++ is in the alpha-stage.

Also check this out (Amule-package is in the optware feed now, you can use it with openwrt): http://wiki.openwrt.org/OpenWrtDocs/Pac … a90a233c9d

Thx .  I don't like to change the current feed (openwrt). So I'm using the rc6 with its SDK.
The current status is: I compile the wxSDK without errors (I don't know if it run well) it is just a step.
But when I compile amule a lot of problems are present:

1) I discover that some path variables of wx-config of wxSDK are not well configured...
    I modify by hand these: "includedir", "libdir" and "bindir". This problem is a minor problem.

2) One host file is compiled as "mips" instead should be i386
The directory is  "aMule-2.1.3/src/libs/ec/" the result executable file is mkFileSum: the makefile repors HOSTCC as mips bla bla.... instead of gcc
Also this is a minor problem and can be fix in the next...

3) Compilation breaks on MuleDebug.cpp file.
I substitute this file with the file in the tread you suggest but after a bit the compilation break
again on file WebServer.cpp with:
OpenWrt/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../include/c++/3.4.4/cstdlib:103: error: `::malloc' has not been declared
and other similar error...
I think it is a uClib++ library problem. Is there an upgrade of such library. By using libstdc++ the uclib should be remove? in such case the other pkg will survive?

decuplo wrote:

1) I discover that some path variables of wx-config of wxSDK are not well configured...
    I modify by hand these: "includedir", "libdir" and "bindir". This problem is a minor problem.

That can be corrected with some options in the configure script.

decuplo wrote:

2)One host file is compiled as "mips" instead should be i386
The directory is  "aMule-2.1.3/src/libs/ec/" the result executable file is mkFileSum: the makefile repors HOSTCC as mips bla bla.... instead of gcc
Also this is a minor problem and can be fix in the next...

I have the same problem but it seems that it doesnt break anything.

decuplo wrote:

3)OpenWrt/OpenWrt-SDK-Linux-i686-1/staging_dir_mipsel/bin/../lib/gcc/mipsel-linux-uclibc/3.4.4/../../../../include/c++/3.4.4/cstdlib:103: error: `::malloc' has not been declared
and other similar error...

Hmm.. I haven't seen these errors. But I build the package with the optware toolchain that has been recently patched with the newest patches for uclibc++ and gcc. There were only few problems with casting.

I just ported and packaged aMule 2.1.3 and wxbase 2.8.0 for OpenWrt Kamikaze (x86-2.6 target). I'll post the makefiles and patches later after I cleaned them up. I didn't run any tests yet on my Soekris net4801 but will do it soon.

Please do NOT try to use this on a WRT54* router.

root@OpenWrt:/# amuled
23:37:51: Error: Cannot convert from the charset 'ASCII'!
amuled: OnInit - starting timer
Initialising aMule
Checking if there is an instance already running...
No other instances are running.
ERROR: Warning Warning! You are running aMule as root.
Doing so is not recommended for security reasons,
and you are advised to run aMule as an normal
user instead.
Loading temp files from //.aMule/Temp.

All PartFiles Loaded.
ListenSocket: Ok.

External connections disabled in config file
*** Server UDP socket (TCP+3) at 0.0.0.0:4665
*** TCP socket (TCP) listening on 0.0.0.0:4662
*** Client UDP socket (extended eMule) at 0.0.0.0:4672
Empty dir //.aMule/Incoming/ shared

ERROR: aMule daemon cannot be used when external connections are disabled. To enable External Connections, use either a normal aMule or set the key"AcceptExternalConnections" to 1 in the file ~/.aMule/amule.conf

Now, exiting main app...
aMule OnExit: Terminating core.
aMule shutdown completed.
root@OpenWrt:/#
root@OpenWrt:/# ldd amuled
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7fd4000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7fc2000)
        libwx_baseu_net-2.8.so.0 => /usr/lib/libwx_baseu_net-2.8.so.0 (0xb7f96000)
        libwx_baseu-2.8.so.0 => /usr/lib/libwx_baseu-2.8.so.0 (0xb7e50000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7d9f000)
        libm.so.0 => /lib/libm.so.0 (0xb7d98000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb7d8f000)
        libc.so.0 => /lib/libc.so.0 (0xb7d42000)
        libdl.so.0 => /lib/libdl.so.0 (0xb7d3f000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb7fe8000)

aMule requires lots of packages (ipkg list_installed):

amule - 2.1.3-1 -
base-files-x86-2.6 - 8-6104 -
bridge - 1.0.6-1 -
busybox - 1.3.1-1 -
curl - 7.14.0-1 -
dnsmasq - 2.35-1 -
dropbear - 0.48.1-1 -
iptables - 1.3.5-1 -
kernel - 2.6.19.1-x86-1 -
kmod-ipt-nathelper - 2.6.19.1-x86-1 -
kmod-madwifi - 2.6.19.1+0.9.2.1-x86-1 -
kmod-natsemi - 2.6.19.1-x86-1 -
kmod-ppp - 2.6.19.1-x86-1 -
kmod-pppoe - 2.6.19.1-x86-1 -
libcurl - 7.14.0-1 -
libexpat - 1.95.8-1 -
libgcc - 4.1.1-8 -
libgd - 2.0.33-2 -
libjpeg - 6b-1 -
libopenssl - 0.9.8d-1 -
libpng - 1.2.8-1 -
libpthread - 0.9.28-8 -
libreadline - 5.1-1 -
uclibc - 0.9.28-8 -
wireless-tools - 28-1 -
wxbase - 2.8.0-1 -
zlib - 1.2.3-3 -
Done.

(Last edited by forum2006 on 16 Jan 2007, 00:03)

Here is the patch to add aMule 2.1.3 (use this patch at your own risk). The patch is created from OpenWrt Kamikaze r6104.

Ticket #1248

The patch adds the following packages:
- wxbase
- amule
- libstdc++

At the moment I don't have spare time to fix the remaining issues. If you like fix it.

Do NOT try to load it on routers with just 4 or 8MB flash.

(Last edited by forum2006 on 23 Jan 2007, 23:24)

tnx. I'll try to apply the path in next days.

Ok, after a lot of thinking I decide to migrate to kamikaze. I hope that packages I need are stable.
I plan several step to migrate, after that I'll download also wxGTK with amule.
1) build a sdk for kamikaze
2) try to arrange one image like pptp of rc6 whiterussian for my router (without download it) just to see if success
3) with the SDK for kamikaze try to build wxGTK and amule if this success then:

4) download the image on the router and configure it
5) add the hard disk to usb and configure to have the startup on the hard disk
6) download the wxGTK and amule. hoping to success
Let's start to enjoy.

The discussion might have continued from here.