aMule Forum

English => Compilation problems => Topic started by: May Cause Drowsiness on May 24, 2005, 04:53:21 PM

Title: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 24, 2005, 04:53:21 PM
I can't seem to find anywhere on this site any information about how to compile aMule properly. When I try to compile it the generic way (configure, make, make install), I get a warning during configure.

Code: [Select]
                                      wxWidgets             2.4.2
                                       GTK                   2.6.4
                                       crypto++              embedded
                                       zlib                  1.2.2


WARNING!! Your wxWidgets copy has been linked against GTK2 and this will make aMule
be unstable, use much more cpu and ram. You have been warned, don't report bugs under this setup.

Not sure if I should even bother compiling after that warning.

So... does anyone know how to get around this? I have aMule 2.0.0-rc8 installed and working fine and didn't have this problem when I compiled it before, so not sure where this is suddenly coming from.

Any help appreciated and much thanks in advance.
Title: Re: Limited documentation? [Solved]
Post by: stefanero on May 24, 2005, 05:28:32 PM
you probably emerged wxGTK with the gtk2 use flag enabled, but due to problems with wx-2.4.2 and gtk2 (high-CPU and mem-usage) we disabled the abilty to compile amule with wx-2.4.2 and gtk2

so either reemerge wx-2.4.2 with the gtk1 useflag, OR emerge teh new wx-2.6 and here also gtk2 is allowed

stefanero
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 24, 2005, 05:45:59 PM
Stefanero:

Thanks. This solved the problem.

Now configure goes along without a hitch, but make is giving errors. Hehe... when did this get so complicated? :D

Code: [Select]
AddFriend.cpp:57: error: `content' undeclared (first use this function)
AddFriend.cpp:57: error: `addFriendDlg' undeclared (first use this function)
AddFriend.cpp: At global scope:
AddFriend.cpp:62: error: invalid use of undefined type `class CAddFriend'
AddFriend.h:35: error: forward declaration of `class CAddFriend'
AddFriend.cpp: In member function `void CAddFriend::OnAddBtn(wxCommandEvent&)':
AddFriend.cpp:67: error: `FindWindow' undeclared (first use this function)
AddFriend.cpp:75: error: `wxMessageBox' undeclared (first use this function)
AddFriend.cpp:92: error: `AddFriend' undeclared (first use this function)
AddFriend.cpp:94: error: `EndModal' undeclared (first use this function)
AddFriend.cpp: At global scope:
AddFriend.cpp:99: error: invalid use of undefined type `class CAddFriend'
AddFriend.h:35: error: forward declaration of `class CAddFriend'
AddFriend.cpp: In member function `void CAddFriend::OnCloseBtn(wxCommandEvent&)':
AddFriend.cpp:101: error: `EndModal' undeclared (first use this function)
make[3]: *** [amule-AddFriend.o] Error 1
make[3]: Leaving directory `/home/me/temp-install/aMule-2.0.1/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/me/temp-install/aMule-2.0.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/me/temp-install/aMule-2.0.1'
make: *** [all] Error 2

And that is just part of a long line. =/

Thanks again, Stefanero
Title: Re: Limited documentation? [Solved]
Post by: stefanero on May 24, 2005, 05:59:43 PM
can you posts

ls -la /usr/bin/wx*

AND

ls -la /usr/local/bin/wx*
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 24, 2005, 06:06:16 PM
Code: [Select]
ls -la /usr/bin/wx*
lrwxrwxrwx  1 root root    12 Mar 21 12:00 /usr/bin/wx -> /usr/lib//wx
lrwxrwxrwx  1 root root    40 May 24 11:55 /usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6
-rwxr-xr-x  1 root root 39067 May 24 11:55 /usr/bin/wx-config-2.6
-rwxr-xr-x  1 root root  4864 Mar 17 09:29 /usr/bin/wxbase-2.4-config
lrwxr-xr-x  1 root root    26 Mar 17 09:30 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx  1 root root     3 Apr 29 11:24 /usr/bin/wxvlc -> vlc

Code: [Select]
ls -ls /usr/local/bin/wx*
376 -rwxr-xr-x  1 root root 378239 Mar 17 09:52 /usr/local/bin/wxcas

This is what I get when checking those links. I checked this earlier, too, and it looked fine to me unless wxcas (which I thought was amule pieces) is a second copy of wxGTK.
Title: Re: Limited documentation? [Solved]
Post by: stefanero on May 24, 2005, 06:09:41 PM
wxcas is a 2nd copy of wxGTK? huh?

anyway remove please the wxbase-config link, since with wx-2.6 you DONT need anymore wxBase, any maybe if you can uninstall it completly...

other then that it looks fine, after you removed the link and/or completly removed wxBase, run
ldconfig

and rerun configure, make and so on with amule

stefanero
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 24, 2005, 06:41:04 PM
Quote
Originally posted by stefanero
wxcas is a 2nd copy of wxGTK? huh?

No, hehe. That isn't what I meant. I meant "unless wxcas is also GTK, but I think it is amule pieces."

But I removed the link, remerged and am still having the same errors. Hehe, this is gonna bug me for days until I get it fixed...

Thanks for your patience.
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 24, 2005, 07:58:30 PM
Quote
Originally posted by stefanero
other then that it looks fine

Quote
lrwxrwxrwx  1 root root    40 May 24 11:55 /usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6

You sure stefan? :P
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 24, 2005, 11:53:52 PM
Quote
Originally posted by Kry

Quote
lrwxrwxrwx  1 root root    40 May 24 11:55 /usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6

You sure stefan? :P

Are you saying I need to remove that link? I am at a loss here for compiling this. Although the config errors are gone, the compile errors are just numerous.
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 25, 2005, 09:37:13 PM
I'm just waiting for stefanero to realize his mistake... sorry for being so evil ;)
Title: Re: Limited documentation? [Solved]
Post by: stefanero on May 25, 2005, 09:42:41 PM
i dont see now mistake...lets see if kry fixes it....
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 25, 2005, 09:49:48 PM
Damm stefan, his wx-config points to the BASE config script :P

/usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 25, 2005, 10:10:54 PM
Quote
Originally posted by Kry
Damm stefan, his wx-config points to the BASE config script :P

/usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6

Hehe... do I remove it? Or leave it? Or make it point someplace else?

AHHH! You're killing me, Kry! ;)
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 25, 2005, 11:04:55 PM
Make it point to gtk2-unicode-release-2.6 or something alike. The keyword tehre is gtk instead of base
Title: Re: Limited documentation? [Solved]
Post by: May Cause Drowsiness on May 26, 2005, 12:26:22 AM
Quote
Originally posted by Kry
Make it point to gtk2-unicode-release-2.6 or something alike. The keyword tehre is gtk instead of base

That did it, Kry! Thanks a ton to the both of you for the help. Awesome job on 2.0.1 so far man... it even looks nicer. I can't wait to see Kademlia functioning... which I am SURE is a pain to work on.

Great job!

P.S.
For anyone else who may have the same problem...

/usr/bin/wx-config -> /usr/lib/wx/config/base-ansi-release-2.6

Needs to be (worked on my system at least):

/usr/bin/wx-config -> /usr/lib/wx/config/gtk2-ansi-release-2.6

Thanks again, guys.
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 26, 2005, 12:47:01 AM
You're welcome.. Kad is on its way, but I do have real life too ;)
Title: Re: Limited documentation? [Solved]
Post by: stefanero on May 26, 2005, 08:45:45 AM
ohoh /me hides
I should get some new glasses I guess  :]
Title: Re: Limited documentation? [Solved]
Post by: Kry on May 26, 2005, 03:15:31 PM
Yes :P