aMule Forum
English => Compilation problems => Topic started by: rbirmann on May 22, 2006, 03:31:54 PM
-
I want to compile amule 2.1.1 from source but have been running into some problems and have failed to figure out what is going on.
this is the final output of my ./configure run
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? yes
Should aMule be compiled with profiling? no
Should aMule be compiled with optimizations? no
Should aMule monolithic application be built? yes
Should aMule daemon version be built? no
Should aMule remote gui be built? (EXPERIMENTAL) no
Crypto++ library/headers style? embedded
**** aMule TextClient ****
Should aMule Command Line Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? no
**** 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
zlib 1.2.2
and this is the error I get during compilation:
/usr/local/include/wx-2.6/wx/univ/scrolbar.h: At global scope:
/usr/local/include/wx-2.6/wx/univ/scrolbar.h:113: error: conflicting return type specified for `virtual wxWindow* MuleExtern::wxScrollBar::GetWindow()'
/usr/local/include/wx-2.6/wx/univ/scrarrow.h:92: error: overriding `virtual MuleExtern::wxWindow* MuleExtern::wxControlWithArrows::GetWindow()'
/usr/local/include/wx-2.6/wx/univ/scrolbar.h: In member function `virtual MuleExtern::wxRenderer* MuleExtern::wxScrollBar::GetRenderer() const':
/usr/local/include/wx-2.6/wx/univ/scrolbar.h:112: error: cannot convert `wxRenderer* const' to `MuleExtern::wxRenderer*' in return
In file included from extern/listctrl.262.cpp:1678,
from listctrl.cpp:4:
/usr/local/include/wx-2.6/wx/univ/renderer.h: In member function `virtual MuleExtern::wxRect MuleExtern::wxDelegateRenderer::GetBorderDimensions(wxBorder) const':
(...)
I am running Ubuntu (window manager: Enlightenment 0.16) and have compiled and installed wx-2.6.2 from source.
Any suggestions? ideas? questions?
-
GCC version? (output of "gcc --version")
-
$ gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2.1)
-
Please build wxGTK 2.6.3 (don't forget to apply the patches, see the wiki (http://www.amule.org/wiki/index.php/Compilation_Installation) for help.) and compile aMule against it.
BTW: Still on Hoary?
-
thanks wuischke,
I'll try it out as soon as I have some time and post back to let you know if it worked..
-
well... I did exactly as said in the wiki and still could not compile it.
I've downloaded, compiled and installed wxGTK-2.6.3. One thing I am not sure about is applying the patches... all I had to do was extract
wxWidgets-2.6.3-Patch-2.tar in the same directory as
wxGTK-2.6.3.tar?? (This is the only thing I did)
I did EXACTLY this:
$ bunzip2 wxGTK-2.6.3.tar.bz2
$ tar -xvf wxGTK-2.6.3.tar
$ gunzip wxWidgets-2.6.3-Patch-2.tar.gz
$ tar -C wxGTK-2.6.3 -xvf wxWidgets-2.6.3-Patch-2.tar
$ cd wxGTK-2.6.3
$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise
$ make
$ sudo make install
$ sudo ldconfig
Anyway... When I try to configure amule-2.1.1 (./configure --disable-debug --enable-optimize) , I get the following final output:
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? yes
Should aMule daemon version be built? no
Should aMule remote gui be built? (EXPERIMENTAL) no
Crypto++ library/headers style? embedded
**** aMule TextClient ****
Should aMule Command Line Client be built? no
**** aMule WebServer ****
Should aMule WebServer be built? no
**** 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
zlib 1.2.2
shouldn't wxWidgets version be 2.6.3 instead of 2.6.2??
compiling it raises an error (with some lines before and after):
(...)
/usr/local/include/wx-2.6/wx/x11/pen.h: In copy constructor `wxPen::wxPen(const
wxPen&)':
/usr/local/include/wx-2.6/wx/x11/pen.h:45: warning: base class `class
wxGDIObject' should be explicitly initialized in the copy constructor
In file included from listctrl.cpp:4:
extern/listctrl.262.cpp: In member function `int
MuleExtern::wxListLineDataArray::Index(const
MuleExtern::_wxObjArraywxListLineDataArray&, bool) const':
extern/listctrl.262.cpp:375: warning: declaration of `Item' shadows a member of
`this'
In file included from /usr/local/include/wx-2.6/wx/scrolbar.h:60,
from /usr/local/include/wx-2.6/wx/univ/renderer.h:52,
from extern/listctrl.262.cpp:1678,
from listctrl.cpp:4:
/usr/local/include/wx-2.6/wx/univ/scrolbar.h: At global scope:
/usr/local/include/wx-2.6/wx/univ/scrolbar.h:113: error: conflicting return
type specified for `virtual wxWindow* MuleExtern::wxScrollBar::GetWindow()'
/usr/local/include/wx-2.6/wx/univ/scrarrow.h:92: error: overriding `virtual
MuleExtern::wxWindow* MuleExtern::wxControlWithArrows::GetWindow()'
/usr/local/include/wx-2.6/wx/univ/scrolbar.h: In member function `virtual
MuleExtern::wxRenderer* MuleExtern::wxScrollBar::GetRenderer() const':
/usr/local/include/wx-2.6/wx/univ/scrolbar.h:112: error: cannot convert `
wxRenderer* const' to `MuleExtern::wxRenderer*' in return
In file included from extern/listctrl.262.cpp:1678,
from listctrl.cpp:4:
/usr/local/include/wx-2.6/wx/univ/renderer.h: In member function `virtual
MuleExtern::wxRect
MuleExtern::wxDelegateRenderer::GetBorderDimensions(wxBorder) const':
/usr/local/include/wx-2.6/wx/univ/renderer.h:750: error: return type `struct
MuleExtern::wxRect' is incomplete
/usr/local/include/wx-2.6/wx/univ/renderer.h:750: error: invalid use of
undefined type `struct MuleExtern::wxRect'
/usr/local/include/wx-2.6/wx/univ/scrarrow.h:33: error: forward declaration of
`struct MuleExtern::wxRect'
/usr/local/include/wx-2.6/wx/univ/renderer.h: In member function `virtual
MuleExtern::wxRect MuleExtern::wxDelegateRenderer::GetScrollbarRect(const
MuleExtern::wxScrollBar*, MuleExtern::wxScrollBar::Element, int) const':
/usr/local/include/wx-2.6/wx/univ/renderer.h:759: error: return type `struct
MuleExtern::wxRect' is incomplete
/usr/local/include/wx-2.6/wx/univ/renderer.h:759: error: invalid use of
undefined type `struct MuleExtern::wxRect'
/usr/local/include/wx-2.6/wx/univ/scrarrow.h:33: error: forward declaration of
`struct MuleExtern::wxRect'
(...)
thanks in advance!
ricardo
-
plz post
ls -la /usr/bin/wx*
AND!!!
ls -la /usr/local/bin/wx*
-
You're using wxX11 instead of wxGTK. You must use wxGTK.
-
hmmm... and how do i do that, exactly?
-
installing wxGTK?
-
as I mentioned on my previous post:
" well... I did exactly as said in the wiki and still could not compile it.
I've downloaded, compiled and installed wxGTK-2.6.3. One thing I am not sure about is applying the patches... all I had to do was extract
wxWidgets-2.6.3-Patch-2.tar in the same directory as
wxGTK-2.6.3.tar?? (This is the only thing I did)
I did EXACTLY this:
$ bunzip2 wxGTK-2.6.3.tar.bz2
$ tar -xvf wxGTK-2.6.3.tar
$ gunzip wxWidgets-2.6.3-Patch-2.tar.gz
$ tar -C wxGTK-2.6.3 -xvf wxWidgets-2.6.3-Patch-2.tar
$ cd wxGTK-2.6.3
$ ./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise
$ make
$ sudo make install
$ sudo ldconfig
(...)"
Why didn't it do the trick??
-
I guess you have multiple installations of wx. Could you please do what Stefanero mentioned?
plz post
ls -la /usr/bin/wx*
AND!!!
ls -la /usr/local/bin/wx*
-
wuischke,
I will post it as soon as I can. I am at work and will, unfortunately, have to wait until I get home to do it :(
-
You have a 2.6.2 installation of wxX11. Remove it :)
-
Finally... here it goes
$ ls -la /usr/bin/wx*
-rwxr-xr-x 1 root root 4865 2004-12-19 16:39 /usr/bin/wxbase-2.4-config
lrwxrwxrwx 1 root root 43 2006-05-23 00:30 /usr/bin/wx-config -> /usr/lib/wx/config/gtk2-unicode-release-2.6
-rwxr-xr-x 1 root root 5159 2004-12-19 17:13 /usr/bin/wxgtk-2.4-config
lrwxrwxrwx 1 root root 8 2006-05-23 00:30 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 91677 2006-05-23 00:30 /usr/bin/wxrc-2.6
$ ls -la /usr/local/bin/wx*
-rwxr-xr-x 1 root root 329880 2006-03-18 10:23 /usr/local/bin/wxcas
lrwxrwxrwx 1 root root 49 2006-05-22 09:58 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/x11univ-ansi-release-2.6
lrwxrwxrwx 1 root root 8 2006-05-22 09:58 /usr/local/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 80236 2006-05-22 09:58 /usr/local/bin/wxrc-2.6
-
This only confirms what Kry already found out: You have wxX11 installed in /usr/local, but aMule does not compile with wxX11. You have to use wxGTK.
-
also you have wxBase still in /usr/ which is also pretty useless...
you should remove ALL wx and reinstall the wxGTk-2.6.3 by compiling, a make install should be enough since you alredy compiled it...
for removing wx check -> http://www.amule.org/wiki/index.php/How_to_uninstall_wxWidgets
-
IT WORKED!
Thanks everyone