aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2

Author Topic: compilation ubuntu  (Read 7012 times)

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
compilation ubuntu
« 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

Code: [Select]
 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:

Code: [Select]

/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?
Logged
iabadaba...

Gerd78

  • Hero Member
  • *****
  • Karma: 9
  • Offline Offline
  • Posts: 681
Re: compilation ubuntu
« Reply #1 on: May 22, 2006, 03:57:48 PM »

GCC version? (output of "gcc --version")
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #2 on: May 22, 2006, 04:05:50 PM »

$ gcc --version
gcc (GCC) 3.3.5 (Debian 1:3.3.5-8ubuntu2.1)
Logged
iabadaba...

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: compilation ubuntu
« Reply #3 on: May 22, 2006, 05:21:42 PM »

Please build wxGTK 2.6.3 (don't forget to apply the patches, see the wiki for help.) and compile aMule against it.
BTW: Still on Hoary?
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #4 on: May 22, 2006, 06:01:58 PM »

thanks wuischke,

I'll try it out as soon as I have some time and post back to let you know if it worked..
Logged
iabadaba...

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #5 on: May 23, 2006, 02:44:16 PM »

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:

Code: [Select]
$ 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:

Code: [Select]
 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):

Code: [Select]
(...)
/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
Logged
iabadaba...

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: compilation ubuntu
« Reply #6 on: May 23, 2006, 02:58:36 PM »

plz post

ls -la /usr/bin/wx*

AND!!!

ls -la /usr/local/bin/wx*
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compilation ubuntu
« Reply #7 on: May 23, 2006, 08:08:34 PM »

You're using wxX11 instead of wxGTK. You must use wxGTK.
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #8 on: May 23, 2006, 08:11:54 PM »

hmmm... and how do i do that, exactly?
Logged
iabadaba...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compilation ubuntu
« Reply #9 on: May 23, 2006, 08:29:51 PM »

installing wxGTK?
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #10 on: May 23, 2006, 09:03:57 PM »

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:

Code: [Select]
$ 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??
Logged
iabadaba...

wuischke

  • Developer
  • Hero Member
  • *****
  • Karma: 183
  • Offline Offline
  • Posts: 4292
Re: compilation ubuntu
« Reply #11 on: May 23, 2006, 09:19:08 PM »

I guess you have multiple installations of wx. Could you please do what Stefanero mentioned?
Quote
plz post

ls -la /usr/bin/wx*

AND!!!

ls -la /usr/local/bin/wx*
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #12 on: May 23, 2006, 09:40:16 PM »

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 :(
Logged
iabadaba...

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: compilation ubuntu
« Reply #13 on: May 23, 2006, 10:12:48 PM »

You have a 2.6.2 installation of wxX11. Remove it :)
Logged

rbirmann

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 10
    • http://www.ricardobirmann.com
Re: compilation ubuntu
« Reply #14 on: May 24, 2006, 03:29:53 PM »

Finally... here it goes

Code: [Select]
$ 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

Code: [Select]
$ 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
Logged
iabadaba...
Pages: [1] 2