aMule Forum

English => Compilation problems => Topic started by: meismike on July 09, 2005, 08:22:27 AM

Title: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 08:22:27 AM
Hey, trying to compile wxwigets from source, following the guide on the wiki at

http://www.amule.org/wiki/index.php/Compilation_Installation

Im trying to like with GTK2 so im using

Code: [Select]
./configure --prefix=/usr --with-gtk --enable-unicode --disable-compat24 --enable-optimise && make
And im getting the following.. with the error at the bottom

Code: [Select]
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
loading argument cache configarg.cache
checking for --enable-gui... yes
checking for --enable-monolithic... no
checking for --enable-plugins... no
checking for --enable-universal... no
checking for --enable-nanox... no
------------------------omitted some stuff----------------------
saving argument cache configarg.cache
checking for toolkit... gtk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking if the C compiler requires -ext o...
checking whether we are using the Metrowerks C compiler... no
checking whether we are using the IBM xlC C compiler... no
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking if the C++ compiler requires -ext o... configure: error: cannot figure out if compiler needs -ext o: cannot compile
See `config.log' for more details.

Post if you would like config.log, its big though :/

Anyone know what this might be, i have never tried to compile anything befor, i dont have any previous versions of widgets, i tried linking it with GTK2 but got the same error.

Kind Regards
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 08:34:06 AM
I thin k gcc and or g++ are not installed, check if you have it
if not
use yum to get it...
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 09:42:52 AM
Yup that was the problem, but now when i run make install(as root) i get

make: *** No rule to make target `install'.  Stop.

Any ideas?

Im new at this which im sure you have guessed :P
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 10:28:24 AM
can you show the end of configur? seams like it did not finish....
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 10:28:57 AM
hum stop

wait "make" worked??
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 10:42:14 AM
No idea if make worked, this is the config im using

Code: [Select]
./configure --prefix=/usr --with-gtk2 --enable-unicode --disable-compat24 --enable-optimise && make
This is the end of the .configure which i assumed was ok ---there was a bunch of other stuff the first time i did it..... is it in a log somewhere if you need it?

Code: [Select]
checking for bcopy... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
config.status: expat_config.h is unchanged

Configured wxWidgets 2.6.0 for `i686-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.2      no
                                       wxWidgets 2.4      no
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               builtin
                                       zlib               sys
                                       odbc               no
                                       expat              builtin
                                       libmspack          no
                                       sdl                no
                                       gnomeprint         no

(test -d utils/wxrc && cd utils/wxrc && make all) || true
make[1]: Entering directory `/home/mike/Desktop/wxGTK-2.6.0/utils/wxrc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/mike/Desktop/wxGTK-2.6.0/utils/wxrc'

Any idea's?

Thanks for ya help so farStefanero =D

I have been trying to get this working for a few days now :S still learning
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 11:44:32 AM
well whent his prints:

  Which GUI toolkit should wxWidgets use?                 GTK+
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be compiled in debug mode?             no
  Should wxWidgets be linked as a shared library?         yes
  Should wxWidgets be compiled in Unicode mode?           no
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.2      no
                                       wxWidgets 2.4      no
  Which libraries should wxWidgets use?
                                       jpeg               sys
                                       png                sys
                                       regex              builtin
                                       tiff               builtin
                                       zlib               sys
                                       odbc               no
                                       expat              builtin
                                       libmspack          no
                                       sdl                no
                                       gnomeprint         no

type in the same folder

$make

and then this works its compiled
to install it run
$su
#make install

dont use su -, since it will swtich teh directory to roots home


stefanero
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 12:42:00 PM
Yup, i didnt understand what make and make install and everything was doing, went and looked it upa  bit more, it was because i was ysing make install in a differant directory

Thanks again :)
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 12:55:22 PM
so works now :))
good, have fun with gtk2 mule ;)
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 01:07:01 PM
Hmm now im getting the error i was getting all the time befor :P


Code: [Select]
FATAL ERROR! You have attempted to use a version of wxGTK older than
the 2.5.1 release, compiled against GTK2! This combination is not
supported by aMule due to many known problems. If you wish to use
wxGTK compiled against GTK2, please upgrade to a more recent version
of wxGTK.

More information can be found at:
 - [URL]http://www.amule.org[/URL]
 - [URL]http://wiki.amule.org[/URL]

