aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Cant compile 1.2.7  (Read 3286 times)

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Cant compile 1.2.7
« 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
Logged

Jacobo221

  • Hero Member
  • *****
  • Karma: 3
  • Offline Offline
  • Posts: 2711
Re: Cant compile 1.2.7
« Reply #1 on: July 02, 2004, 06:13:22 PM »

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!
Logged

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: Cant compile 1.2.7
« Reply #2 on: July 02, 2004, 06:29:39 PM »

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
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cant compile 1.2.7
« Reply #3 on: July 02, 2004, 07:22:58 PM »

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

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: Cant compile 1.2.7
« Reply #4 on: July 02, 2004, 07:27:56 PM »

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
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cant compile 1.2.7
« Reply #5 on: July 02, 2004, 07:30:30 PM »

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

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: Cant compile 1.2.7
« Reply #6 on: July 02, 2004, 07:47:47 PM »

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
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cant compile 1.2.7
« Reply #7 on: July 02, 2004, 07:53:13 PM »

slackware is getting really weird ..

gcc --version

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: Cant compile 1.2.7
« Reply #8 on: July 02, 2004, 07:59:44 PM »

i use slack since 8.0 and never had problems with aMule... so as you say is really strange....
 gcc (GCC) 3.3.4
Logged

deltaHF

  • Evil Admin
  • Former Developer
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 3923
  • .. Legends may sleep, but they never die ..
    • http://www.amule.org
Re: Cant compile 1.2.7
« Reply #9 on: July 02, 2004, 08:03:41 PM »

come into irc plz.. it will be faster

JabberWocky

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
Re: Cant compile 1.2.7
« Reply #10 on: July 02, 2004, 09:03:51 PM »

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

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
Logged