Skip to content

Unable to build with "Getting started" steps #442

@GoogleCodeExporter

Description

@GoogleCodeExporter
System:

1. Window7 64 Bit
2. VS 2013 Update 4

What steps will reproduce the problem?
According to 
https://code.google.com/p/libyuv/wiki/GettingStarted

1. Download and install depot_tools following steps in 
https://sites.google.com/a/chromium.org/dev/developers/how-tos/install-depot-too
ls
2. Start cmd prompt with admin rights. Create folder libyuv (e.g. 
c:\vs\libs\libyuv)
3. Run gclient config http://libyuv.googlecode.com/svn/trunk
4. Run gclient sync
5. set GYP_DEFINES=target_arch=ia32
6. Run "call python gyp_libyuv -fninja -G msvs_version=2013 --depth=. 
libyuv_test.gyp" or "call python gyp_libyuv -fninja -G msvs_version=2013 
--depth=. libyuv.gyp"

Output -> 

C:\VS\Libs\libyuv\trunk>call python gyp_libyuv -fninja -G msvs_version=2013 
--depth=.
libyuv_test.gyp
Traceback (most recent call last):
  File "gyp_libyuv", line 23, in <module>
    import gyp_chromium
ImportError: No module named gyp_chromium


The python script gyp_libyuv tries to find the module gyp_chromium
in folder "<checkout_root>\build" ->
sys.path.insert(0, os.path.join(checkout_root, 'build'))

But this module is lokated in folder
"<checkout_root>\chromium\src\build"

7.
After inserting this line in to script:
sys.path.insert(0, os.path.join(checkout_root, 'chromium', 'src', 'build'))

the gyp_chromium module was found but another error popped out:

C:\VS\Libs\libyuv\trunk>call python gyp_libyuv -fninja -G msvs_version=2013 --de
pth=. libyuv_test.gyp
Please follow the instructions at http://www.chromium.org/developers/how-tos/bui
ld-instructions-windows
Traceback (most recent call last):
  File "gyp_libyuv", line 65, in <module>
    vs2013_runtime_dll_dirs = vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
  File "C:\VS\Libs\libyuv\trunk\chromium\src\build\vs_toolchain.py", line 34, in
 SetEnvironmentAndGetRuntimeDllDirs
    Update()
  File "C:\VS\Libs\libyuv\trunk\chromium\src\build\vs_toolchain.py", line 177, i
n Update
    subprocess.check_call(get_toolchain_args)
  File "C:\VS\Libs\depot_tools\python276_bin\lib\subprocess.py", line 540, in ch
eck_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\VS\\Libs\\depot_tools\\python276_b
in\\python.exe', 'C:\\VS\\Libs\\depot_tools\\win_toolchain\\get_toolchain_if_nec
essary.py', '--output-json', 'C:\\VS\\Libs\\libyuv\\trunk\\chromium\\src\\build\
\win_toolchain.json', 'ee7d718ec60c2dc5d255bbe325909c2021a7efef']' returned non-
zero exit status 1

9. set DEPOT_TOOLS_WIN_TOOLCHAIN=0
10. Rerun call python gyp_libyuv -fninja -G msvs_version=2013 --depth=. 
libyuv_test.gyp

No error any more


Original issue reported on code.google.com by wvogel1...@gmail.com on 19 May 2015 at 9:10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions