Gentoo Archives: gentoo-alt

From: Jeremy Olexa <darkside@g.o>
To: "gentoo-alt@l.g.o" <gentoo-alt@l.g.o>
Subject: Re: [gentoo-alt] Qt and pkg-config
Date: Thu, 14 Mar 2013 11:42:29
Message-Id: CAMxqorWT6Y7H+XBY_Z2L2m_U+pusZBm7TK1Bw2GVGkMjYgZAPw@mail.gmail.com
In Reply to: [gentoo-alt] Qt and pkg-config by Sylvain Chevallier
1 On Friday, March 8, 2013, Sylvain Chevallier wrote:
2
3 > Hi all,
4 > I just solve a Qt issue that you may encounter. I use prefix on OS X.
5 > I try to compile sci-visualization/gnuplot with the support for Qt
6 > terminal (USE=qt4) and it failed during linking with the following error:
7 >
8 > x86_64-apple-darwin12-g++ -march=nocona -O2 -pipe
9 > -Wl,-dead_strip_dylibs -Wl,-rpath,/myprefix/gentoo/usr/lib/qt4
10 > -Wl,-dead_strip_dylibs -lpng15 -o gnuplot alloc.o axis.o binary.o
11 > breaders.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o
12 > gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o
13 > internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o
14 > plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o
15 > standard.o stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o
16 > util3d.o variable.o version.o gp_cairo.o gp_cairo_helpers.o qt_term.o
17 > qt_term_mac.o -lreadline -lncurses -lz -lgd -ljpeg -lz -liconv -ljpeg
18 > -lfreetype -lpng QtNetwork QtSvg QtGui -F/myprefix/gentoo/usr/lib/qt4
19 > -framework QtCore -laquaterm -framework Foundation -lz -lpangocairo-1.0
20 > -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 -lintl -framework Cocoa
21 > x86_64-apple-darwin12-g++: QtNetwork : No such file or directory
22 > x86_64-apple-darwin12-g++: QtSvg : No such file or directory
23 > x86_64-apple-darwin12-g++: QtGui : No such file or directory
24 > make[3]: *** [gnuplot] Error 1
25 >
26 > It turns out that pkg-config is responsible, in fact it is
27 > dev-util/pkgconf, a pkg-config "compatible" replacement that triggers the
28 > error by misinterpreting the Qt*.pc files. After an emerge -C pkgconf &&
29 > emerge -1 pkgconfig, everything is back in order.
30
31
32 Thanks for reporting. Did you file a bug report too? That would be more
33 useful so the pkgconf maintainer can see it too.
34 Cheers.