Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 692348 - media-video/avidemux-2.7.3 USE=opengl with media-libs/mesa USE=gles2 : .../work/avidemux2-2.7.4/avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_dummyWidget.cpp:12:18: error: ‘GL_PROJECTION’ was not declared in this scope; did you mean ‘GL_LOCATION’?
Summary: media-video/avidemux-2.7.3 USE=opengl with media-libs/mesa USE=gles2 : .../wo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-17 10:37 UTC by Bernd Feige
Modified: 2019-08-28 22:52 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.xz,26.48 KB, application/x-xz)
2019-08-17 12:50 UTC, Bernd Feige
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd Feige 2019-08-17 10:37:39 UTC
Current avidemux (same for even more current 2.7.4) doesn't compile with opengl on my system:
avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_dummyWidget.cpp:12:18: error: ‘GL_PROJECTION’ was not declared in this scope; did you mean ‘GL_LOCATION’?
avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_dummyWidget.cpp:12:5: error: ‘glMatrixMode’ was not declared in this scope
avidemux/qt4/ADM_userInterfaces/ADM_gui/Q_dummyWidget.cpp:13:5: error: ‘glLoadIdentity’ was not declared in this scope
...

This seems to indicate that some compatibility code is missing.
I'm using current media-libs/mesa-19.1.4 with USE flags: classic dri3 egl gallium gbm gles2 llvm lm_sensors vaapi vdpau vulkan wayland xvmc

I was able to get it to compile by disabling opengl. Unexpectedly, compiling with -opengl alone did not help because the opengl flag is not passed to cmake in the ebuild. The line:
	-DOPENGL="$(usex opengl)"
needs to be added to mycmakeargs in both avidemux and avidemux-plugins ebuilds.
Comment 1 Jonas Stein gentoo-dev 2019-08-17 11:48:35 UTC
Thank you for the report. Please recompile and 
*attach* the logfiles and 
paste the emerge info as described on
https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
We need to have all information at hand before ticket assignment, so that the maintainer can look after it in one session with minimal number of callbacks.
Please reopen this ticket (Status:unconfirmed) afterwards.
Comment 2 Bernd Feige 2019-08-17 12:49:14 UTC
emerge --info media-video/avidemux

