LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   aMule / xMule / lMule invalid static cast error (https://www.linuxquestions.org/questions/linux-software-2/amule-xmule-lmule-invalid-static-cast-error-168545/)

Komakino 04-10-2004 05:11 PM

aMule / xMule / lMule invalid static cast error
 
Hi all,

I'm almost ashamed that I can't solve this one, but on compiling aMule / xMule /lMule (all three use wxGTK) I get the error:

Code:


AddFriend.cpp:55: invalid static_cast from type `void (CAddFriend::*)(wxEvent&)
  ' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
AddFriend.cpp:56: invalid static_cast from type `void (CAddFriend::*)(wxEvent&)
  ' to type `void (wxEvtHandler::*)(wxCommandEvent&)'
make[2]: *** [amule-AddFriend.o] Error 1
make[2]: Leaving directory `/tmp/aMule-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/aMule-1.2.6'
make: *** [all] Error 2

Can't figure this one out...I've even updated wxGtk and wxBase to version 2.5.1 but I'll be blowed if I can get this to compile. It's the same error on all three programs, btw.
It almost looks like I'm using the wrong compiler to build it.

rafamd 04-20-2004 10:02 PM

try pmake. Worked with me...

att,
Rafael

Mega Man X 04-22-2004 02:29 AM

Exactly same problem here running Slackware 9.0. pmake won't compile either. Sadly, xmule is down for the moment... that one I could get to work. Odd enough, ./configure returns no error...

Mega Man X 04-22-2004 02:38 AM

Ok, got a way around it. Download this rpm:

http://lmule.sourceforge.net/

for Redhat 8.0. Install it under Slack forcing the rpm:

rpm -i xmule-1.4.0-1.i386.rpm --nodeps

Then run xmule at the console. It worked for me.

Question: I've forced an install of aMule rpm in Slackware 9.0. How can I go by removing that rpm? rpm -e <name of the package> says the package is not installed :(. I've never needed to force an rpm before(I consider rpm's in Slackware useless, but this time it helped :D), so any help would be great.

Thanks in advance!

Komakino 04-22-2004 05:59 AM

rpm -e <packagename> should work, only don't include all the version numbers that usually accompany the rpm. For example if you installed xmms with rpm -i xmms-1.2_3.rpm then uninstall it with rpm -e xmms

Mega Man X 04-22-2004 06:19 AM

Thanks Komakino!

That did the trick with some "forced" rpm's. Some returns some errors, but I will fix it :)

Thanks mate!

P.S: I hope you got *mule to work :)


All times are GMT -5. The time now is 09:08 AM.