webrtc compilation error : Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017) [closed] - build

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 days ago.
Improve this question
Environment variable configuration
vs2019_install=D:\Program Files (x86)\Microsoft Visual Studio\2019\Community
GYP_MSVS_OVERRIDE_PATH=D:\Program Files (x86)\Microsoft Visual Studio\2019\Community
GYP_MSVS_VERSION=2019
DEPOT_TOOLS_WIN_TOOLCHAIN=0
Compilation process
gclient sync
Updating depot_tools...using
C:\Users\nifei\AppData\Local\Temp\goma as tmpdircompiler_proxy is not runningSyncing projects: 100% (40/40), done.
Running hooks: 52% (12/23) clang________ running 'vpython.bat src/tools/clang/scripts/update.py' in D:\webrtc\webrtc-checkout'Downloading https://commondatastorage.googleapis.com/chromium-browser-clang/Win/clang-n345938-a1762f9c-1.tgz .......... Done.
Traceback (most recent call last):
File "src/tools/clang/scripts/update.py", line 383, in <module>sys.exit(main())
File "src/tools/clang/scripts/update.py", line 379, in mainreturn UpdatePackage(args.package)
File "src/tools/clang/scripts/update.py", line 313, in UpdatePackageCopyDiaDllTo(os.path.join(LLVM_BUILD_DIR, 'bin'))
File "src/tools/clang/scripts/update.py", line 247, in CopyDiaDllToGetWinSDKDir()
File "src/tools/clang/scripts/update.py", line 222, in GetWinSDKDirmsvs_version = vs_toolchain.GetVisualStudioVersion()
File "D:\webrtc\webrtc-checkout\src\build\vs_toolchain.py", line 165, in GetVisualStudioVersion' Supported versions are: %s.' % supported_versions_str)
Exception: No supported Visual Studio can be found. Supported versions are: 16.0 (2019), 15.0 (2017).
Reconfigure environment variables and restart the computer.
I expect the compiler to find vs 2019

Related

Executing Python file in Visual Studio 2017 works, but not when I execute it via cmd

I have a Visual Studio project. It contains several Python files. One of them is the main.py. It is working great when I right-click the main.py file in Visual Studio, and start it "with/without Debugging".
But if try to run it via cmd like this: "python main.py"
it gives me this error:
Traceback (most recent call last):
File "main.py", line 6, in <module>
from units.predefined import define_units
ImportError: No module named units.predefined
Somehow it does not find the modules when I try to execute the Python file via cmd. Does someone know why it is not finding the modules? It would be great if someone could help me :)

Failed in SublimeClang for lackness of LibClang

I had already had sublime and when setting up new plug-ins, I found problem for the setup of SublimeClang. It requires libClang but I searched all my folders using the " locate clang" command and couln't find libclang at last (The doc on the web said it should be located in usr/lib/x86_64-linux-gnu/).
When i open the sublime, the console printed out like this:
Traceback (most recent call last):
File "/home/meng/.config/sublime-text-3/Packages/SublimeClang/internals/clang/cindex.py", line 95, in get_cindex_library
return cdll.LoadLibrary(filename)
File "./ctypes/__init__.py", line 431, in LoadLibrary
File "./ctypes/__init__.py", line 353, in __init__
OSError: libclang.so: cannot open shared object file: No such file or directory
error: It looks like libclang.so couldn't be loaded. You have to compile it yourself, or download from https://github.com/quarnster/SublimeClang/downloads.
Please note that this plugin uses features from clang 3.0 so make sure that is the version you have installed.
Once you have the file, you need to copy libclang.so into the root of this plugin. See http://github.com/quarnster/SublimeClang for more details.
I'm rookie in ubuntu OS and hope someone can give me help. Many thanks!

Error with XlWings on mac with parallels

I try to open the fibonacci template on my mac using Microsoft Excel from Parallels but I get the following error (xlwings version 0.4.1).
The file is well opened automatically with Microsoft Excel and the error comes.
Has someone any idea on how to correct that ?
In[39]: wb = Workbook(r'/Users/Downloads/fibonacci.zip Folder/fibonacci.xlsm')
Traceback (most recent call last):
File "/Users/anaconda/lib/python2.7/site- packages/IPython/core/interactiveshell.py", line 3035, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-39-8750713fa323>", line 1, in <module>
wb = Workbook(r'/Users/Downloads/fibonacci.zip Folder/fibonacci.xlsm')
File "/Users/anaconda/lib/python2.7/site-packages/xlwings/main.py", line 158, in __init__
self.name = xlplatform.get_workbook_name(self.xl_workbook)
File "/Users/anaconda/lib/python2.7/site-packages/xlwings/_xlmac.py", line 102, in get_workbook_name
return xl_workbook.name.get()
File "/Users/anaconda/lib/python2.7/site-packages/aeosa/appscript/reference.py", line 498, in __call__
raise CommandError(self, (args, kargs), e, self.AS_appdata)
CommandError: Command failed:
OSERROR: -1708
MESSAGE: Application could not handle this command.
COMMAND: app(u'/Users/Applications (Parallels)/{716d2333-63ae-4f42-a203-ae81a0a171db} Applications.localized/Microsoft Excel.app').workbooks['fibonacci.xlsm'].name.get()
If you want to use the Windows version of Excel from Mac through Parallels, you need to drive things from a Windows based Python installation, too (e.g. from the Windows Command Prompt instead of Mac Terminal).
If instead you want to drive Mac Excel 2011 or 2016 and in case Parallels is giving you a hard time, specify the path of the Mac Excel installation through app_target, see the docs or this question.

Emscripten 1.34.1 Issue

Things were working fine in an Emscripten build 1.29.0 but after upgrading to 1.34.1, I get the following error:
1> Traceback (most recent call last):
1> File "C:\Program Files\Emscripten\emscripten\1.34.1\\emcc", line 1260, in <module>
1> shared.Building.llvm_opt(final, link_opts)
1> File "C:\Program Files\Emscripten\emscripten\1.34.1\tools\shared.py", line 1429, in llvm_opt
1> assert os.path.exists(target), 'Failed to run llvm optimizations: ' + output
1> AssertionError: Failed to run llvm optimizations:
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Emscripten\Microsoft.Cpp.Emscripten.Targets(117,5): error MSB6006: "C:\Program Files\Emscripten\emscripten\1.34.1\emcc.bat" exited with code 1.
One cause for concern was reading this line from changelog, and then not knowing what the approach was or the process was if the following was not being used (I'm using VS2010):
- Enabled native JS optimizer to be built automatically on Windows, requires VS2012 or VS2013.
If anyone would know why things don't work, after uninstalling and re-installing everything and cleaning source, then please let me know!
This appear to be a regression in 1.34.1. I had the exact same issue. After upgrading to 1.34.6 the error went away. I don't which commit fixed it but I would suggest you also update to 1.34.6+.

Building Swiften using scons

I am trying to follow the examples at http://swift.im/swiften/guide/#Example-EchoBot1, for building a simple XMPP client using the swiften library.
Mentioned example needs file Swiften.h. According to the swiften mailing list, this file is generated when building swiften. So, I have tried building it on my windows machine, following the instructions at http://swift.im/git/swift-contrib/tree/Documentation/BuildingOnWindows.txt.
Since they state that Qt and open ssl are optional, I go straight to building by running scons.
This is the output I get:
c:\swift-2.0>scons
scons: Reading SConscript files ...
scons: warning: No installed VCs
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No installed VCs
File "C:\swift-2.0\SConstruct", line 1, in <module>
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "C:\swift-2.0\SConstruct", line 1, in <module>
KeyError: 'MSVS_VERSION':
File "C:\swift-2.0\SConstruct", line 1:
variant_dir = SConscript("BuildTools/SCons/SConscript.boot")
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 614:
return method(*args, **kw)
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 551:
return _SConscript(self.fs, *files, **subst_kw)
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Script\SConscript.py", line 260:
exec _file_ in call_stack[-1].globals
File "C:\swift-2.0\BuildTools\SCons\SConscript.boot", line 240:
if int(env["MSVS_VERSION"].split(".")[0]) < 10 :
File "c:\swift-2.0\3rdParty\SCons\scons-local-2.0.0.final.0\SCons\Environment.py", line 409:
return self._dict[key]
How do I set the script to find my version of Visual Studio?
Thanks,
best regards,
c
SCons should automatically find the installed version of VisualStudio, but you have to open a "VisualC++ command prompt", as described in the BuildingOnWindows.txt, and start the build within this environment.
I think we've not updated scons to handle VS 2013 yet. I've got a pending patch to add support for some newer VSs, which I'll try to check includes 2013 and get integrated in the next couple of days.