aMule Forum
English => Compilation problems => Topic started by: daq on October 18, 2007, 01:06:59 AM
-
Hi, I saw a similar post from early in 2007 unfortunately solution to add wx libraries to the path didn't work for me.
wx libraries are in the path as far as I can tell. I only have wxGTK 2.8.
Here's what I get when I try to compile aMule:
./configure --disable-debug --enable-optimize --disable-monolithic --enable-amule-daemon --enable-amulecmd --enable-cas
make
I skipped a bunch of similar output with "***"
g++ -DUSE_EMBEDDED_CRYPTO -W -Wall -Wshadow -Wundef -O2 -DUSE_WX_EXTENSIONS -lpthread -o amulecmd amulecmd-TextClient.o amulecmd-ExternalConnector.o amulecmd-OtherFunctions.o amulecmd-NetworkFunctions.o -Llibs/common -Llibs/ec/cpp -lmulecommon -lec -L/usr/local/lib -pthread -lwx_baseu_net-2.8 -lwx_baseu-2.8 -lreadline -lbfd -liberty -lz
amulecmd-TextClient.o: In function `__static_initialization_and_destruction_0(int, int)':
TextClient.cpp:(.text+0x177): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
amulecmd-TextClient.o: In function `StatTree2Text(CEC_StatTree_Node_Tag*, int)':
TextClient.cpp:(.text+0x20f): undefined reference to `wxStringBase::wxStringBase(unsigned int, wchar_t)'
TextClient.cpp:(.text+0x23c): undefined reference to `operator+(wxString const&, wchar_t const*)'
TextClient.cpp:(.text+0x2f4): undefined reference to `wxStringBase::ConcatSelf(unsigned int, wchar_t const*, unsigned int)'
TextClient.cpp:(.text+0x409): undefined reference to `wxStringBase::InitWith(wchar_t const*, unsigned int, unsigned int)'
***
collect2: ld returned 1 exit status
make[3]: *** [amulecmd] Error 1
make[3]: Leaving directory `/home/daq/amule-cvs/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/daq/amule-cvs/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/daq/amule-cvs'
make: *** [all] Error 2
Any help appreciated.
P.S. Here's ls of wx bin folder:
ls -l /usr/local/bin/wx*
lrwxrwxrwx 1 root root 49 2007-10-17 15:34 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/gtk2-unicode-release-2.8
lrwxrwxrwx 1 root root 8 2007-10-17 15:34 /usr/local/bin/wxrc -> wxrc-2.8
-rwxr-xr-x 1 root root 82616 2007-10-17 15:34 /usr/local/bin/wxrc-2.8
-
Do you have compatibility to wx 2.6. activated in wx 2.8? There might be a couple of functions using the old wx api. (Which would be a problem and has to be fixed.)
-
I configured wx 2.8 with the following results:
Configured wxWidgets 2.8.6 for `i686-pc-linux-gnu'
Which GUI toolkit should wxWidgets use? GTK+ 2
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? no
Should wxWidgets be linked as a shared library? yes
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex builtin
tiff builtin
zlib sys
odbc no
expat sys
libmspack no
sdl no
-
I removed wx 2.6 (latest you can get from Suse 10.2 repos) and compiled 2.8. So now I can't run old aMule. I'd really like to get this worked out. Any other ideas?
Thanks.
-
Just in case anyone encounters a similar issue, I solved my problem by downloading wxAll. Took a little longer to compile, also takes up more space, but works well.