Précédent   Forum des professionnels en informatique > Général Développement > Programmation système > Linux > GTK
GTK Vos questions sur GTK sous Linux
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 30/10/2011, 13h33   #1
Invité de passage
 
Homme
Ingénieur après-vente
Inscription : mai 2011
Messages : 5
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Ingénieur après-vente
Secteur : Enseignement

Informations forums :
Inscription : mai 2011
Messages : 5
Points : 0
Points : 0
Par défaut installation de GTK sous Linux CentOS.

Bonjour tout le monde ,

Je voudrai installer GTK sur mon ordi (Linux Cent0S 5.6, arch 64bits). J'ai suivi le tuto suivant : http://nicolasj.developpez.com/gtk/installation/
Pour être sur que ces instructions fonctionne, j'ai pris les mêmes versions :

- glib-2.12.0
- cairo-1.2.0
- atk-1.10.3
- pango-1.13.2
- gtk+-2.10.0

j'ai réussi à installer glib sans difficulté mais impossible d'installer cairo.

Voici ma commande :
Citation:
cd cairo-1.2.0
./configure –prefix=/opt/gtk
Voici ce que me retourne le terminal aprés quelque secondes :
Citation:
configure: error: Cairo requires at least one font backend.
Please install freetype and fontconfig, then try again:
http://freetype.org/ http://fontconfig.org/
Trés bien, alors je tente d'installer ce qu'il me demande avec yum :
Citation:
[root:/home/thierry/Install/flashplayer]$ yum install freetype
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.opendoc.net
* extras: mirror.opendoc.net
* rpmforge: fr2.rpmfind.net
* updates: mirror.opendoc.net
Setting up Install Process
Package freetype-2.2.1-28.el5_5.1.x86_64 already installed and latest version
Package freetype-2.2.1-28.el5_5.1.i386 already installed and latest version
Nothing to do
Citation:
[root:/home/thierry/Install/flashplayer]$ yum install fontconfig
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.opendoc.net
* extras: mirror.opendoc.net
* rpmforge: fr2.rpmfind.net
* updates: mirror.opendoc.net
Setting up Install Process
Package fontconfig-2.5.93-7.x86_64 already installed and latest version
Package fontconfig-2.5.93-7.i386 already installed and latest version
Nothing to do
Il semblerai donc que freetype et frontconfig soient déjà installé. Alors pourquoi lorsque je fait un test avec pkg-config j'ai ça ? :
Citation:
[root:/home/thierry/Install/gtk/cairo-1.2.0]$ pkg-config --modversion fontconfig
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found

[root:/home/thierry/Install/gtk/cairo-1.2.0]$ pkg-config --modversion freetype
Package freetype was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype' found

[root:/home/thierry/Install/gtk/cairo-1.2.0]$ pkg-config --modversion freetype2
Package freetype2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `freetype2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'freetype2' found
Voici comment est configuré PKG_CONFIG_PATH :
Citation:
$PKG_CONFIG_PATH
bash: /opt/gtk/lib/pkgconfig/:: Aucun fichier ou répertoire de ce type
Dans le répertoire /opt/gtk/lib/pkgconfig/ j'ai plein de fichiers "bidule.pc", mais pas de freetype.pc ou frontconfig.pc

Comment faut-il faire pour que freetype et frontconfig soit trouvées par les scriptes d'installation de cairo ?

j'ai aussi posté ce message ici :
http://fr.centos.org/forums/viewtopic.php?f=13&t=1007
MrVic est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/10/2011, 14h08   #2
Membre éclairé
 
Inscription : janvier 2007
Messages : 329
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 329
Points : 328
Points : 328
Bonjour,

Au lieu de compiler les paquets à la main, ce qui risque de poser des problèmes si tu écrases une version plus récente fournie par CentOS, passe simplement par Yum et installe les paquets "-devel" associés à gtk.

En l'occurence: Les dépendances (glib, cairo, ...) devraient s'installer automatiquement.

D'une manière générale :
  • ne jamais compiler un programme ou une lib déjà fourni par l'OS sauf si tu sais vraiment ce que tu fais
  • si pkg-config ne marche pas, c'est qu'il manque le paquet "-devel" associé à ta lib

-
monnomamoi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/10/2011, 14h14   #3
Invité de passage
 
Homme
Ingénieur après-vente
Inscription : mai 2011
Messages : 5
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Ingénieur après-vente
Secteur : Enseignement

Informations forums :
Inscription : mai 2011
Messages : 5
Points : 0
Points : 0
Bon, alors je viens juste d'essayer "yum install gtk2" :

Citation:
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: ftp.free.fr
* extras: ftp.free.fr
* rpmforge: apt.sw.be
* updates: centos.intergenia.de
Setting up Install Process
Package gtk2-2.10.4-21.el5_5.6.x86_64 already installed and latest version
Package gtk2-2.10.4-21.el5_5.6.i386 already installed and latest version
apparemment je l'ai déjà d'installé. problème, lorsque j'installe amule j'ai le message d'erreur suivant :
Citation:
*** 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.
comment dois je faire pour que l'installation de ce logiciel tienne compte de gtk2-2.10.4-21 qui est présent sur mon ordi ?
MrVic est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/10/2011, 14h16   #4
Membre éclairé
 
Inscription : janvier 2007
Messages : 329
Détails du profil
Informations forums :
Inscription : janvier 2007
Messages : 329
Points : 328
Points : 328
Je viens de le dire : installe gtk2-devel !!!

monnomamoi est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 30/10/2011, 16h50   #5
Invité de passage
 
Homme
Ingénieur après-vente
Inscription : mai 2011
Messages : 5
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France

Informations professionnelles :
Activité : Ingénieur après-vente
Secteur : Enseignement

Informations forums :
Inscription : mai 2011
Messages : 5
Points : 0
Points : 0
oki, ça a marché
Merci.
MrVic est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 09h58.


 
 
 
 
Partenaires

Hébergement Web