aMule Forum
English => Compilation problems => Topic started by: thedavix on July 03, 2005, 01:09:44 PM
-
hi everyones,
I have just installed fedora 4 on my computer and wanted to install amule 2.0.3
so I did the following things
http://www.amule.org/wiki/index.php/Compilation_Installation
For wx
I used wxGTK-2.6.1
I tried to link it to GTK2 but it didn't work so i linked it to GTK1 (by the way how can we know if we have gtk2 or gtk1 ? )
make install worked but i couldnt do
ldconfig
because fedora told me that the command was not found..
so i tried to compile amule
it worked..
but when i type amule in a console, it dosen't work..
Can somebody help me?
Thks :D
Here is the result of : ls -l /usr/bin/wx*
lrwxrwxrwx 1 root root 39 jui 2 17:29 /usr/bin/wx-config -> /usr/lib/wx/config/gtk-ansi-release-2.6
lrwxrwxrwx 1 root root 8 jui 2 17:29 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 89221 jui 2 17:29 /usr/bin/wxrc-2.6
Davix 8)
-
Originally posted by thedavix
I tried to link it to GTK2 but it didn't work so i linked it to GTK1 (by the way how can we know if we have gtk2 or gtk1 ? )
Post the result of the following commands:
$rpm -qa | grep -i wx
$rpm -qa | grep -i gtk
If GTK2 is installed, in order to make wxGTK to use it, you must specify --enable-gtk2 on the configure command of wxGTK.
Originally posted by thedavix
make install worked but i couldnt do
ldconfig
because fedora told me that the command was not found..
You must be root to run this command. Try:
$su -
$ldconfig
Also, unless you are installing in a path you have rights, you'll need to be root to do a "make install".
Originally posted by thedavix
so i tried to compile amule
it worked..
but when i type amule in a console, it dosen't work..
Maybe you were not root when you did the make install?
Cheers!
-
here are the results for the 2 commands you asked me
$ rpm -qa | grep -i wx
there were no results
$ rpm -qa | grep -i gtk
gtk2-2.6.7-4
usermode-gtk-1.80-1
gtkhtml2-2.6.3-1
gnome-python2-gtkhtml2-2.10.0-2.1
authconfig-gtk-4.6.12-1
gtkspell-2.0.7-3
gtk+-1.2.10-39
pygtk2-libglade-2.6.0-2
gtk+-devel-1.2.10-39
gtk2-engines-2.6.3-2
gtkhtml3-3.6.2-1
gtksourceview-1.2.0-1
pygtk2-2.6.0-2
gtk-engines-0.12-7
I'll try to re-compile in root, because i'm not sure if i was in root but i think so
Thks
-
thedavix,
There is no need to recompile as root. You only have to be root at the time you issue the command "make install".
As far as I can see, you have all the needed gtk packages installed.
Also, you seem to be compiling wx from sources too. So if you follow the instructions in the wiki, all should be fine. And don't forget --enable-gtk2 when configuring wxGTK.
Cheers!
-
phoenix
its --with-gtk2 not --enable-gtk2 ;)
-
stefanero,
From ./configure --help:
...
--disable-gtk2 use GTK+ 1.2 instead of 2.0
...
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
So, there is in fact a --enable-gtk2 option, because there is always an enable and a disable option. But for --with, I guess the correct syntax would be --with-gtk=2, although with autoconf you never really know what are the valid options :P
Cheers!
-
Re
I have a problem when i configure wx with this
./configure --prefix=/usr --enable-gtk2 --with-gtk && make
i have this message at the end of the configure
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.
Is this normal?
Thks
Davix
-
install gtk2-devel
-
as i am a neophyte of linux, can i install gtk2-devel
using yum ?
Davix
-
no idea about fc4 .. try yum or search for some fc4 ftp and download the rpm
cheers
-
Thks :D
I found it was just
yum install gtk2-devel :D
I'll see now it i am able to install everything :D
Davix
-
with all this i have still the same error i cannot run ldconfig
------------------------------------------------------
The installation of wxWidgets 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.
wxWidgets comes with no guarantees and doesn't claim
to be suitable for any purpose.
Read the wxWidgets Licence on licencing conditions.
------------------------------------------------------
[root@popopc wxGTK-2.6.1]# ldconfig
bash: ldconfig: command not found
Davix
-
try /sbin/ldconfig
-
it worked thks :D
but now when i do make install for amule
i have this error
...ned reference to `gtk_marshal_NONE__POINTER_POINTER'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_signal_connect'
collect2: ld a retourné 1 code d'état d'exécution
make[4]: *** [wxcas] Erreur 1
make[4]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils/wxCas/src'
make[3]: *** [install-recursive] Erreur 1
make[3]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils/wxCas'
make[2]: *** [install-recursive] Erreur 1
make[2]: Leaving directory `/home/popo/amule/aMule-2.0.3/src/utils'
make[1]: *** [install-recursive] Erreur 1
make[1]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make: *** [install-recursive] Erreur 1
Any idea?
Thks :D
-
is this
-> make
OR
-> make install?
looks like only make to me...what did the configure summary from amule tell you in the end?
stefanero
-
It was make install
I reconfigured amule just few minuts ago with ./configure --disable-debug --enable-optimize && make
here is the end ;(
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_regions_xor'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_im_decide_style'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_draw_pixmap'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_container_focus'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_ensure_uline_accel_group'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_widget_push_visual'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_insert'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_append'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_im_begin'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_widget_set_default_visual'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_window_ref'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_marshal_NONE__POINTER_POINTER'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_signal_connect'
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [amule] Erreur 1
make[3]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/popo/amule/aMule-2.0.3'
make: *** [all] Erreur 2
Davix
-
have you done a "make clean" before you reconfigured and stuff?
if not try that, it might be still linked to the old libs...or take a new tar.gz
stefanero
-
I tried to do a make clean but now i have new errors
ined reference to `gtk_type_check_object_cast'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_ic_attr_destroy'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_bitmap_unref'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_root_parent'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_accel_group_attach'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_ic_attr_new'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_regions_subtract'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_signal_disconnect_by_func'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_window_get_colormap'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_toolbar_set_button_relief'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_regions_xor'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_im_decide_style'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_draw_pixmap'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_container_focus'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_ensure_uline_accel_group'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_widget_push_visual'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_insert'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_menu_append'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_im_begin'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_widget_set_default_visual'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gdk_window_ref'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_marshal_NONE__POINTER_POINTER'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so: undefined reference to `gtk_signal_connect'
collect2: ld a retourné 1 code d'état d'exécution
make[3]: *** [amule] Erreur 1
make[3]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/home/popo/amule/aMule-2.0.3/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/home/popo/amule/aMule-2.0.3'
make: *** [all] Erreur 2
maybe one day...
Davix
-
hmm its not getting better ;)
can you post
ls -la /usr/bin/wx*
and
ls -la /usr/local/bin/wx*
-
here are the results
$ ls -la /usr/bin/wx*
lrwxrwxrwx 1 root root 43 jui 4 11:11 /usr/bin/wx-config -> /usr/lib/wx/config/gtk2-unicode-release-2.6
lrwxrwxrwx 1 root root 8 jui 4 11:11 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x 1 root root 72441 jui 4 11:11 /usr/bin/wxrc-2.6
$ ls -la /usr/local/bin/wx*
ls: /usr/local/bin/wx*: Aucun fichier ou répertoire de ce type
thks :)
-
thedavix,
And "rpm -qa | grep -i wx" returns nothing?? Those libs (/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libwx_gtk2u_core-2.6.so) are from an rpm, not from a hand compiled wx. There is something strange in your system.
Make sure you typed the above command correctly. What seems to me to be happening is that aMule is trying to use the original distro wx packages, which traditionally do not work. You have to get one in our download page here: http://www.amule.org/files/files.php?cat=12
Cheers!
-
phoenix none of those rpms there work on fc4!!!!!
but I agree that there is something strange on his system
I setup a test fc4 enviroment just now and did for
wxGTK
./configure --enable-unicode --prefix=/usr
make
make install
and for aMule
./configure --enable-webserver --enable-cas
make
make install
all went well without problems...
thedavix I suggest you read:
http://www.amule.org/wiki/index.php/How_to_uninstall_wxWidgets
and tehn recompile wxWidget and aMule...
cheers
stefanero
-
:baby: Thks stefanero it works just fine now.. :D
Just a little problem for the webserver.. tells me it's not installed when i want to check in the options start webserver on startup.
But for the rest no idea what i did wrong the first time.. i just followed
http://www.amule.org/wiki/index.php/Compilation_Installation
Thanks to everybody for the help :D
Davix :)
-
is it in path?
do you run amule as root? and did you do make install in the end?
-
Hi stefanero
Yes amuleweb is in the path, heuu no i do not run amule as root should I?
-
no dont run it as root ;)
i was just checking :))
is this a error msg on console about amuleweb? have you actually tryed to connect to the amuleweb port?
we had in the last versions a error msg about amulewbe not starting, altho it started anyways...
you can also check with
#ps ax | grep amule
and should see 2 processes, one from amule the other from amuleweb
stefanero
-
no i have only one process amule 8o
David :]
-
super! i tried to compile this for about one week now. i am new to linux (i worked on serveral servers, but never installed linux by my self and used it to do desktop work). the whole how-tos on the amule site heavent worked, but your simple 6 commands works perfectly fine. have debian sarge as OS. and had the same problems. everytime while compiling amule, it stopped at the wx and gtk shit.
so anyways, now it works!
thanks,
tobias