Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562846 - =media-sound/qmmp-1.0.0[projectm] qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:65:18: error: ‘GL_SMOOTH’ was not declared in this scope glShadeModel(GL_SMOOTH);
Summary: =media-sound/qmmp-1.0.0[projectm] qmmp-1.0.0/src/plugins/Visual/projectm/proj...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markos Chandras (RETIRED)
URL: https://sourceforge.net/p/qmmp-dev/ti...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2015-10-11 17:45 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2015-10-18 10:44 UTC (History)
1 user (show)

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


Attachments
build.log.xz (build.log.xz,12.07 KB, application/x-xz)
2015-10-11 17:45 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details
qconfig.pri (qconfig.pri,1.36 KB, text/plain)
2015-10-16 09:49 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-10-11 17:45:54 UTC
Created attachment 414370 [details]
build.log.xz

[ 43%] Building CXX object src/plugins/Visual/projectm/CMakeFiles/projectm.dir/projectmwidget.cpp.o                                                             
cd /var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm && /usr/bin/x86_64-pc-linux-gnu-g++  -DQMMP_WS_X11 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -Dprojectm_EXPORTS  -DNDEBUG -march=native -mtune=native -O2 -pipe  -fPIC -I/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm -isystem /usr/local/include -I/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/../../.. -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++    -DPROJECTM_CONFIG=\"/usr/share/projectM/config.inp\" -fPIC -o CMakeFiles/projectm.dir/projectmwidget.cpp.o -c /var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp: In member function ‘virtual void ProjectMWidget::initializeGL()’:
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:65:18: error: ‘GL_SMOOTH’ was not declared in this scope
     glShadeModel(GL_SMOOTH);
                  ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:65:27: error: ‘glShadeModel’ was not declared in this scope
     glShadeModel(GL_SMOOTH);
                           ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:70:28: error: ‘glMatrixMode’ was not declared in this scope
     glMatrixMode(GL_TEXTURE);
                            ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:71:20: error: ‘glLoadIdentity’ was not declared in this scope
     glLoadIdentity();
                    ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:72:18: error: ‘GL_PROJECTION’ was not declared in this scope
     glMatrixMode(GL_PROJECTION);
                  ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:74:18: error: ‘GL_MODELVIEW’ was not declared in this scope
     glMatrixMode(GL_MODELVIEW);
                  ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:76:25: error: ‘glDrawBuffer’ was not declared in this scope
     glDrawBuffer(GL_BACK);
                         ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:77:25: error: ‘glReadBuffer’ was not declared in this scope
     glReadBuffer(GL_BACK);
                         ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:80:14: error: ‘GL_LINE_SMOOTH’ was not declared in this scope
     glEnable(GL_LINE_SMOOTH);
              ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:81:14: error: ‘GL_POINT_SMOOTH’ was not declared in this scope
     glEnable(GL_POINT_SMOOTH);
              ^
/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0/src/plugins/Visual/projectm/projectmwidget.cpp:83:28: error: ‘glLineStipple’ was not declared in this scope
     glLineStipple(2, 0xAAAA);
                            ^
