aMule Forum
English => en_Linux => Topic started by: JabberWocky on July 02, 2004, 06:08:08 PM
-
hey, i just cant compile 1.2.7, the same thing hapened with 2.0.0rc. i followed the how-to and i didnt get any problems or error on the libraries, but when i try to compile aMule i get the following error:
AddFriend.cpp:57: error: invalid static_cast from type `void
(CAddFriend::*)(wxEvent&)' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
AddFriend.cpp:58: error: invalid static_cast from type `void
(CAddFriend::*)(wxEvent&)' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
make[2]: *** [amule-AddFriend.o] Error 1
make[2]: Leaving directory `/home/jabber/programas/aMule-1.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jabber/programas/aMule-1.2.7'
make: *** [all] Error 2
I'm using Slackware 10.0
Thx in advance
-
Delete all wx libs. delete all aMule compilations.
Follow howto from the beggining again.
Something is probably crossing with previous compilations.
Make sure you do not have wx installed more than once on different directories ;-)
Greetings!
-
Thanks for the fat reply... i'mk having problems even trying to uninstall wx
look at what make uninstall gives me (both wxBase and wxGTK) :
Uninstalling wxWindows...
Removing library...
Removing GL library...
Removing helper files...
# FIXME: wxBase doesnt install these next 3 dirs.
Removing headers...
# TODO: uninstall the files installed by win32install
Removing i18n files...
rmdir: `/usr/share/locale/cs/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/cs': Directory not empty
rmdir: `/usr/share/locale/da/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/da': Directory not empty
rmdir: `/usr/share/locale/de/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/de': Directory not empty
rmdir: `/usr/share/locale/es/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/es': Directory not empty
rmdir: `/usr/share/locale/fi/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/fi': Directory not empty
rmdir: `/usr/share/locale/fr/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/fr': Directory not empty
rmdir: `/usr/share/locale/hu/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/hu': Directory not empty
rmdir: `/usr/share/locale/id/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/id': Directory not empty
rmdir: `/usr/share/locale/it/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/it': Directory not empty
rmdir: `/usr/share/locale/nl/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/nl': Directory not empty
rmdir: `/usr/share/locale/pl/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/pl': Directory not empty
rmdir: `/usr/share/locale/ru/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/ru': Directory not empty
rmdir: `/usr/share/locale/sl/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/sl': Directory not empty
rmdir: `/usr/share/locale/sv/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/sv': Directory not empty
rmdir: `/usr/share/locale/tr/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/tr': Directory not empty
rmdir: `/usr/share/locale/zh/LC_MESSAGES': Directory not empty
rmdir: `/usr/share/locale/zh': Directory not empty
make: [uninstall] Error 1 (ignored)
Removing directories...
rmdir: `/usr/share/locale': Directory not empty
make: [uninstall] Error 1 (ignored)
rmdir: `/usr/lib/wx/include': Directory not empty
make: *** [uninstall] Error 1
i presume it is still installed becaus ls /usr/bin/wx* gives me the following:
-rwxr-xr-x 1 root bin 7396 2003-02-12 00:41 /usr/bin/wxcopy
-rwxr-xr-x 1 root root 5052 2004-07-02 17:28 /usr/bin/wxgtk-2.4-config
-rwxr-xr-x 1 root bin 5832 2003-02-12 00:41 /usr/bin/wxpaste
am i right? is it still installed?
Best regards
-
ls -l /usr/local/bin/wx*
ls -l /usr/bin/wx*
looks like wx 2.5.x is somewhere on your sys and aMule 1.2.7 works only with wx 2.4.2
greets
-
6:29pm /home/jabber> ls -l /usr/local/bin/wx*
lrwxrwxrwx 1 root root 16 2004-06-27 10:12 /usr/local/bin/wx-config -> wxgtk-2.5-config
-rwxr-xr-x 1 root root 11724 2004-06-27 10:12 /usr/local/bin/wxgtk-2.5-config
6:29pm /home/jabber> ls -l /usr/bin/wx*
-rwxr-xr-x 1 root bin 7396 2003-02-12 00:41 /usr/bin/wxcopy
-rwxr-xr-x 1 root root 5052 2004-07-02 17:28 /usr/bin/wxgtk-2.4-config
-rwxr-xr-x 1 root bin 5832 2003-02-12 00:41 /usr/bin/wxpaste
yeah, you're right.
Any idea how to remove it? removinng the binaries at /usr/local/bin is enough?
Thankx
-
if its a slackware pkg u could maybe uninstall it with the pkg-tool, if not u could do it quick & dirty:
rm -f /usr/local/bin/wx*
rm -f /usr/local/lib/libwx*
ldconfig
-
ok that worked...but not totally... i now get another error also during the compilation:
/usr/local/include/wx/string.h:163:4: #error "Please define string case-insensitive compare for your OS/compiler"
ListenSocket.cpp:559:34: warning: #warning TODO: CHECK MESSAGE FILTERING!
make[2]: *** [amule-ListenSocket.o] Error 1
make[2]: Leaving directory `/home/jabber/programas/aMule-1.2.7/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jabber/programas/aMule-1.2.7'
make: *** [all] Error 2
Do you think thats still related to wx?
Thaks for your help
-
slackware is getting really weird ..
gcc --version
-
i use slack since 8.0 and never had problems with aMule... so as you say is really strange....
gcc (GCC) 3.3.4
-
come into irc plz.. it will be faster
-
Ok!! with the help of deltaHF it's everything working!
For those who have this problem try the following:
Before installing wxGTK and wxBase do:
rm -f /usr/bin/wx*
rm -f /usr/local/bin/wx*
rm -r /usr/local/lib/libwx*
Then compile and install wxGTK ans wxBase as described in the how-to (http://www.amule.org/amule/howto.php)
When you're finish do:
rm -rf /usr/local/include/wx
now you can compile aMule as described in the how-to.
Hope it helps
Thanks to deltaHF who really gave me a big help :baby:
Go Portugal, we're going to win the final :D