fatal error: 'third_party/ffmpeg/ffmpeg_stubs.h' file not found

79 views
Skip to first unread message

EmanueL Czirai

unread,
Sep 22, 2014, 12:32:12 AM9/22/14
to chromi...@chromium.org
Hey guys(men&women implied :) )
I'm new here, first post and my first attempt at compiling chromium.
Could anyone offer a hint (or maybe link me to a rtfm) as to why this file isn't found:
'third_party/ffmpeg/ffmpeg_stubs.h' file not found

Thank you in advance.

full error is:

FAILED: clang++ -MMD -MF obj/media/base/media.media_posix.o.d -DV8_DEPRECATION_WARNINGS -D_FILE_OFFSET_BITS=64 -DCHROMIUM_BUILD -DCR_CLANG_REVISION=216630 -DCOMPONENT_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_ASH=1 -DUSE_PANGO=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_LIBJPEG_TURBO=1 -DUSE_X11=1 -DUSE_CLIPBOARD_AURAX11=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_PRE_SYNC_BACKUP -DUSE_XI2_MT=2 -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_NOTIFICATIONS -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGINS=1 -DENABLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DCLD2_DATA_SOURCE=static -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_DISCOVERY=1 -DENABLE_LOAD_COMPLETION_HACKS=1 -DMEDIA_IMPLEMENTATION -DUSE_NEON -DUSE_ALSA -DUSE_PULSEAUDIO -DGL_GLEXT_PROTOTYPES -DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_PUBLIC_IMAGEINFO_FIELDS -DSK_IGNORE_PROPER_FRACTIONAL_SCALING -DSK_SUPPORT_LEGACY_PICTURE_CLONE -DSK_IGNORE_ETC1_SUPPORT -DSK_IGNORE_GPU_DITHER -DSK_SUPPORT_LEGACY_IMAGECACHE_NAME -DSK_LEGACY_PICTURE_SIZE_API -DSK_LEGACY_PICTURE_DRAW_API -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -D__STDC_CONSTANT_MACROS -DUSE_SYSTEM_FFMPEG -DUSE_NSS=1 -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -Igen/shim_headers/libpng/target -Igen/shim_headers/harfbuzz-ng/target -Igen/shim_headers/zlib/target -Igen/shim_headers/re2/target -Igen/shim_headers/icuuc/target -Igen/shim_headers/icui18n/target -Igen/shim_headers/libevent/target -Igen -I../.. -I../../third_party/khronos -I../../gpu -I../../skia/config -I../../net/third_party/nss/ssl -I../../third_party/skia/src/core -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/libyuv/include -I../../third_party/libyuv -I../../third_party/opus/src/include -I../../third_party/libvpx/source/libvpx -fstack-protector --param=ssp-buffer-size=4  -pthread -fno-strict-aliasing -Wall -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-reserved-user-defined-literal -fcolor-diagnostics -Wheader-hygiene -Wno-char-subscripts -Wno-unneeded-internal-declaration -Wno-covered-switch-default -Wstring-conversion -Wno-c++11-narrowing -Wno-deprecated-register -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -Wno-header-guard -m64 -march=x86-64 -O2 -fno-ident -fdata-sections -ffunction-sections -funwind-tables -march=native -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wno-trigraphs -D_FORTIFY_SOURCE=2 -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wsign-compare -std=gnu++11  -c ../../media/base/media_posix.cc -o obj/media/base/media.media_posix.o
../../media/base/media_posix.cc:14:10: fatal error: 'third_party/ffmpeg/ffmpeg_stubs.h' file not found
#include "third_party/ffmpeg/ffmpeg_stubs.h"
         ^
1 error generated.
ninja: build stopped: subcommand failed.



PS: I'm on Manjaro Linux (based on Arch linux)
I can give more info... not sure what at the moment, because the error seems OS independent.

EmanueL Czirai

unread,
Sep 22, 2014, 2:25:26 AM9/22/14
to Chromium-dev
(resending to list, was reply to private - fixed setting)

the file does not exist, but its parent folder and a bunch of other files exist
(did run gclient sync)