src/plugins/Visual/projectm/CMakeFiles/projectm.dir/build.make:92: recipe for target 'src/plugins/Visual/projectm/CMakeFiles/projectm.dir/projectmwidget.cpp.o' failed
make[2]: *** [src/plugins/Visual/projectm/CMakeFiles/projectm.dir/projectmwidget.cpp.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0'
CMakeFiles/Makefile2:1357: recipe for target 'src/plugins/Visual/projectm/CMakeFiles/projectm.dir/all' failed
make[1]: *** [src/plugins/Visual/projectm/CMakeFiles/projectm.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0'
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-sound/qmmp-1.0.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-sound/qmmp-1.0.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-sound/qmmp-1.0.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-sound/qmmp-1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-sound/qmmp-1.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0'
 * S: '/var/tmp/portage/media-sound/qmmp-1.0.0/work/qmmp-1.0.0'

>>> Failed to emerge media-sound/qmmp-1.0.0, Log file:

>>>  '/var/tmp/portage/media-sound/qmmp-1.0.0/temp/build.log'

 * Messages for package media-sound/qmmp-1.0.0:

 * ERROR: media-sound/qmmp-1.0.0::gentoo failed (compile phase):
 *   emake failed



# emerge --info qmmp
Portage 2.2.23 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3-asneeded, glibc-2.20-r2, 4.1.10 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.10-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2389-with-gentoo-2.2
KiB Mem:    24752656 total,  13928676 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sun, 11 Oct 2015 06:00:01 +0000
Timestamp of repository poly-c: Sun, 11 Oct 2015 16:05:05 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo, 3.5.0-r1::gentoo
dev-util/cmake:           3.3.2-r1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.6.4::gentoo, 4.8.5::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /var/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.254/gentoo-portage
    priority: -1000

kde-sunset
    location: /var/lib/layman/kde-sunset
    masters: gentoo
    priority: 0

palemoon
    location: /var/lib/layman/palemoon
    masters: gentoo
    priority: 1

poly-c
    location: /usr/local/portage
    masters: gentoo
    priority: 2

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-3.0"
CONFIG_PROTECT_MASK="/etc/X11/Sessions /etc/X11/app-defaults /etc/X11/xinit /etc/adobe /etc/bonobo-activation /etc/ca-certificates /etc/ca-certificates.conf /etc/dbus-1 /etc/dconf /etc/env.d /etc/fonts /etc/fonts/fonts.conf /etc/foomatic /etc/games /etc/gconf /etc/gentoo-release /etc/gimp /etc/gnome-vfs-2.0 /etc/gre.d /etc/gtk-2.0 /etc/hp /etc/hsqldb /etc/htdig /etc/init.d /etc/iproute2 /etc/java-config-2 /etc/lftp /etc/logrotate.d /etc/ntop /etc/opt /etc/pango /etc/profile.d /etc/qt4 /etc/revdep-rebuild /etc/sandbox.d /etc/sasl2 /etc/sensors.d /etc/sgml /etc/sound /etc/ssl /etc/ssmtp /etc/t1lib /etc/terminfo /etc/vbox /etc/xdg /etc/xinetd.d /etc/xml"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=y --misspell-suggestions=n --autounmask=n --quiet-build=n --verbose-slot-rebuilds=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
INSTALL_MASK="/etc/systemd /lib/systemd /lib32/systemd /lib64/systemd /usr/lib/systemd /usr/lib32/systemd /usr/lib64/systemd /etc/init.d/functions.sh"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/opt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 c++0x cairo caps cdda cdr cli consolekit cracklib crypt css cups cxx dbus declarative dri dts dvd dvdr emboss encode exif faac ffmpeg firefox flac gdbm gif glamor gles2 gmp gnutls gtk iconv icu idn imagemagick inotify jpeg jpeg2k kde kipi lame lcms libcanberra libnotify lzma mac mad matroska midi mmap mmx mmxext mng modules mp3 mp4 mpeg mpfr multilib ncurses nls nptl nsplugin ogg opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 quicktime readline rtmp schroedinger sdl seccomp session slang speex spell sse sse2 ssl startup-notification svg theora threads tiff truetype twolame udev udisks unicode upower usb vaapi vcd vdpau vorbis vpx wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zlib zsh-completion" ABI_X86="64" ALSA_CARDS="emu10k1 hda-intel usb-audio" APACHE2_MODULES="access_compat alias auth_digest authn_anon auth_basic authn_core authn_default authn_file authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dir env file_cache filter headers include info log_config mime mime_magic rewrite status unique_id unixd userdir vhost_alias" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LIBREOFFICE_EXTENSIONS="pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="amdgpu r600 radeon radeonsi"
USE_PYTHON="2.7 3.4 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-sound/qmmp-1.0.0::gentoo was built with the following:
USE="aac alsa -analyzer -bs2b cdda -cover crossfade -cue -curl dbus -enca ffmpeg flac -game -jack kde -ladspa -libsamplerate -lyrics mad -midi -mms -modplug -mplayer -mpris -musepack -notifier opus -oss -projectm (-pulseaudio) -qsui -scrobbler -sndfile stereo -tray udisks vorbis -wavpack" ABI_X86="64"
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2015-10-12 19:36:35 UTC
Does it help if you enable the 'gles2' useflag on qtopengl-5.4.X?
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-10-13 08:40:20 UTC
(In reply to Markos Chandras from comment #1)
> Does it help if you enable the 'gles2' useflag on qtopengl-5.4.X?

gles2 USE flag is already globally enabled.
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2015-10-15 19:18:25 UTC
Do you have "media-libs/glew" installed?
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2015-10-15 19:38:09 UTC
upstream also requested your /usr/lib/qt5/mkspecs/qconfig.pri. Can you please attach it here?
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-10-16 09:49:07 UTC
Created attachment 414700 [details]
qconfig.pri

(In reply to Markos Chandras from comment #3)
> Do you have "media-libs/glew" installed?

[ebuild   R    ] media-libs/glew-1.13.0:0/1.13::gentoo  USE="-doc -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2015-10-18 10:00:53 UTC
According to what upstream says, QtGui needs to be compiled with -gles2 for projectm to work. See upstream ticket and related svn commit
Comment 7 Markos Chandras (RETIRED) gentoo-dev 2015-10-18 10:44:00 UTC
committed