aMule Forum
English => Compilation problems => Topic started by: Meeni on March 20, 2006, 02:17:55 AM
-
Hi,
I compiled Amule 2.1.1, here is the summary of configure :
Configure script has finished system check.
Configured aMule 2.1.1 for 'i686-pc-linux-gnu'.
aMule enabled options:
**** aMule Core ****
Prefix where aMule should be installed? /usr/local
Should aMule be compiled with i18n support? yes
Should aMule be compiled in debug mode? no
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? yes
Should aMule monolithic application be built? no
Should aMule daemon version be built? yes
Should aMule remote gui be built? (EXPERIMENTAL) yes
Crypto++ library/headers style? embedded
**** aMule TextClient ****
Should aMule Command Line Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? yes
**** aMule ED2K Links Handler ****
Should aMule ED2K Links Handler be built? yes
**** aMuleLinkCreator ****
Should aMuleLinkCreator GUI version (alc) be built? no
Should aMuleLinkCreator for console (alcc) be built? no
**** aMule Statistics ****
Should C aMule Statistics (CAS) be built? no
Should aMule GUI Statistics (wxCas) be built? no
**** General Libraries and Tools ****
Should ccache support be enabled? no
Libraries aMule will use to build:
wxWidgets 2.6.2
crypto++ embedded
libpng 1.2.8
libgd 2.0.33
zlib 1.2.3
Compilation just goes fine. Nice.
And here is what I get when I try to launch it
Fatal Error: Mismatch between the program and library build versions detected.
The library used 2.6 (no debug,ANSI,compiler with C++ ABI 102,wx containers,compatible with 2.4),
and your program used 2.6 (no debug,ANSI,compiler with C++ ABI 1002,wx containers,compatible with 2.4).
Strange, isn't it ? ?(
-
Next step. Keep trying to fix the issue, I compiled wxGTK in unicode mode. Now I can launch amuled, but it crashes. Here is the backtrace. This bug is a persistent one I already encountered with amule-cvs since it was exclusively designed for wxGTK 2.6 (and not any more wxBase 2.4). The only way to fix it was so far to use ANSI wxGTK. Well, if none works, I'm in deep... :P
-
forgot the backtrace... Here it is
----------------------------=| BACKTRACE FOLLOWS: |=----------------------------
Current version is: aMuled 2.1.1 using wxGTK2 v2.6.2 (Unicoded)
Running on: Linux 2.6.11.6 i686
[2] CamuleApp::OnFatalException() in :0
[3] wxFatalSignalHandler in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e99ea6]
[4] ?? in [0xffffe420]
[5] wxMBConv::cMB2WC(char const*, unsigned int, unsigned int*) const in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e50e6a]
[6] wxString::wxString(char const*, wxMBConv&, unsigned int) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e5a011]
[7] wxMsgCatalogFile::FillHash(wxMessagesHash&, wxString const&, bool) const in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e3de1c]
[8] wxMsgCatalog::Load(wchar_t const*, wchar_t const*, wchar_t const*, bool) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e3fe90]
[9] wxLocale::AddCatalog(wchar_t const*, wxLanguage, wchar_t const*) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e43ac8]
[10] wxLocale::AddCatalog(wchar_t const*) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e43d52]
[11] InitLocale(wxLocale&, int) in :0
[12] CamuleApp::Localize_mule() in :0
[13] CamuleApp::OnInit() in :0
[14] CamuleDaemonApp::OnInit() in :0
[15] wxAppConsole::CallOnInit() in :0
[16] wxEntry(int&, wchar_t**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e3a6ce]
[17] wxEntry(int&, char**) in /usr/local/lib/libwx_baseu-2.6.so.0[0xb7e3a7ce]
[18] __gxx_personality_v0 in :0
[19] __libc_start_main in /lib/tls/libc.so.6[0xb7bafe14]
[20] wxAppConsole::Initialize(int&, wchar_t**) in start.S:122
--------------------------------------------------------------------------------
-
Either use wxGTK 2.6.3rc1/CVS or apply the patch for wxGTK 2.6.2. It shall be found somewhere here in our forum, Xaignar posted a link yesterday.
-
You should try with the new the Wxwidgets 2.6.3 rc2 (http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.6.3-rc2.tar.gz?use_mirror=mesh) with configure options --enable-largefile --enable-fontmap --enable-intl --enable-optimise --enable-unicode
-
Thanks, I'll try when I have some time. Not so happy to use a RC version of wxGTK, let's see.
-
You don't need to use an RC of wxWidgets if you don't want to.
- Your first problem is completely unrelated to the wxWidgets version! It's related to the version of the compiler used to build wxWidgets and the calling application. They need to be the same or compatible, but they are not in your case - this was discussed several times...
Don't mix GCC versions for C++ code! Mixing GCC versions for C code is safe, but for C++ code it is not.
- Your second problem can be fixed by using wxWidgets 2.6.3 RC1 or RC2, but you can also apply this isolated patch if you prefer:
http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/src/common/intl.cpp.diff?r1=1.166&r2=1.166.2.1&diff_format=u
-
Nice Gerd78 ! Very helpful; thanks.