aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compile error: unicode not enabled in wxGTK  (Read 3367 times)

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Compile error: unicode not enabled in wxGTK
« on: March 16, 2006, 11:32:26 AM »

At first some Information:
wxGTK
Code: [Select]
~> ls -l /usr/bin/wx*
lrwxrwxrwx    1 root     root           39 2006-03-16 11:00 /usr/bin/wx-config -> /usr/lib/wx/config/gtk-ansi-release-2.6
lrwxrwxrwx    1 root     root            8 2006-03-16 11:00 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x    1 root     root        81608 2006-01-08 00:01 /usr/bin/wxrc-2.6
~> ls -l /usr/local/bin/wx*
ls: /usr/local/bin/wx*: Datei oder Verzeichnis nicht gefunden
~> rpm -qa | grep wx
aMule-wxGTK-2.6.1-1

I tried to compile the CVS (15.03.05), but configure
Quote
./configure --enable-amulecmd --enable-webserver --disable-monolithic --enable-amule-daemon
gives an error:
Quote
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... bison -y
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.1.4)
checking for gdlib-config... /usr/bin/gdlib-config
checking for gdlib version >= 2.0.0... yes (version 2.0.11)
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.5)
checking for gd.h... (cached) yes
checking whether we need the GUI... no
checking for wx-config... /usr/bin/wx-config
checking for wxWidgets version >= 2.6.0... yes (version 2.6.1)
checking for wxWidgets static library... no
checking that wxWidgets has support for large files... yes
checking that wxWidgets was compiled with unicode support... no
configure: error:
                Support for unicode in wxWidgets is required by aMule.
                To continue you must recompile wxWidgets with support for
                unicode enabled (with the --enable-unicode flag). If this
                still doesn't work, chances are you are using GTK1, which
                has no unicode support. You must use the --enable-gtk2 flag
                on wxWidgets configure script then.


wxGTK comes from rpm-package, so I can't recompile it. I was very happy to get a rpm because compiling wxGTK was a neverending story - I never was successful.

Is there still a chance to get amule compiled with the installed wxGTK?
Logged

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
RE: Compile error: unicode not enabled in wxGTK
« Reply #1 on: March 16, 2006, 12:02:55 PM »

Quote
Originally posted by TheOnlyFish
wxGTK comes from rpm-package, so I can't recompile it.
Then you're unlucky, because you must recompile it.
Quote
Originally posted by TheOnlyFish
Is there still a chance to get amule compiled with the installed wxGTK?
No. Either recompile it with "--enable-unicode" or search for another RPM. I don't believe you will find many for such an old system, but you can try anyway.

What's the exact problem you had when compiling wxGTK? Maybe it can be fixed more easily than you think.
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Compile error: unicode not enabled in wxGTK
« Reply #2 on: March 16, 2006, 02:59:21 PM »

You can compile amule 2.1.0 with it, that didn't require unicode. However that is only a temporary solution since future versions (just like SVN now) *will* require unicode.

You might want to check this thread, there are amule & wx rpms for Suse 8.2. But I have no idea if that wx is compiled with unicode support...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Compile error: unicode not enabled in wxGTK
« Reply #3 on: March 17, 2006, 08:12:54 AM »

Ok, thanks for your help.

Probably I will compile wxGTK from sources. Seems to be the clean solution.

(@thedude: my wxGTK-rpm is just from this thread, but unicode is not supported in this suse rpms)

But first , I try to compile amule from CVS-sources ignoring the configure-error.

make says (this is just the end of make-output)
Quote
/home/jh/my/amule/amule-cvs-1503/src/libs/common/StringFunctions.cpp:178: undefined reference to `operator+(wxString const&, wchar_t)'
../../libs/common/libmulecommon.a(libmulecommon_a-StringFunctions.o)(.text+0xebd): In function `__static_initialization_and_destruction_0':
/home/jh/my/amule/amule-cvs-1503/src/libs/common/StringFunctions.h:79: undefined reference to `wxCSConv::wxCSConv[in-charge](wchar_t const*)'
../../libs/common/libmulecommon.a(libmulecommon_a-StringFunctions.o)(.gnu.linkonce.t._ZNK8wxString8ContainsERKS_+0x1c): In function `wxString::Contains(wxString const&) const':
/usr/include/wx-2.6/wx/string.h:706: undefined reference to `wxString::Find(wchar_t const*) const'
collect2: ld returned 1 exit status
make[4]: *** [amuleweb] Fehler 1
make[4]: Leaving directory `/home/jh/my/amule/amule-cvs-1503/src/webserver/src'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/home/jh/my/amule/amule-cvs-1503/src/webserver'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/jh/my/amule/amule-cvs-1503/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/jh/my/amule/amule-cvs-1503'
make: *** [all] Fehler 2

I'm confused. The error message gives no hints to me. Does anybody know whats wrong?
« Last Edit: March 17, 2006, 08:14:42 AM by TheOnlyFish »
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Compile error: unicode not enabled in wxGTK
« Reply #4 on: March 17, 2006, 08:33:06 AM »

The configure error about unicode is there for a reason. It's not because we recommend unicode but because you *need* it in order to compile amule. Period.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

TheOnlyFish

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 33
Re: Compile error: unicode not enabled in wxGTK
« Reply #5 on: March 17, 2006, 09:03:25 AM »

Ok then, I'm in need of a new wxGTK. I will open a new thread if I can't compile it without help.

Thanks
Logged