Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382363 - x11-libs/qt-demo-4.7.4 fail to build for missing QtOpenVG
Summary: x11-libs/qt-demo-4.7.4 fail to build for missing QtOpenVG
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-09 09:39 UTC by Francesco Riosa
Modified: 2011-09-14 10:56 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
qt-demo-4.7.4:20110909-090856.log.gz (qt-demo-4.7.4:20110909-090856.log.gz,74.85 KB, text/plain)
2011-09-09 09:39 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2011-09-09 09:39:32 UTC
Created attachment 285923 [details]
qt-demo-4.7.4:20110909-090856.log.gz

... and it's blocking qtcreator

x86_64-pc-linux-gnu-g++ -Wl,-rpath-link,/var/tmp/portage/x11-libs/qt-demo-4.7.4/work/qt-everywhere-opensource-src-4.7.4/lib -Wl,-rpath,/usr/lib64/qt4 -Wl,-rpath,/usr/lib64/qt4 -o star .obj/debug-shared/starwidget.o .obj/debug-shared/main.o .obj/debug-shared/moc_starwidget.o    -L/usr/lib64 -L/var/tmp/portage/x11-libs/qt-demo-4.7.4/work/qt-everywhere-opensource-src-4.7.4/lib -L/usr/lib64/qt4 -lQtOpenVG -lQtGui -L/usr/lib64 -L/usr/X11R6/lib -lQtCore -lgthread-2.0 -lrt -lglib-2.0 -lOpenVG -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lQtOpenVG
collect2: ld returned 1 exit status
make[2]: *** [star] Error 1
make[2]: Leaving directory `/var/tmp/portage/x11-libs/qt-demo-4.7.4/work/qt-everywhere-opensource-src-4.7.4/examples/openvg/star'
make[1]: *** [sub-star-make_default] Error 2
make[1]: Leaving directory `/var/tmp/portage/x11-libs/qt-demo-4.7.4/work/qt-everywhere-opensource-src-4.7.4/examples/openvg'
make: *** [sub-openvg-make_default] Error 2


