aMule Forum

English => aMule Help => Topic started by: pfrancav on March 10, 2004, 05:01:33 AM

Title: I can't compile amule
Post by: pfrancav on March 10, 2004, 05:01:33 AM
I 've installed wxGTK, wxGTK-devel and wxBase
but I can't compile the amule

This is the output of get-info.sh, really thanks !

[root@linuxPapaBoca aMule-1.2.6]# ./get-info.sh
I.   Development Environment

     A. Compiler Info
        Leyendo especificaciones de /usr/lib/gcc-lib/i386-redhat-linux/3.2/specs Configurado con: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib --enable-__cxa_atexit Modelo de hilos: posix gcc versión 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

     B. wxWindows Info
        Version: 2.4.2
        -pthread -lwx_base-2.4

     C. GTK Info
./get-info.sh: line 1: gtk-config: command not found
        GTK 1:
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
        GTK 2:

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Pentium III (Katmai)
        Speed: 451.010
        BMips: 896.66
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse

     B. Memory Info
        Total:   255388 kB
        Unused:

     C. Kernel Info
        Version: 2.4.18-14

     D. Library Info
        wxWindows library: libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so
Title: Re: I can't compile amule
Post by: thepolish on March 10, 2004, 03:17:50 PM
hi,

what is the error msg ?

the polish
Title: Re: I can't compile amule
Post by: nowlin on March 10, 2004, 03:34:13 PM
i have also problems with compiling amule..

i got this under my make command:

/usr/include/wx/window.h: In function `wxSizer* GetSizer()':
/usr/include/wx/window.h:816: error: `m_windowSizer' undeclared (first use this
   function)
/usr/include/wx/window.h: In function `void SetContainingSizer(wxSizer*)':
/usr/include/wx/window.h:819: error: `m_containingSizer' undeclared (first use
   this function)
/usr/include/wx/window.h:820: error: non-member function `wxSizer*
   GetContainingSizer()' cannot have `const' method qualifier
/usr/include/wx/window.h: In function `wxSizer* GetContainingSizer()':
/usr/include/wx/window.h:837: error: `wxSysColourChangedEvent' undeclared
   (first use this function)
/usr/include/wx/window.h:837: error: `event' undeclared (first use this
   function)
/usr/include/wx/window.h:837: error: variable or field `OnSysColourChanged'
   declared void
/usr/include/wx/window.h:837: confused by earlier errors, bailing out
make[2]: *** [amulecmdDLG-TextClient.o] Error 1
make[2]: Leaving directory `/home/alex/aMule-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/aMule-1.2.6'
make: *** [all] Error 2
[root@simba aMule-1.2.6]#
Title: Re: I can't compile amule
Post by: Citroklar on March 10, 2004, 05:11:56 PM
pfrancav: looks like you are missing GTK (try installing gtk-1.2 and gtk-1.2-devel from your cd's)

nowlin: looks like you do not have wxGTK and wxGTK-devel installed. download from our downloadpage!

Citroklar
Title: Re: I can't compile amule
Post by: bootstrap on March 10, 2004, 07:07:05 PM
Quote
make[2]: *** [amulecmdDLG-TextClient.o] Error 1
make[2]: Leaving directory `/home/alex/aMule-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/aMule-1.2.6'
aMule builds always fail on that if wxBase-devel is missing.
The wxBase Package from deltahf on the amule download page installs wxBase and wxBase-devel so users with that rpm installed don't have the problem.
If you're using rpms from wxwidgets.org you have to install wxBase-devel or use --disable-amulecmd to build amule.
Title: Re: I can't compile amule
Post by: deltaHF on March 10, 2004, 11:15:36 PM
and don't forget the symlinks (see my sig, wxBase step)
Title: Re: I can't compile amule
Post by: DarkVenger on March 24, 2004, 02:42:50 AM
Hello,

I followed the HowTo but in the end i've got and error:

treectlc.cpp: In member function `void
   wxGenericCTreeCtrl::OnMouse(wxMouseEvent&)':
treectlc.cpp:696: no matching function for call to `wxCTreeEvent::SetItem(
   wxGenericCTreeItem*&)'
treectlc.cpp:697: no matching function for call to `wxCTreeEvent::SetPoint(
   wxPoint)'
treectlc.cpp:718: no matching function for call to `wxCTreeEvent::SetItem(
   wxGenericCTreeItem*&)'
treectlc.cpp:719: no matching function for call to `wxCTreeEvent::SetPoint(
   wxPoint)'

And then it gives me error and so I cannot compile aMule, help please. 8o
Title: Re: I can't compile amule
Post by: deltaHF on March 24, 2004, 09:27:09 AM
ls -l /usr/bin/wx*
Title: Re: I can't compile amule
Post by: DarkVenger on March 24, 2004, 10:45:46 AM
Output of the comand asked:

lrwxrwxrwx    1 root     root           25 Mar 24 01:17 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config*
-rwxr-xr-x    1 root     root         4864 Mar 24 01:17 /usr/bin/wxbase-2.4-config*
lrwxrwxrwx    1 root     root           26 Mar 24 01:17 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config*
-rwxr-xr-x    1 root     root         5052 Mar 24 01:10 /usr/bin/wxgtk-2.4-config*

Are the links not correct ?(
Title: Re: I can't compile amule
Post by: deltaHF on March 24, 2004, 10:48:46 AM
yes.. run ldconfig & ./configure again

greets
Title: Re: I can't compile amule
Post by: DarkVenger on March 24, 2004, 06:17:37 PM
It did'nt help at all, the same errors existe and ldconfig did not made a thing.

What is suposed ldconfig to do?

Using the info script that's on amule's page:

I.   Development Environment

     A. Compiler Info
        Reading specs from /usr/lib/gcc-lib/i486-slackware-linux/3.2.3/specs Configured with: ../gcc-3.2.3/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux Thread model: posix gcc version 3.2.3

     B. wxWindows Info
        Version: 2.4.0
        -L/usr/local/lib -pthread -lwx_gtk-2.4

     C. GTK Info
        GTK 1: 1.2.10
        GTK 2: 2.2.4

II.  System Environment

     A. CPU Info
        Type:  GenuineIntel
        Model: Pentium III (Coppermine)
        Speed: 840.029
        BMips: 1674.44
        Flags: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr sse

     B. Memory Info
        Total:   385820 kB
        Unused:  179188 kB

     C. Kernel Info
        Version: 2.4.22

     D. Library Info
        wxWindows library: libwx_gtk-2.4.so (libc6) => /usr/lib/libwx_gtk-2.4.so libwx_gtk-2.4.so (libc6) => /usr/local/lib/libwx_gtk-2.4.so libwx_base-2.4.so (libc6) => /usr/lib/libwx_base-2.4.so

PS: I was using Xmule, and since I've installed wxGTK and wxBase to put aMule to work, Zero is the number of mule clients that I have working; Thank you God, for giving me the oportunity not to use all of my bandwith   :baby:
Title: Re: I can't compile amule
Post by: Kry on March 24, 2004, 08:04:25 PM
Hum. Hum.... hum.

hum.

hummmmmmmmmmm


hum.

which version are you compiling?
Title: Re: I can't compile amule
Post by: deltaHF on March 24, 2004, 08:15:19 PM
what about
#amule on irc.freenode.net DarkVenger?

i had slackware too and installed amule without any problems
Title: Re: I can't compile amule
Post by: DarkVenger on March 26, 2004, 12:50:07 PM
Problem solved on thi irc, with the amazing help from deltaHF :baby:

I'm now a newly happy costumer  :D :D
Title: Re: I can't compile amule
Post by: Ragna on March 30, 2004, 02:00:56 AM
I've the same problem. How do you fix it???

 ?(

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on March 30, 2004, 02:04:00 AM
ls -l /usr/bin/wx*

ls -l /usr/local/bin/wx*

please the output
Title: Re: I can't compile amule
Post by: Ragna on March 30, 2004, 02:34:34 AM
Here's the output:

ls -l /usr/bin/wx*:
------------------

lrwxrwxrwx    1 root     root           17 2004-03-29 23:06 /usr/bin/wx-config -> wxbase-2.4-config
-rwxr-xr-x    1 root     root         4864 2003-11-28 13:08 /usr/bin/wxbase-2.4-config


ls -l /usr/local/bin/wx*:
-------------------
No files founded

Thx for the help  :D

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on March 30, 2004, 02:36:17 AM
u know the answer now ? ;)

greets
Title: Re: I can't compile amule
Post by: Ragna on March 30, 2004, 03:06:45 AM
I fear not ;(

Maybe I've to have a link in /usr/local/bin/ ??

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on March 30, 2004, 11:17:12 AM
no no.. the links must look like:
-rwxr-xr-x    1 root     root         4864 2003-11-28 13:08 /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           26 2003-12-26 19:41 /usr/bin/wxbase-config -> /usr/bin/wxbase-2.4-config
lrwxrwxrwx    1 root     root           25 2003-12-26 19:40 /usr/bin/wx-config -> /usr/bin/wxgtk-2.4-config
-rwxr-xr-x    1 root     root         5159 2003-09-21 15:14 /usr/bin/wxgtk-2.4-config


look in my sig
Title: Re: I can't compile amule
Post by: Ragna on March 30, 2004, 06:24:17 PM
I've created the link that i missed... but i didn¡t have wxgtk-2.4-config...

where it's supposed to be? I've installed all the rpms u say in your sign howto  ?(

I'm a bit confused...

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on March 30, 2004, 11:13:38 PM
sure u installed the devel rpms too ?
Title: Re: I can't compile amule
Post by: Ragna on March 30, 2004, 11:21:52 PM
Sure, see that:

rpm -qa | grep wx
-------------------

wxGTK-2.4.0-45
wxGTK-gl-2.4.0-45
python-wxGTK-2.4.0.2-21
wxGTK-devel-2.4.0-45
wxBase-2.4.2-1

I'm going to reinstall it... maybe it was a problem during the last installation...

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on March 30, 2004, 11:46:03 PM
i see u use a bit old wxGTK .. why don't u use the one from our dl page/portal ?
Title: Re: I can't compile amule
Post by: Ragna on April 22, 2004, 11:01:15 PM
Hi, I fix the problem a few days ago.

I needed wxBase-devel for the compilation, and i have the wrong version of the other librarys. Thx guys!

---
Ragna
Title: Re: I can't compile amule
Post by: deltaHF on April 22, 2004, 11:16:14 PM
ur welcome :)
Title: Re: I can't compile amule
Post by: Wolfers on April 23, 2004, 11:01:11 PM
my problem is a bit different:

Quote
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 `/root/aMule-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/aMule-1.2.6'
make: *** [all] Error 2