looks like this:
total 1512
drwxr-xr-x  19 emacs users   4096 22.09.2014 06:15 ./
drwxr-xr-x 163 emacs users   4096 21.09.2014 02:56 ../
drwxr-xr-x   3 emacs users   4096 22.09.2014 04:34 build.x64.linux/
drwxr-xr-x   6 emacs users   4096 21.09.2014 00:49 chromium/
drwxr-xr-x   9 emacs users   4096 21.09.2014 00:49 compat/
drwxr-xr-x   3 emacs users   4096 21.09.2014 00:49 doc/
drwxr-xr-x   8 emacs users   4096 22.09.2014 06:11 .git/
drwxr-xr-x  13 emacs users  36864 21.09.2014 00:49 libavcodec/
drwxr-xr-x   2 emacs users   4096 21.09.2014 00:49 libavdevice/
drwxr-xr-x   4 emacs users  12288 21.09.2014 00:49 libavfilter/
drwxr-xr-x   2 emacs users  20480 21.09.2014 00:49 libavformat/
drwxr-xr-x   5 emacs users   4096 21.09.2014 00:49 libavresample/
drwxr-xr-x  11 emacs users   4096 21.09.2014 00:49 libavutil/
drwxr-xr-x   2 emacs users   4096 21.09.2014 00:49 libpostproc/
drwxr-xr-x   4 emacs users   4096 21.09.2014 00:49 libswresample/
drwxr-xr-x   5 emacs users   4096 21.09.2014 00:49 libswscale/
drwxr-xr-x   2 emacs users   4096 21.09.2014 00:49 presets/
drwxr-xr-x   5 emacs users   4096 21.09.2014 00:49 tests/
drwxr-xr-x   2 emacs users   4096 21.09.2014 00:49 tools/
-rw-r--r--   1 emacs users    730 21.09.2014 00:49 arch.mak
-rw-r--r--   1 emacs users  14302 21.09.2014 00:49 BUILD.gn
-rw-r--r--   1 emacs users  44706 21.09.2014 00:49 Changelog
-rw-r--r--   1 emacs users  66403 21.09.2014 00:49 cmdutils.c
-rw-r--r--   1 emacs users   2624 21.09.2014 00:49 cmdutils_common_opts.h
-rw-r--r--   1 emacs users  18897 21.09.2014 00:49 cmdutils.h
-rw-r--r--   1 emacs users  10236 21.09.2014 00:49 cmdutils_opencl.c
-rw-r--r--   1 emacs users    421 21.09.2014 00:49 codereview.settings
-rw-r--r--   1 emacs users   4107 21.09.2014 00:49 common.mak
-rwxr-xr-x   1 emacs users 178274 21.09.2014 00:49 configure*
-rw-r--r--   1 emacs users  18092 21.09.2014 00:49 COPYING.GPLv2
-rw-r--r--   1 emacs users  35147 21.09.2014 00:49 COPYING.GPLv3
-rw-r--r--   1 emacs users  26526 21.09.2014 00:49 COPYING.LGPLv2.1
-rw-r--r--   1 emacs users   7651 21.09.2014 00:49 COPYING.LGPLv3
-rw-r--r--   1 emacs users    274 21.09.2014 00:49 CREDITS
-rw-r--r--   1 emacs users 139330 21.09.2014 00:49 ffmpeg.c
-rw-r--r--   1 emacs users  20054 21.09.2014 00:49 ffmpeg_dxva2.c
-rw-r--r--   1 emacs users  37250 21.09.2014 00:49 ffmpeg_filter.c
-rw-r--r--   1 emacs users  15030 21.09.2014 00:49 ffmpeg_generated.gni
-rw-r--r--   1 emacs users  19819 22.09.2014 05:31 ffmpeg_generated.gypi
-rw-r--r--   1 emacs users   2055 22.09.2014 06:15 ffmpeg.gyp
-rw-r--r--   1 emacs users  21575 22.09.2014 06:15 ffmpeg.gyp.orig
-rw-r--r--   1 emacs users  15638 21.09.2014 00:49 ffmpeg.h
-rw-r--r--   1 emacs users 121464 21.09.2014 00:49 ffmpeg_opt.c
-rw-r--r--   1 emacs users   1292 21.09.2014 00:49 ffmpeg_options.gni
-rw-r--r--   1 emacs users   3943 21.09.2014 00:49 ffmpeg_vda.c
-rw-r--r--   1 emacs users  11548 21.09.2014 00:49 ffmpeg_vdpau.c
-rw-r--r--   1 emacs users 131911 21.09.2014 00:49 ffplay.c
-rw-r--r--   1 emacs users 110534 21.09.2014 00:49 ffprobe.c
-rw-r--r--   1 emacs users 161755 21.09.2014 00:49 ffserver.c
-rw-r--r--   1 emacs users   1432 21.09.2014 00:49 .gitignore
-rw-r--r--   1 emacs users    595 21.09.2014 00:49 INSTALL.md
-rw-r--r--   1 emacs users   3673 21.09.2014 00:49 library.mak
-rw-r--r--   1 emacs users   3610 21.09.2014 00:49 LICENSE.md
-rw-r--r--   1 emacs users  27839 21.09.2014 00:49 MAINTAINERS
-rw-r--r--   1 emacs users   5789 21.09.2014 00:49 Makefile
-rw-r--r--   1 emacs users    131 21.09.2014 00:49 OWNERS
-rw-r--r--   1 emacs users   2158 21.09.2014 00:49 PRESUBMIT.py
-rw-r--r--   1 emacs users  18019 21.09.2014 00:49 README.chromium
-rw-r--r--   1 emacs users    310 21.09.2014 00:49 README.md
-rw-r--r--   1 emacs users      8 21.09.2014 00:49 RELEASE
-rw-r--r--   1 emacs users   8795 21.09.2014 00:49 RELEASE_NOTES
-rwxr-xr-x   1 emacs users   1866 21.09.2014 00:49 version.sh*
-rw-r--r--   1 emacs users    224 21.09.2014 00:49 xcode_hack.c