>hom>vivo emerge --info qt-demo
Portage 2.2.0_alpha54 (default/linux/amd64/10.0/no-multilib, gcc-4.6.0, glibc-2.13-r4, 3.0.3-fc15-aufs-x86_64 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.3-fc15-aufs-x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 09 Sep 2011 09:00:01 +0000
ccache version 3.1.6 [disabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1, 4.6.0
sys-devel/gcc-config:     1.5-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo vivovl x11
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -msse4.1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe -msse4.1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine  -fvisibility-inlines-hidden"
DISTDIR="/srv/distfiles"
EMERGE_DEFAULT_OPTS="--ask-enter-invalid"
FEATURES="assume-digests binpkg-logs buildpkg compress-build-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news noinfo parallel-fetch sandbox sfperms split-elog split-log strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.lagis.at/ http://mirror.qubenet.net/mirror/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS=""
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/g/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
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="/srv/portage"
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl akonadi alsa amd64 amr apache2 apm asf automount avahi avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo caps captury cdda cddb chm cjk cli compositor consolekit cracklib crypt cups curl cxx dbus decibel declarative dedicated device-mapper djvu dri dvdread emboss encode engines erandom exif exiv2 extrafilters fam fame ffmpeg firefox flac foomaticdb fortran frei0r gallium gdbm geos gif glitz gpm gstreamer gtk2 hdf hdf5 hpijs hpn htmlhandbook iconv idn imagemagick imlib iproute2 ipv6 ithreads jack java jingle jpeg jpeg2k justify kde kdehiddenvisibility kdepim kontact latex libg++ libwww lua lzma lzo mad messenger mikmod mjpeg mmx mng modules motif mp3 mpeg mplayer mudflap mysql ncurses nepomuk new-hpcups newxkb nls nptl nptlonly odbc ogdi ogg openexr opengl openmp pam pam_chroot pcre perl plasma plugins png policykit pppd private-headers pulseaudio python qt qt3support qt4 quicktime rdesktop readline realtime reiserfs samba sasl scanner schroedinger screen sdl semantic-desktop server session skey slang smp social-desktop spell sqlite3 sse sse2 sse3 ssl ssse3 startup-notification static-libs svg sysfs system-sqlite taglib tcltk tcpd telepathy theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter utils v4l v4l2 vnc vorbis webkit x264 xcb xcomposite xine xinerama xml xorg xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias reqtimeout" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2 directory canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs crypt dmsquash-live mdraid syslog uswsusp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp4200 net ricoh" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-libs/qt-demo-4.7.3 was built with the following:
USE="debug exceptions kde qt3support (-aqua) -pch"
CFLAGS="-O2 -march=core2 -pipe -msse4.1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ggdb"
CXXFLAGS="-O2 -march=core2 -pipe -msse4.1 --param=l1-cache-size=32 --param=l1-cache-line-size=64 --param=l2-cache-size=2048 -mtune=core2 -fgcse-after-reload -fpredictive-commoning -ftree-vectorize -funswitch-loops -fgraphite-identity -floop-block -floop-interchange -floop-strip-mine -ggdb"

>hom>vivo
Comment 1 Francesco Riosa 2011-09-09 09:53:03 UTC
is that activated by mkspecs/common/linux.conf 
QMAKE_LIBS_OPENVG     = -lOpenVG
???

Notice that mesa _has_ openvg use flag on:
[ebuild   R    ] media-libs/mesa-7.11  USE="classic egl gallium gles llvm nptl openvg shared-glapi -bindist -debug -gbm -motif -pax_kernel -pic (-selinux) -shared-dricore" VIDEO_CARDS="nouveau -intel -mach64 -mga -r128 -radeon -savage -sis -tdfx -via -vmware" 0 kB

possibly:
the automatic check see openvg available then fail to link too

a use flag for openvg should be added to qt-demo if openvg support is doable otherwise it should be forced off

regards,
francesco
Comment 2 jannis 2011-09-09 16:32:48 UTC
The problem is not within qt-demo but in qt-gui. qt-demo doesn't look for -lOpenVG (which exists) but for -lQtOpenVG (which doesn't exist).

qt-gui tries to build with support for OpenVG but somehow fails (due to a missing file (unmet dependency)?:

...
OpenVG auto-detection... ()
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -o openvg.o openvg.cpp
x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,-rpath,/usr/lib64/qt4 -o openvg openvg.o     -L/usr/lib64 -lgthread-2.0 -lrt -lglib-2.0 -lOpenVG 
OpenVG enabled.
ShivaVG auto-detection... ()
x86_64-pc-linux-gnu-g++ -c -pipe -Wall -W  -I../../../mkspecs/linux-g++ -I. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -I/usr/include -o shivavg.o shivavg.cpp
shivavg.cpp:42:23: schwerwiegender Fehler: vg/openvg.h: Datei oder Verzeichnis nicht gefunden
Kompilierung beendet.
gmake: *** [shivavg.o] Fehler 1
ShivaVG disabled.
...
OpenGL support ......... no
OpenVG support ......... yes
NAS sound support ...... no
...

When you look at the files that qt-gui-4.7.4 installs you find nothing that relates to QtOpenVG
Comment 3 Dell'Aica Valentino 2011-09-12 09:40:30 UTC
Confirmed on x86
Comment 4 MaratIK 2011-09-12 13:26:20 UTC
As a fix I propose that patch for the ebuild:


--- /usr/portage/x11-libs/qt-demo/qt-demo-4.7.4.ebuild.old  2011-09-08 13:19:47.000000000 +0400
+++ /usr/portage/x11-libs/qt-demo/qt-demo-4.7.4.ebuild    2011-09-12 17:18:30.367550003 +0400
@@ -44,7 +44,7 @@
 }

 src_configure() {
-       myconf="${myconf} $(qt_use qt3support)"
+       myconf="${myconf} $(qt_use qt3support) -no-openvg"
        qt4-build_src_configure
 }
Comment 5 Pim Vullers 2011-09-13 09:23:43 UTC
Another option is to install the qt-openvg package: http://gpo.zugaina.org/x11-libs/qt-openvg (renaming to 4.7.4 works fine).

I guess this package should be included in tree as it is a missing dependency for qt-demo, or the openvg demo should be disabled in qt-demo.
Comment 6 MaratIK 2011-09-13 09:30:40 UTC
(In reply to comment #5)
> Another option is to install the qt-openvg package:
> http://gpo.zugaina.org/x11-libs/qt-openvg (renaming to 4.7.4 works fine).
> 
> I guess this package should be included in tree as it is a missing dependency
> for qt-demo, or the openvg demo should be disabled in qt-demo.

I do not want openvg due to it depends on egl use-flag in qt-gui. But nvidia's proprietary driver does not support EGL.
Comment 7 Alex Alexander (RETIRED) gentoo-dev 2011-09-14 10:56:18 UTC
fixed by completely disabling openvg, at least until we get qt-openvg in the tree.

thanks for reporting :)