aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule on red-hat 9  (Read 4873 times)

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
amule on red-hat 9
« on: February 20, 2007, 12:36:08 PM »

Hi, I have this problem when a run ./configure in the folder of amule
checking for wx-config... no
...
....
checking for wx-config... no
configure: error:
                wxWidgets must be installed on your system but wx-config
                script couldn't be found. Please check that wx-config is
                in path or specified by --with-wx-config=path flag, the
                directory where wxWidgets libraries are installed (returned
                by 'wx-config --libs' command) is in LD_LIBRARY_PATH or
                equivalent variable and wxWidgets version is 2.6.0 or above.

but in my pc there is a already installed the wxWidgets, i think that the problem is pkg-config that do not specific the correct path of the library
Thanks a lot
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amule on red-hat 9
« Reply #1 on: February 20, 2007, 01:22:32 PM »

RedHat-9 is too old for me to tell you anything usefull, but one thing I can tell you: don't use the wxWidgets package that comes with the distribution, it is broken. Compile it yourself. Look here:
http://www.amule.org/wiki/index.php/Compilation_Installation
Logged

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #2 on: February 20, 2007, 02:34:23 PM »

I have tried to execute the guide
but when i configure the wxGTK they tell me the same problem..

...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.

i do no...I have tried also with the rpm but null

   
Logged

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #3 on: February 20, 2007, 03:08:17 PM »

I want to say that my pc is configurated for server (only text mode)..and i don't have installed gnome or kde.
can be this the problem?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: amule on red-hat 9
« Reply #4 on: February 20, 2007, 03:26:43 PM »

You need wxWidgets, not wxGTK.
Logged

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #5 on: February 21, 2007, 02:15:32 AM »

the problem is the same...when i configure the wxWidgets-2.8.0
the shell return me
...
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.


the problem i think that is the path of gtk+ library that gtk-config don't have..
Logged

wardevil

  • Sr. Member
  • ****
  • Karma: -1
  • Offline Offline
  • Posts: 402
Re: amule on red-hat 9
« Reply #6 on: February 21, 2007, 11:06:49 AM »

For non X...you need wxBase not wxWidgets nor wxGTK...

Cheers....
Logged
Linux user nÂș289016 at Linux counter

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #7 on: February 21, 2007, 01:07:09 PM »

root@red-hat wxBase-2.8.0]# ./configure
...
..
checking for GTK+ version...
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.


the gtk library is always required by any library that i would to install...it is wxBase..it is wxGTK or wxWidgets

Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amule on red-hat 9
« Reply #8 on: February 21, 2007, 03:12:13 PM »

unicondor,

Do you have the gtk2-devel-*.rpm installed? You need the devel package to compile applications using gtk.
Logged

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #9 on: February 21, 2007, 04:56:54 PM »

yes are installed

root@einsteinmc2 root]# rpm -qa |grep gtk*
gtk2-2.2.1-4
gnome-python2-gtkhtml2-1.99.14-5
authconfig-gtk-4.3.4-1
gtk+-devel-1.2.10-25
libgtop-1.0.12-17
pygtk2-devel-1.99.14-4
gtk+-1.2.10-25
gtkhtml2-2.2.0-5
pygtk2-1.99.14-4
pygtk2-libglade-1.99.14-4
gtkhtml-1.1.8-5
libgtop-devel-1.0.12-17
gtkhtml-devel-1.1.8-5
gtk2-devel-2.2.1-4
usermode-gtk-1.67-2
gtk-doc-0.10-4

Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amule on red-hat 9
« Reply #10 on: February 21, 2007, 06:09:57 PM »

Please, post the output of the following three commands:

$ pkg-config gtk+-2.0 --libs
$ gtk-config --libs
$ echo $LD_LIBRARY_PATH
Logged

unicondor

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: amule on red-hat 9
« Reply #11 on: February 21, 2007, 07:42:13 PM »

[root@einsteinmc2 Roberto]# pkg-config gtk+-2.0 --libs
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0


[root@einsteinmc2 Roberto]# gtk-config --libs
-L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm

and [root@einsteinmc2 Roberto]# echo $LD_LIBRARY_PATH   return me a void line...