thanks for the reply


Addition:

Looks like this is happening because I am running this command:

build/linux/unbundle/replace_gyp_files.py "${_use_system[@]}"

where:
_use_system=(
    -Duse_system_expat=1
    -Duse_system_ffmpeg=1
    -Duse_system_flac=1
    -Duse_system_fontconfig=1
    -Duse_system_harfbuzz=1
    -Duse_system_icu=1
    -Duse_system_jsoncpp=0  
    -Duse_system_libxnvctrl=0
    -Duse_system_libevent=1
    -Duse_system_libexif=1
    -Duse_system_libjpeg=1
    -Duse_system_libpng=1
    -Duse_system_libusb=0
    -Duse_system_libvpx=0
    -Duse_system_libwebp=1
    -Duse_system_libxml=1
    -Duse_system_libxslt=1
    -Duse_system_openssl=0
    -Duse_system_opus=0
    -Duse_system_protobuf=0
    -Duse_system_re2=1
    -Duse_system_snappy=1
    -Duse_system_speex=1
    -Duse_system_stlport=1
    -Duse_system_yasm=1
    -Duse_system_zlib=1
    -Duse_system_xdg_utils=1
    )

even when -Duse_system_ffmpeg=0
a 21K ffmpeg.gyp file gets replaced by a 2K file
but the 21K file has the code that would generate the stubs
...
    'generate_stubs_script': '../../tools/generate_stubs/generate_stubs.py',
...

Not yet sure if I have to run build/linux/unbundle/replace_gyp_files.py   at all, because I am taking some steps from a script which was meant to run on the tarball (not the repo)



On Mon, Sep 22, 2014 at 7:43 AM, Nico Weber <tha...@google.com> wrote:

Did you run `gclient sync`? Does that file exist? Its parent folder?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

EmanueL Czirai

unread,
Sep 22, 2014, 2:55:23 AM9/22/14
to Chromium-dev
tl;dr: My bad, apologies! - I did not run gclient sync indeed! (that is, after I set -Duse_system_ffmpeg=0 I did not run gclient sync, and thus I kept my dirty 2K ffmpeg.gyp )

long read:
works with:
-Duse_system_ffmpeg=0
the 21K ffmpeg.gyp file did not get replaced this time
but that ffmpeg_stubs.h still doesn't exist,
however the compilation seems to have continued and I am now getting an error elsewhere in WebKit but that is unrelatated and I will thus not mention it here.

I tested again to make sure:
-Duse_system_ffmpeg=1
causes the error in OP
../../media/base/media_posix.cc:14:10: fatal error: 'third_party/ffmpeg/ffmpeg_stubs.h' file not found

but
-Duse_system_ffmpeg=0
doesn't and thus seemingly works past it

BUT only if I get rid of the changes from before that were made in the repos like ffmpeg
with `git stash` for example.
because although I noticed that only the following command was actually modifying the ffmpeg.gyp file (from 21K to 2K, when -Duse_system_ffmpeg=1 ):
build/gyp_chromium --depth=. "${_flags[@]}" "${_use_system[@]}"  
this command does not regenerate the (now 2K) ffmpeg.gyp and is thus acting as if -Duse_system_ffmpeg=1  instead of the new =0 value

so the git stash is needed, and in fact I did not run gclient sync (APOLOGIES for this) after changing to -Duse_system_ffmpeg=0 because otherwise it would've told me that I have unstaged changes and fail
that is why it seemed to give the same result with either 0 or 1 value.

Anyway, thank you Nico Weber for pushing me in the right direction.

Reply all
Reply to author
Forward
0 new messages