Portage 2.3.71 (python 3.7.4-final-0, default/linux/amd64/17.1/systemd, gcc-9.2.0, glibc-2.29-r4, 5.2.8-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.8-gentoo-x86_64-AMD_Ryzen_7_1700_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    32891984 total,  10008928 free
KiB Swap:    9214972 total,   9213936 free
Timestamp of repository gentoo: Sat, 17 Aug 2019 05:15:01 +0000
Head commit of repository gentoo: a652b0ad3bdc29210b8302ac5b882888daf1b625
Head commit of repository flatpak-overlay: 7be4bb289d57839ec18ae118f830981a4bbde5bc

sh bash 5.0_p9
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.2 [enabled]
app-shells/bash:          5.0_p9::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.7.4-r1::gentoo
dev-util/ccache:          3.7.2::gentoo
dev-util/cmake:           3.15.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

flatpak-overlay
    location: /gentoo/local/flatpak-overlay
    sync-type: git
    sync-uri: https://github.com/fosero/flatpak-overlay.git
    masters: gentoo
    priority: 50

science
    location: /gentoo/local/layman/science
    masters: gentoo
    priority: 50

bfown
    location: /gentoo/overlay
    masters: gentoo science
    priority: 100

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=znver1 -O2 -pipe"
DISTDIR="/gentoo/distfiles/"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ https://ftp.fau.de/gentoo http://distfiles.gentoo.org"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j16"
PKGDIR="/gentoo/packages/x64"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="R X a52 aac aacs acl acpi afs alsa amd64 audit bacula-clientonly bdplus berkdb blas bluetooth bluray btrfs bzip2 cairo caps cddb cdparanoia cdr cli clutter colord colorio cpudetection crypt cscope cups cxx dbus dga djvu dri dri3 dv dvd dvdr dvdread dvi eds enblend encode evo exif ext4 extrafilters faac ffmpeg fftw flac fluidsynth fontconfig fortran fuse g3dvl gdbm gegl gif gimp gles2 gmp gnome gnome-keyring gnome-shell gnutls graphics graphviz gs gstreamer gtk gtk3 hddtemp hdri heif iconv icu id3tag imagemagick introspection ipv6 ipython jack java jbig jingle jpeg jpeg2k kerberos kpathsea ladspa lame lapack latex lcms ldap lensfun libdrm libnotify libtirpc lm_sensors lv2 lyx lzma lzo mad matplotlib matroska md5sum midi mjpeg mng mp2 mp3 mpeg mtp multilib musepack nautilus ncurses nfs nls nptl numpy office ofx ogg openal opencl opencv openexr opengl openh264 openmp opus otr pam pcre pda pdf pep8 playlist plotutils plugins png pnm policykit postgres postscript pulseaudio pylint python qt3support quicktime radio rar raw readline real rtc rtmp rubberband sbsms scanner science scipy seccomp sendto sift sndfile sound soundtouch speex spell split-usr sqlite ssl svg systemd t1lib taglib tcpd telepathy theora threads tiff tivo tracker truetype twolame udev udisks umfpack unicode upnp user-session v4l vaapi vamp vdpau vim-syntax vorbis vpx vulkan wayland webengine webp win32codecs wmf x264 xattr xcomposite xetex xinerama xml xmp xmpp xps xv xvid xvmc zeromq zlib zoran" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2 samsung" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python3_7" QEMU_SOFTMMU_TARGETS="x86_64 i386 arm aarch64" QEMU_USER_TARGETS="x86_64 i386 arm aarch64" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp5590 mustek" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

media-video/avidemux-2.7.4::bfown was built with the following:
USE="nls qt5 vaapi vdpau xv -debug -nvenc -opengl -sdl" ABI_X86="(64)"
CXXFLAGS="-march=znver1 -O2 -pipe -std=c++14"
Comment 3 Bernd Feige 2019-08-17 12:50:52 UTC
Created attachment 587156 [details]
build.log
Comment 4 Stefan Strogin gentoo-dev 2019-08-25 18:37:02 UTC
Thanks for the report, but you are trying to build avidemux-2.7.4 which is not in the tree yet.
I have avidemux-2.7.3[opengl] installed with mesa[gles2].

Please reproduce the bug with the actual package version and reopen. And when you do it please check that avidemux-core is of the same version as avidemux.
Comment 5 Bernd Feige 2019-08-28 19:14:49 UTC
2.7.4 is in the tree in the meantime. Same error (after fixing https://bugs.gentoo.org/692898 that is). Removed all of my own mods and started fresh. I'd really preferred if the error had just gone away.
Probably then the problem is not USE=gles2 in mesa, if it works for you. Must be something else then... Any idea?
Comment 6 Stefan Strogin gentoo-dev 2019-08-28 22:40:28 UTC
Sorry for the delay. You are right, of course.
We must add -DOPENGL="$(usex opengl)".
Comment 7 Larry the Git Cow gentoo-dev 2019-08-28 22:52:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=06a204eaf47f82501e506350860c3100329c5359

commit 06a204eaf47f82501e506350860c3100329c5359
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-08-28 22:46:22 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-08-28 22:46:22 +0000

    media-video/avidemux: respect USE=opengl
    
    Reported-by: Bernd Feige <bernd.feige@gmx.net>
    Closes: https://bugs.gentoo.org/692348
    Package-Manager: Portage-2.3.73, Repoman-2.3.17
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 media-video/avidemux/avidemux-2.7.4-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d1f63018e0cc84dae2833d1e8faa242ea641b86

commit 6d1f63018e0cc84dae2833d1e8faa242ea641b86
Author:     Stefan Strogin <steils@gentoo.org>
AuthorDate: 2019-08-28 22:51:19 +0000
Commit:     Stefan Strogin <steils@gentoo.org>
CommitDate: 2019-08-28 22:51:19 +0000

    media-libs/avidemux-plugins: respect USE=opengl
    
    Reported-by: Bernd Feige <bernd.feige@gmx.net>
    Bug: https://bugs.gentoo.org/692348
    Package-Manager: Portage-2.3.73, Repoman-2.3.17
    Signed-off-by: Stefan Strogin <steils@gentoo.org>

 media-libs/avidemux-plugins/avidemux-plugins-2.7.4.ebuild | 1 +
 1 file changed, 1 insertion(+)