Finally I have installed the wxWidgets 2.8.0...
I have make ./configure but when i lunch the command make this is the result


n file included from /usr/include/wx-2.8/wx/image.h:19,
                 from /usr/include/wx-2.8/wx/gifdecod.h:19,
                 from MuleGifCtrl.cpp:26:
/usr/include/wx-2.8/wx/gdicmn.h: In member function `bool wxRect::Inside(int, int) const':
/usr/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of `y' shadows a member of `this'
/usr/include/wx-2.8/wx/gdicmn.h:486: warning: declaration of `x' shadows a member of `this'
MuleGifCtrl.cpp: In member function `bool MuleGifCtrl::LoadData(const char*, int)':
MuleGifCtrl.cpp:69: no matching function for call to `wxGIFDecoder::wxGIFDecoder(wxMemoryInputStream*, int)'
/usr/include/wx-2.8/wx/gifdecod.h:104: candidates are: wxGIFDecoder::wxGIFDecoder(const wxGIFDecoder&)
/usr/include/wx-2.8/wx/gifdecod.h:52:                 wxGIFDecoder::wxGIFDecoder()
MuleGifCtrl.cpp:70: no matching function for call to `wxGIFDecoder::ReadGIF()'
MuleGifCtrl.cpp:76: no matching function for call to `wxGIFDecoder::GoFirstFrame()'
MuleGifCtrl.cpp:78: no matching function for call to `wxGIFDecoder::ConvertToImage(wxImage*)'
/usr/include/wx-2.8/wx/gifdecod.h:82: candidates are: virtual bool wxGIFDecoder::ConvertToImage(unsigned int, wxImage*) const
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::Start()':
MuleGifCtrl.cpp:89: no matching function for call to `wxGIFDecoder::GoLastFrame()'
MuleGifCtrl.cpp: In member function `virtual wxSize MuleGifCtrl::GetBestSize()':
MuleGifCtrl.cpp:105: no matching function for call to `wxGIFDecoder::GetLogicalScreenWidth()'
MuleGifCtrl.cpp:105: no matching function for call to `wxGIFDecoder::GetLogicalScreenHeight()'
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnTimer(wxTimerEvent&)':
MuleGifCtrl.cpp:113: no matching function for call to `wxGIFDecoder::GoNextFrame(bool)'
MuleGifCtrl.cpp:116: no matching function for call to `wxGIFDecoder::ConvertToImage(wxImage*)'
/usr/include/wx-2.8/wx/gifdecod.h:82: candidates are: virtual bool wxGIFDecoder::ConvertToImage(unsigned int, wxImage*) const
MuleGifCtrl.cpp:122: no matching function for call to `wxGIFDecoder::GetDelay()'
/usr/include/wx-2.8/wx/gifdecod.h:65: candidates are: virtual long int wxGIFDecoder::GetDelay(unsigned int) const
MuleGifCtrl.cpp: In member function `void MuleGifCtrl::OnPaint(wxPaintEvent&)':
MuleGifCtrl.cpp:132: no matching function for call to `wxGIFDecoder::GetLogicalScreenWidth()'
MuleGifCtrl.cpp:133: no matching function for call to `wxGIFDecoder::GetLogicalScreenHeight()'
MuleGifCtrl.cpp:137: no matching function for call to `wxGIFDecoder::GetLeft()'
MuleGifCtrl.cpp:137: no matching function for call to `wxGIFDecoder::GetTop()'
make[3]: *** [libmuleappgui_a-MuleGifCtrl.o] Error 1
make[3]: Leaving directory `/root/Roberto/aMule-2.1.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Roberto/aMule-2.1.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Roberto/aMule-2.1.3'
make: *** [all] Error 2
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: amule on red-hat 9
« Reply #12 on: February 21, 2007, 08:00:40 PM »

If you are using aMule 2.1.3, you need a patch to make it compile with wx-2.8.0. Another alternative is to use wx-2.6.3. And a third alternative (the best) is to use a CVS tarball.

Link to the patch: http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/aMule-wx.patch?rev=1.2

Link to the thread explaining what to do with that patch: http://forum.amule.org/index.php?topic=11834.0

Link to aMule CVS tarballs: http://www.hirnriss.net/?area=cvs
Logged