#1 Le 23/01/2007, à 14:47
- Peutch
Impossible de compiler... (problème Glib je crois ?)
Bonjour,
Je suis TOUT nouveau dans le monde Linux. J'ai fait mes premiers pas hier soir vers minuit... Donc soyez indulgents, il y a encore des tas de choses sans doute basique que je ne comprends pas.
Je voulais installer le support des fichiers dans XMMS. Déjà j'ai réussi à installer XMMS, c'est pas mal ;-)
BOn bref, je paquet nécessaire n'est pas installable via Synaptic (il n'apparaît pas dans la liste). Donc je vais sur le site, je télécharge le paquet, je le décompresse dans le répertoire /home/moi puis je suis les instructions :
Je tape
./configure
La première fois que je l'ai fait, je me suis pris un message comme quoi "cannot create executables". J'en ai déduit que je n'avais pas de compilateur. Donc j'installe le paquet gcc.
Je retente le
./configure
. Plein de choses s'affichent, puis ça s'arrête car il y a une erreur :
checking for gtk-config... no
checking for GTK - version >= 1.2.2... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config.
configure: error: *** GTK+ >= 1.2.2 not installed - please install first ***
Mais je crie au scandale car quand je vais dans Synoptic, j'ai bien les paquets suivants d'installés :
- gtk2-engines
- libgtk1.2 et libgtk1.2-common (version 1.2.10-18)
-libgtk2.0 (version 2.10) inclus les -dev, -bin, -dbg, -cil sans que je ne sache trop à quoi ils servent...
DOnc quel est le paquet qui me manque ? J'y comprends rien !:(
#2 Le 23/01/2007, à 14:56
- jluc
Re : Impossible de compiler... (problème Glib je crois ?)
bonjour,
il faut installer le paquet build-essential :
sudo apt-get install build-essential
A+
Hors ligne
#3 Le 23/01/2007, à 14:56
- Peutch
Re : Impossible de compiler... (problème Glib je crois ?)
Dans le titre, je voulais dire problèmeGTK.
#4 Le 23/01/2007, à 14:58
- rioray
Re : Impossible de compiler... (problème Glib je crois ?)
vu que c'est du gtk1.2 tu as bien installe le dev gtk1.2 ?
libgtk1.2-dev
#5 Le 23/01/2007, à 14:58
- Peutch
Re : Impossible de compiler... (problème Glib je crois ?)
bonjour,
il faut installer le paquet build-essential :
A+
Merci pour votre réponse, mais ledit paquet est déjà installé.
Patrick
#6 Le 23/01/2007, à 15:15
- Peutch
Re : Impossible de compiler... (problème Glib je crois ?)
vu que c'est du gtk1.2 tu as bien installe le dev gtk1.2 ?
libgtk1.2-dev
Merci, c'est effectivement ce qui manquait !!
Ensuite ça m'a fait une autre erreur pour sld, mais maintenant, j'ai compris qu'il fallait installer les -dev des paquets aussi, mais si je ne sais pas vraiment pourquoi...:D
Maintenant j'ai un autre problème. Quand je fais le "make" qui suit le "./configure", j'ai un tas tas tas d'erreurs, je me permets de les mettre en vrac ici mais je ne comprends pas vraiment de quoi il s'agit... Si une bonne âme veut bien me dire là où ça coince ?
Allez c'est parti...
patrick@patrick-laptop:~/avi-xmms-1.2.3$ make
make all-recursive
make[1]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3 »
Making all in include
make[2]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3/include »
Making all in wine
make[3]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3/include/wine »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3/include/wine »
make[3]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3/include »
make[3]: Rien à faire pour « all-am ».
make[3]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3/include »
make[2]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3/include »
Making all in lib
make[2]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3/lib »
Making all in loader
make[3]: entrant dans le répertoire « /home/patrick/avi-xmms-1.2.3/lib/loader »
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -DWIN32_PATH=\"/usr/lib/win32\" -D__WINE__ -Ddbg_printf=__vprintf -DTRACE=__vprintf -fno-omit-frame-pointer -fno-inline -c win32.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -DWIN32_PATH=\"/usr/lib/win32\" -D__WINE__ -Ddbg_printf=__vprintf -DTRACE=__vprintf -fno-omit-frame-pointer -fno-inline -c win32.c -fPIC -DPIC -o win32.lo
In file included from win32.c:32:
../../include/wine/winbase.h:544: warning: 'packed' attribute ignored for field of type 'CHAR[8]'
In file included from ../../include/wine/module.h:12,
from win32.c:37:
../../include/wine/pe_image.h:60: warning: 'packed' attribute ignored for field of type 'BYTE'
../../include/wine/pe_image.h:62: warning: 'packed' attribute ignored for field of type 'BYTE'
../../include/wine/pe_image.h:64: warning: 'packed' attribute ignored for field of type 'BYTE'
../../include/wine/pe_image.h:66: warning: 'packed' attribute ignored for field of type 'BYTE'
../../include/wine/pe_image.h:67: warning: 'packed' attribute ignored for field of type 'BYTE'
../../include/wine/pe_image.h:69: warning: 'packed' attribute ignored for field of type 'BYTE'
In file included from win32.c:41:
../../include/com.h:63:7: warning: no newline at end of file
win32.c: In function 'my_mreq':
win32.c:276: warning: assignment makes integer from pointer without a cast
win32.c: In function 'my_release':
win32.c:295: warning: comparison between pointer and integer
win32.c: At top level:
win32.c:328: error: conflicting types for 'ext_unknown'
win32.h:1: error: previous declaration of 'ext_unknown' was here
win32.c: In function 'expGetModuleHandleA':
win32.c:436: warning: assignment makes pointer from integer without a cast
win32.c:1095:2: warning: #warning FIXME
win32.c: In function 'expMultiByteToWideChar':
win32.c:1097: error: missing terminating " character
win32.c:1098: error: 'size' undeclared (first use in this function)
win32.c:1098: error: (Each undeclared identifier is reported only once
win32.c:1098: error: for each function it appears in.)
win32.c:1098: error: 'd' undeclared (first use in this function)
win32.c:1098: error: 'dest' undeclared (first use in this function)
win32.c:1098: error: expected ')' before 'buffer'
win32.c:1098:23: error: invalid suffix "x" on integer constant
win32.c:1098: error: expected expression before '>' token
win32.c:1098: error: invalid use of void expression
win32.c:1098: error: stray '\' in program
win32.c:1101: error: missing terminating " character
win32.c:1102: error: expected ')' before 'buffer'
win32.c:1102:23: error: invalid suffix "x" on integer constant
win32.c:1102: error: expected expression before '>' token
win32.c:1102: error: invalid use of void expression
win32.c:1102: error: stray '\' in program
win32.c:1469:5: warning: unknown escape sequence '\;'
win32.c:1469:5: warning: unknown escape sequence '\w'
win32.c:1469:5: warning: unknown escape sequence '\;'
win32.c:1469:5: warning: unknown escape sequence '\w'
win32.c:1469:5: warning: unknown escape sequence '\s'
win32.c: In function 'expGetProcAddress':
win32.c:1596: warning: assignment makes integer from pointer without a cast
win32.c:1600: warning: return makes pointer from integer without a cast
win32.c: In function 'expCreateFileMappingA':
win32.c:1608: error: missing terminating " character
win32.c:1609:12: error: invalid suffix "x" on integer constant
win32.c:1609: error: expected ')' before numeric constant
win32.c:1609:28: error: invalid suffix "x" on integer constant
win32.c:1609:43: error: invalid suffix "x" on integer constant
win32.c:1609: warning: passing argument 1 of 'dbgprintf' makes pointer from integer without a cast
win32.c:1609: error: expected expression before '>' token
win32.c:1609: error: invalid use of void expression
win32.c:1609: error: stray '\' in program
win32.c:1609: error: missing terminating " character
win32.c:1610: error: expected statement before ')' token
win32.c:1611: error: expected expression before 'else'
win32.c:1612: error: missing terminating " character
win32.c:1613:12: error: invalid suffix "x" on integer constant
win32.c:1613:28: error: invalid suffix "x" on integer constant
win32.c:1613:43: error: invalid suffix "x" on integer constant
win32.c:1613:54: error: invalid suffix "x" on integer constant
win32.c:1613:59: warning: multi-character character constant
win32.c:1613: error: stray '\' in program
win32.c:1613: error: missing terminating " character
win32.c:1614: error: expected statement before ')' token
win32.c: In function 'expstrcpy':
win32.c:1841: warning: initialization makes integer from pointer without a cast
win32.c: In function 'expstrcat':
win32.c:1853: warning: initialization makes integer from pointer without a cast
win32.c: In function 'expmemmove':
win32.c:1859: warning: initialization makes integer from pointer without a cast
win32.c:1861: warning: return makes integer from pointer without a cast
win32.c: At top level:
win32.c:2566: error: conflicting types for 'LookupExternalByName'
win32.c:1598: error: previous implicit declaration of 'LookupExternalByName' was here
win32.c: In function 'my_garbagecollection':
win32.c:2623: warning: passing argument 1 of 'my_release' from incompatible pointer type
win32.c:2627: warning: passing argument 1 of 'my_release' from incompatible pointer type
win32.c:2631: warning: passing argument 1 of 'my_release' from incompatible pointer type
win32.c:2648: warning: passing argument 1 of 'free' makes pointer from integer without a cast
make[3]: *** [win32.lo] Erreur 1
make[3]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3/lib/loader »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3/lib »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/patrick/avi-xmms-1.2.3 »
make: *** [all-recursive-am] Erreur 2
En voilà du charabia !