Current version is: aMule 2.0.3 using wxGTK2 v2.4.2


i dont understand this error :/

What do i need to remove to start all over, should i get rid of wxGTK or wxGKT2 or both maby?

or is it something else?

A bunch of output that i think might help
Code: [Select]
[root@whitecowsgo wxGTK-2.6.0]# ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root     8 Jul  9 20:55 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x  1 root root 82951 Jul  9 20:55 /usr/bin/wxrc-2.6
[root@whitecowsgo wxGTK-2.6.0]# rpm -qa | grep -i wx
wxGTK-common-devel-2.4.2-12
wxGTK-common-2.4.2-12
[root@whitecowsgo wxGTK-2.6.0]# rpm -qa | grep -i gtk
gtkhtml2-2.6.3-1
pygtk2-2.6.0-2
authconfig-gtk-4.6.12-1
gtk+-devel-1.2.10-39
gtkhtml3-3.6.2-1
gtk2-engines-2.6.3-2
usermode-gtk-1.80-1
gtk+-1.2.10-39
gtk2-devel-2.6.7-4
wxGTK-common-devel-2.4.2-12
gtkglext-1.0.6-2
gtk2-2.6.7-4
gtksourceview-1.2.0-1
gtk-engines-0.12-7
gnome-python2-gtkhtml2-2.10.0-2.1
pygtk2-libglade-2.6.0-2
gtkspell-2.0.7-3
wxGTK-common-2.4.2-12
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 01:37:07 PM
well can you post

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

and sure you did do "make install" as root in the end of make from wxGTK-2.6.1? does not look like it

also remove!! the 2.4.2 rpms before you compile the 2.6.1 over them so do

rpm -e wxGTK-common-devel-2.4.2-12 wxGTK-common-2.4.2-12

then try "make install" again hte the folder from wxGTK

also dont forget to run ldconfig
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 01:44:29 PM
Ok i think i have everything ok :S

I now have the following and trying again

Code: [Select]
[root@whitecowsgo aMule-2.0.3]# ls -la /usr/local/bin/wx*
ls: /usr/local/bin/wx*: No such file or directory


[root@whitecowsgo aMule-2.0.3]# s -l /usr/bin/wx*
-bash: s: command not found

[root@whitecowsgo aMule-2.0.3]# ls -l /usr/local/bin/wx*
ls: /usr/local/bin/wx*: No such file or directory

[root@whitecowsgo aMule-2.0.3]# rpm -qa | grep -i wx

[root@whitecowsgo aMule-2.0.3]# rpm -qa | grep -i gtk
gtkhtml2-2.6.3-1
pygtk2-2.6.0-2
authconfig-gtk-4.6.12-1
gtk+-devel-1.2.10-39
gtkhtml3-3.6.2-1
gtk2-engines-2.6.3-2
usermode-gtk-1.80-1
gtk+-1.2.10-39
gtk2-devel-2.6.7-4
gtkglext-1.0.6-2
gtk2-2.6.7-4
gtksourceview-1.2.0-1
gtk-engines-0.12-7
gnome-python2-gtkhtml2-2.10.0-2.1
pygtk2-libglade-2.6.0-2
gtkspell-2.0.7-3

I'll hope it works now :)
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 01:55:55 PM
[root@whitecowsgo aMule-2.0.3]# s -l /usr/bin/wx*
-bash: s: command not found

^^this would be interressting...
but its ls -la ;)
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 01:57:58 PM
Woops  :))

Didnt even notice heh

Code: [Select]
[root@whitecowsgo wxGTK-2.6.0]# ls -l /usr/bin/wx*
lrwxrwxrwx  1 root root    43 Jul  9 21:35 /usr/bin/wx-config -> /usr/lib/wx/config/gtk2-unicode-release-2.6
lrwxrwxrwx  1 root root     8 Jul  9 21:35 /usr/bin/wxrc -> wxrc-2.6
-rwxr-xr-x  1 root root 82951 Jul  9 21:35 /usr/bin/wxrc-2.6
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: meismike on July 09, 2005, 02:07:06 PM
Thanks so much =D 5$#@^%&%!@#%


It lives yay!
Title: Re: FedoraC4, Error using ./configure -- and now another
Post by: stefanero on July 09, 2005, 02:09:40 PM
yes looking good this time :))