Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem emerging libsvg-cairo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kakalaky
n00b
n00b


Joined: 05 Oct 2004
Posts: 15

PostPosted: Tue Dec 12, 2006 5:17 am    Post subject: problem emerging libsvg-cairo Reply with quote

Emerging libsvg-cairo always fails with this:

Quote:
checking for libsvg >= 0.1.2 cairo >= 0.5.0... Package cairo was not found in the pkg-config search path. Perhaps you should add the directory containing 'cairo.pc' to the PKG_CONFIG_PATH environment variable No package 'cairo' found
configure: error: Library requirements (libsvg >= 0.1.2 cairo >= 0.5.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


anybody know how to fix this?
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Tue Dec 12, 2006 8:54 am    Post subject: Reply with quote

Code:
$ echo $PKG_CONFIG_PATH
/usr/qt/3/lib/pkgconfig
$ ls /usr/qt/3/lib/pkgconfig
qt-mt.pc
$ equery belongs /usr/qt/3/lib/pkgconfig/qt-mt.pc
[ Searching for file(s) /usr/qt/3/lib/pkgconfig/qt-mt.pc in *... ]
x11-libs/qt-3.3.6-r4 (/usr/qt/3/lib/pkgconfig/qt-mt.pc)


So, the path variable in question should point to the above directory which should contain only a single file that should have cairo specified in it. The file belongs to the x11-libs/qt-3.3.6-r4 package, according to equery. So, I would try to re-emerge that specific package. You might run into some confusion because you have to have both version 4 and version 3 installed at the same time. Therefore, try
Code:
# emerge -Dva =x11-libs/qt-3.3.6-r4


HTH,
m
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2460
Location: 異世界

PostPosted: Tue Dec 12, 2006 12:43 pm    Post subject: Reply with quote

Reinstalling Qt is pointless. Try:
Code:
emerge -atv1 cairo


Sveikinu
Arfrever
Back to top
View user's profile Send private message
Kakalaky
n00b
n00b


Joined: 05 Oct 2004
Posts: 15

PostPosted: Tue Dec 12, 2006 2:51 pm    Post subject: Reply with quote

Re-emerging qt didn't help, and emerging cairo fails because it wants to emerge libsvg-cairo first. Thanks anyway though.
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Tue Dec 12, 2006 4:15 pm    Post subject: Reply with quote

Arfrever wrote:
Reinstalling Qt is pointless.
Thank you for that insightful comment.

@Kakalaky: What does your PKG_CONFIG_PATH contain? Has it been a while since you did an etc-update? Have you done a revdep-rebuild recently? If not you might try that next.

Here is my /usr/qt/3/lib/pkgconfig/qt-mt.pc:
/usr/qt/3/lib/pkgconfig/qt-mt.pc:
prefix=/usr/qt/3
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
qt_config=qt warn_on release incremental link_prl nocrosscompiler dlopen_opengl minimal-config small-config medium-config large-config full-config styles tools kernel widgets dialogs iconview workspace network canvas table xml opengl sql release dll thread largefile stl ipv6 system-mng mng system-jpeg jpeg system-png png gif system-zlib cups nas bigcodecs x11sm xshape xinerama xcursor xrandr xrender xftfreetype tablet xkb dylib create_prl link_prl qt warn_on depend_includepath qmake_cache x11 x11inc create_libtool create_pc moc x11lib

Name: Qt
Description: Libqt-mt.so.3.3.6 Library
Version: 3.3.6
Libs: -L${libdir} -lqt-mt -L/usr/X11R6/lib -laudio -lXt -lmng -ljpeg -lpng -lz -lXi -lXrender -lXrandr -lXc
ursor -lXinerama -lXft -lfreetype -lfontconfig -lXext -lX11 -lm -lSM -lICE -ldl -lpthread 
Cflags: -DQT_SHARED -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -D_REENTRANT -I${includedir}

_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
Arfrever
Bodhisattva
Bodhisattva


Joined: 29 Apr 2006
Posts: 2460
Location: 異世界

PostPosted: Wed Dec 13, 2006 11:51 am    Post subject: Reply with quote

Try:
Code:
USE="-svg" emerge -1 cairo && emerge -1 libsvg-cairo && emerge -1 cairo

If it fails, post the output of:
Code:
emerge -ptv cairo


Sveikinu
Arfrever
Back to top
View user's profile Send private message
madisonicus
Veteran
Veteran


Joined: 20 Sep 2006
Posts: 1130

PostPosted: Mon Jan 08, 2007 11:48 pm    Post subject: Reply with quote

Having just run into this problem myself while doing an amd64 installation, this is the trick:
Code:
# USE="-* X" emerge -1 cairo
Then continue the emerge.
_________________
Please add [SOLVED] to your message title if you feel that your question has been answered.
------
Intel Q9300 Core2 Quad * Gigabyte GA-EP35C-DS3R
Samsung x360
AMD64 x2 4200+ * TF7050-M2 * HTPC
ZOTAC ION A-U Mini-ITX * HTPC
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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