aMule Forum
English => Compilation problems => Topic started 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.
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.
-
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
-
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
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
-
can you posts
ls -la /usr/bin/wx*
AND
ls -la /usr/local/bin/wx*
-
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
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.
-
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
-
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.
-
Originally posted by stefanero
other then that it looks fine
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
-
Originally posted by Kry
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.
-
I'm just waiting for stefanero to realize his mistake... sorry for being so evil ;)
-
i dont see now mistake...lets see if kry fixes it....
-
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
-
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! ;)
-
Make it point to gtk2-unicode-release-2.6 or something alike. The keyword tehre is gtk instead of base
-
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.
-
You're welcome.. Kad is on its way, but I do have real life too ;)
-
ohoh /me hides
I should get some new glasses I guess :]
-
Yes :P