Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge media-libs/opencv-3.2.0-r3
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
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Mon Nov 12, 2018 5:18 pm    Post subject: Failed to emerge media-libs/opencv-3.2.0-r3 Reply with quote

Code:
/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2039:32: note: suggested alternative: ‘AVFMT_NOFILE’
     if (!(oc->oformat->flags & AVFMT_RAWPICTURE)) {
                                ^~~~~~~~~~~~~~~~
                                AVFMT_NOFILE
/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp: In static member function ‘static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, AVCodecID, int, int, int, double, AVPixelFormat)’:
/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2338:25: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2338:25: note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
                         AV_CODEC_FLAG_GLOBAL_HEADER
make[2]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/build.make:159: modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o] Error 1
make[2]: Leaving directory '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0-abi_x86_64.amd64'
make[1]: *** [CMakeFiles/Makefile2:1425: modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make[1]: Leaving directory '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0-abi_x86_64.amd64'
make: *** [Makefile:163: all] Error 2
 * ERROR: media-libs/opencv-3.2.0-r3::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/opencv-3.2.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-3.2.0-r3::gentoo'`.
 * The complete build log is located at '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/temp/build.log'.
 * The ebuild environment file is located at '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/temp/environment'.
 * Working directory: '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0-abi_x86_64.amd64'
 * S: '/mnt/twardy/tmp/portage/media-libs/opencv-3.2.0-r3/work/opencv-3.2.0'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =opencv-3.2.0


Code:
# emerge --info =opencv-3.2.0
Portage 2.3.51 (python 2.7.15-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.27-r6, 4.14.65-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.6
KiB Mem:     8072568 total,    584040 free
KiB Swap:    9484148 total,   9483884 free
Timestamp of repository gentoo: Mon, 12 Nov 2018 12:00:01 +0000
Head commit of repository gentoo: 1290aa226a91adaf3bc7435fca0c56f45c824f09
Head commit of repository steam-overlay: 81325bfb1a2d0650a1f187b1e9f8274482457ee6

sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p5) 2.30.0
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.15::gentoo, 3.5.5::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.38.3::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            7.3.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.27-r6::gentoo
Repositories:

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

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay/
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/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-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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://mirror.bytemark.co.uk/gentoo/ ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl en en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/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 --exclude=/.git"
PORTAGE_TMPDIR="/mnt/twardy/tmp"
USE="12bit X a52 aac acl acpi activities alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cups cxx cycles dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg fftw flac fortran freesound frei0r gdbm gif gpm gtk iconv ipv6 javafx jpeg kde kipi kwallet ladspa lcms ldap libnotify libsamplerate libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl nvenc ogg openal opencv opengl openimageio openmp pam pango pcre pdf phonon plasma png policykit postproc ppds qml qt5 readline rtaudio scanner sdl seccomp semantic-desktop spell ssl startup-notification svg tcpd theora tiff truetype udev udisks unicode upower usb uvm vaapi vdpau vorbis widgets wxwidgets x264 x265 xattr xcb xcomposite xml xv xvid zlib" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 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="evdev" KERNEL="linux" L10N="pl en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel nvidia" 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
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Mon Nov 12, 2018 5:48 pm    Post subject: Reply with quote

opencv need a patch for work with >=ffmpeg-4.0 https://github.com/ilovezfs/opencv/commit/99091a62463ecd4a8e26b17b10f259ea6f104c62
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Xywa
Veteran
Veteran


Joined: 23 Jul 2005
Posts: 1631
Location: /mnt/Gentoo/Europe

PostPosted: Wed Nov 14, 2018 2:28 pm    Post subject: Reply with quote

fedeliallalinea wrote:
opencv need a patch for work with >=ffmpeg-4.0 https://github.com/ilovezfs/opencv/commit/99091a62463ecd4a8e26b17b10f259ea6f104c62


Sorry, but I forgot. How to apply this patch? I did last one yeras ago.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30885
Location: here

PostPosted: Wed Nov 14, 2018 2:30 pm    Post subject: Reply with quote

Xywa wrote:
Sorry, but I forgot. How to apply this patch? I did last one yeras ago.

With /etc/portage/patches
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2060
Location: San Jose, CA

PostPosted: Sat Dec 22, 2018 6:35 pm    Post subject: Reply with quote

Sorry to bother you guys but how do I convert this commit to a patch file?

Usually there's an option on the web page for a plain text diff or patch, but there doesn't seem to be one on that page.

Everything I've googled implies you have to clone the whole tree and then generate a patch, but that seems unnecessarily complicated.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Dec 22, 2018 6:55 pm    Post subject: Reply with quote

Does https://github.com/ilovezfs/opencv/commit/99091a62463ecd4a8e26b17b10f259ea6f104c62.patch not work for you? What does patch print when you try to apply it?
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2060
Location: San Jose, CA

PostPosted: Sat Dec 22, 2018 8:01 pm    Post subject: Reply with quote

Thanks. I didn't realize I could just add .patch to the end.

I ended up unmasking the next version of opencv and emerged it.
_________________
Some day there will only be free software.
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