im using wxBase 2.5.1 and wxGTK 2.5.1 with aMule 1.2.6 on slackware 9.0

any ideas?
Title: Re: I can't compile amule
Post by: deltaHF on April 23, 2004, 11:21:02 PM
yap, wx* 2.5.1 isn't supported yet

greets
Title: Re: I can't compile amule
Post by: Wolfers on April 24, 2004, 09:04:52 PM
how do i fix what ive already messed up?  i tried installing wxwidgets 2.4.2 as download in bz2 format from this site.  i deleted all source folders and re-extracted the tar balls.  and then followed deltaHFs instructions in his !!! aMule compilation / installation HOWTO (http://www.amule.org/amule/howto.php)  now im getting:

Code: [Select]
In file included from /usr/lib/wx/include/base-2.4/wx/setup.h:1144,
                 from /usr/local/include/wx/platform.h:101,
                 from /usr/local/include/wx/defs.h:25,
                 from /usr/local/include/wx/string.h:29,
                 from TextClient.h:21,
                 from TextClient.cpp:39:
/usr/local/include/wx/chkconf.h:55:9: #error "wxUSE_EXCEPTIONS must be defined."
/usr/local/include/wx/chkconf.h:158:9: #error "wxUSE_XML must be defined."
/usr/local/include/wx/chkconf.h:905:13: #error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
In file included from /usr/local/include/wx/platform.h:104,
                 from /usr/local/include/wx/defs.h:25,
                 from /usr/local/include/wx/string.h:29,
                 from TextClient.h:21,
                 from TextClient.cpp:39:
/usr/local/include/wx/chkconf.h:55:9: #error "wxUSE_EXCEPTIONS must be defined."
/usr/local/include/wx/chkconf.h:158:9: #error "wxUSE_XML must be defined."
/usr/local/include/wx/chkconf.h:905:13: #error "wxUSE_DYNAMIC_LOADER requires wxUSE_DYNLIB_CLASS."
In file included from TextClient.h:21,
                 from TextClient.cpp:39:
/usr/local/include/wx/string.h:163:4: #error "Please define string case-insensitive compare for your OS/compiler"
make[2]: *** [amulecmd-TextClient.o] Error 1
make[2]: Leaving directory `/root/aMule-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/aMule-1.2.6'
make: *** [all] Error 2

i also get this during configure:

Code: [Select]
 Which libraries should aMule use?
                                       wxWindows          2.5.1  <<<<--?
                                       GTK                1.2.10

i even tried changing the configure line to specify the location of wxWindows:

Code: [Select]
./configure --disable-debug --enable-optimise --with-wx-prefix=/usr/bin/wxgtk-2.4-config --with-wx-exec-prefix=/usr/bin/wxgtk-2.4-config
no change.
Title: Re: I can't compile amule
Post by: deltaHF on April 24, 2004, 09:07:05 PM
well, the way should be to "make uninstall" the 2.5.1 pkgs, not to delete the folders only ;)

greets
Title: Re: I can't compile amule
Post by: deltaHF on April 24, 2004, 09:14:16 PM
now u have wxGTK and wxBase 2.5.1 compiled in /usr/local/bin and 2.4.2 in /usr/bin
Title: Re: I can't compile amule
Post by: Wolfers on April 24, 2004, 09:25:09 PM
yea thats thats what i figured, i was un-aware of the make unistall option :(
yea im a noob.  but im getting there.  if i recompile  2.5.1 with the same options as before will i be able to use make uninstall?
Title: Re: I can't compile amule
Post by: deltaHF on April 24, 2004, 09:26:20 PM
yes
Title: Re: I can't compile amule
Post by: Wolfers on April 25, 2004, 12:28:56 AM
lol computers hate me i swear!

Code: [Select]
------------------------------------------------------

 The installation of wxWindows is finished.  On certain
 platforms (e.g. Linux) you'll now have to run ldconfig
 if you installed a shared library and also modify the
 LD_LIBRARY_PATH (or equivalent) environment variable.

 wxWindows comes with no guarantees and doesn't claim
 to be suitable for any purpose.

 Read the wxWindows Licence on licencing conditions.

 ------------------------------------------------------

root@Skippy:~/wxBase-2.5.1# make uninstall
make: Nothing to be done for `uninstall'.
root@Skippy:~/wxBase-2.5.1# ldconfig
root@Skippy:~/wxBase-2.5.1# make uninstall
make: Nothing to be done for `uninstall'.
root@Skippy:~/wxBase-2.5.1#

same for wxGTK

any other ideas? or have i fubared my system? :/
Title: Re: I can't compile amule
Post by: deltaHF on April 25, 2004, 12:30:32 AM
README or INSTALL file.. look for the uninstalling options

/me is off to bed.. gn8 ;)
Title: Re: I can't compile amule
Post by: Wolfers on April 25, 2004, 12:41:03 AM
bah im giving up, INSTALL file is no help at all :/
not that big of a deal realy, dont need amule on this system that much any way (i can just run emule through vmware or reboot into winxp).  at least i know what not to do when i go to put amule on my desktop.  thanx for the help :)
Title: Re: I can't compile amule
Post by: Kry on April 25, 2004, 12:43:08 AM
LoneWolf, use --with-wx-config=/usr/bin/wxgtk-2.4-config