shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Error in executing v8 downloader and glog setup #244

Closed MaZED-UP closed 1 year ago

MaZED-UP commented 1 year ago

Hello! I'm trying to run the demo in my Fedora 37 machine with the command below. I know this is not directly related to your project but are there any certain steps to follow in order to solve my problem?

shaka-player-embedded/foo on  main [!?] via  v2.7.18 (myenv) 
❯ python ../configure --cpu x64 --v8
Loading required submodules...
Downloading GN from cloud storage...
Generating files for boringssl...
Running configure for binutils...
Standard output:
Downloading /home/mazed_up/Documents/shaka-player-embedded/v8/third_party/binutils/Linux_x64/binutils.tar.bz2

Standard error:
Traceback (most recent call last):
  File "/home/mazed_up/Documents/shaka-player-embedded/v8/third_party/binutils/download.py", line 104, in <module>
    sys.exit(main(sys.argv))
  File "/home/mazed_up/Documents/shaka-player-embedded/v8/third_party/binutils/download.py", line 93, in main
    return FetchAndExtract(arch)
  File "/home/mazed_up/Documents/shaka-player-embedded/v8/third_party/binutils/download.py", line 68, in FetchAndExtract
    '-s', sha1file])
  File "/usr/lib64/python2.7/subprocess.py", line 185, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python2.7/subprocess.py", line 172, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
MaZED-UP commented 1 year ago

It appears that when adding depot_tools to PATH I have used the wrong command in my fish shell terminal.

export PATH=$PATH:/home/mazed_up/Documents/depot_tools/

I should've used this command instead:

set PATH $PATH /home/mazed_up/Documents/depot_tools/
MaZED-UP commented 1 year ago

However...

shaka-player-embedded/foo on  main [!] 
❯ python2 ../configure
  make
Loading required submodules...
Downloading GN from cloud storage...
Generating files for boringssl...
Running configure for binutils...
Running configure for clang...
Running configure for sdl2...
Running configure for ffmpeg...
Running configure for gflags...
Running configure for glog...
Standard output:

Standard error:
configure.ac:14: warning: 'AM_CONFIG_HEADER': this macro is obsolete.
configure.ac:14: You should use the 'AC_CONFIG_HEADERS' macro instead.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:745: AM_CONFIG_HEADER is expanded from...
configure.ac:14: the top level
configure.ac:28: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:28: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:28: the top level
configure.ac:83: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:83: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_attribute.m4:1: AX_C___ATTRIBUTE__ is expanded from...
configure.ac:83: the top level
configure.ac:95: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:95: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_builtin_expect.m4:1: AX_C___BUILTIN_EXPECT is expanded from...
configure.ac:95: the top level
configure.ac:102: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:102: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
m4/ac_have_sync_val_compare_and_swap.m4:1: AX_C___SYNC_VAL_COMPARE_AND_SWAP is expanded from...
configure.ac:102: the top level
configure.ac:124: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:124: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
configure.ac:124: the top level
configure.ac:124: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:124: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
m4/acx_pthread.m4:63: ACX_PTHREAD is expanded from...
configure.ac:124: the top level
configure.ac:197: warning: The macro `AC_LANG_C' is obsolete.
configure.ac:197: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:15: AC_RWLOCK is expanded from...
configure.ac:197: the top level
configure.ac:197: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:197: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/ac_rwlock.m4:15: AC_RWLOCK is expanded from...
configure.ac:197: the top level
configure.ac:201: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/namespaces.m4:2: AC_CXX_NAMESPACES is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/namespaces.m4:2: AC_CXX_NAMESPACES is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:201: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:201: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/stl_namespace.m4:3: AC_CXX_STL_NAMESPACE is expanded from...
configure.ac:201: the top level
configure.ac:204: warning: The macro `AC_LANG_CPLUSPLUS' is obsolete.
configure.ac:204: You should run autoupdate.
./lib/autoconf/c.m4:262: AC_LANG_CPLUSPLUS is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/using_operator.m4:1: AC_CXX_USING_OPERATOR is expanded from...
configure.ac:204: the top level
configure.ac:204: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:204: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/using_operator.m4:1: AC_CXX_USING_OPERATOR is expanded from...
configure.ac:204: the top level
configure.ac:206: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:206: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
m4/pc_from_ucontext.m4:12: AC_PC_FROM_UCONTEXT is expanded from...
configure.ac:206: the top level
configure.ac:246: warning: AC_OUTPUT should be used without arguments.
configure.ac:246: You should run autoupdate.
Makefile.am:50: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:50:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:50:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:50:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:50:   its definition is in aclocal's search path.
autoreconf: error: automake failed with exit status: 1

make: *** No targets specified and no makefile found.  Stop.

shaka-player-embedded/foo on  main [!?] 
❯ ls
args.gn  build.ninja  build.ninja.d  gen/  obj/  toolchain.ninja

The same error occurs even after running the following:

src (195d416) [!?] via △ v3.26.0-rc5 
❯ pwd
/home/mazed_up/Documents/shaka-player-embedded/third_party/glog/src

src (195d416) [?] via △ v3.26.0-rc5 
❯ autoupdate
configure.ac:28: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
  Except in unusual embedded environments, you can safely include all
  ISO C90 headers unconditionally.

src (195d416) [!?] via △ v3.26.0-rc5 
❯ autoupdate

src (195d416) [!?] via △ v3.26.0-rc5 
❯

I run the configure file another time and the same error is produced.

src (195d416) [!?] via △ v3.26.0-rc5 
❯ autoupdate
configure.ac:28: warning: The preprocessor macro `STDC_HEADERS' is obsolete.
  Except in unusual embedded environments, you can safely include all
  ISO C90 headers unconditionally.

It is as if I didn't run autoupdate.


EDIT: Solved by installing a missing depedency sudo dnf install libtool.