Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[DEV] Problème avec "pkg-config"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
davidou2a
Guru
Guru


Joined: 15 Dec 2006
Posts: 574
Location: Ajaccio

PostPosted: Tue Feb 03, 2009 8:58 pm    Post subject: [DEV] Problème avec "pkg-config" Reply with quote

Salut à tous, en effet j'ai un souçi avec pkg-config...

Voyez plutôt :

Code:
davidou@JokeBox ~ $ `pkg-config --cflags --libs gtk+-2.0`
bash: -I/usr/include/gtk-2.0: Aucun fichier ou répertoire de ce type


Pour les applis compilés avec "Codeblocks" par exemple, elles s'executent que dans l'IDE avec la commande "RUN", hors de l'IDE en cliquant sur l'icone elle ne fonctionnent plus...

Code:
JokeBox davidou # emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo i686)
=================================================================
System uname: Linux-2.6.28-gentoo-i686-Intel-R-_Pentium-R-_Dual_CPU_T2310_@_1.46GHz-with-glibc2.0
Timestamp of tree: Tue, 03 Feb 2009 19:45:02 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bluetooth bzip2 cairo cdaudio cdr cdrom cli cracklib crypt dbus dhcpcd dri dvd dvdnav dvdr dvdread encode fam ffmpeg firefox fortran gdbm gif gpm gtk hal hunspell iconv ipv6 ipw3945 joystick jpeg jpeg2k libnotify mad midi mikmod mime mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl openmp pam pcmcia pcre pdf perl png ppds python quicktime readline reflection sdl sdl-image sdl-sound sdlaudio session spell sqlite sse sse2 sse3 sse4.1 sse4.2 sse4a sse5 ssh ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype unicode usb vorbis wifi win32codecs x86 xfce xml xorg xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


j'ai tenté de chercher rien à faire...

Code:
# emerge -1 gtk+ glib pkgconfig

ne fonctionne pas non plus...

An Idea??? :idea:

D'avance merçi...
_________________
L'enfer je connais, il s'appelle Windows...
Back to top
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Tue Feb 03, 2009 10:22 pm    Post subject: Re: [DEV] Problème avec "pkg-config" Reply with quote

davidou2a wrote:

Code:
davidou@JokeBox ~ $ `pkg-config --cflags --libs gtk+-2.0`
bash: -I/usr/include/gtk-2.0: Aucun fichier ou répertoire de ce type


Heu, en l'occurence, y a pas de bug la, le comportement est 100% normal. Enlève les backticks !

La, tu tentes d'exécuter (les backticks ``) le résultat de la commande pkg-config --cflags --libs gtk+-2.0
Il est normal qu'il te dise que le fichier -I/usr/include/gtk-2.0 n'existe pas, car... il n'existe pas :p
Mais le fait qu'il te dise ça montre bien qu'il sort le bon résultat :
Code:
$ pkg-config --cflags --libs gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lz -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

_________________
Merci de respecter les règles du forum.

Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum