[package] yasm/1.3.0: can't build on windows
See original GitHub issuePackage and Environment Details (include every applicable attribute)
- Package Name/Version: yasm/1.3.0:
- Operating System+version: windows 10
- Compiler+version: MSVC 2019
- Conan version: 1.44.1
Conan profile (output of conan profile show default
or conan profile show <profile>
if custom profile is in use)
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
cppstd=17
os=Windows
os_build=Windows
[options]
pictofitstudio*:with_sentry=True
[build_requires]
[env]
CONAN_USE_ALWAYS_SHORT_PATHS=True
Steps to reproduce (Include if Applicable)
conan install yasm/1.3.0@ --build “*”
Logs (Include/Attach if Applicable)
Click to expand log
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=Visual Studio
compiler.runtime=MD
compiler.version=16
cppstd=17
os=Windows
os_build=Windows
[options]
pictofitstudio*:with_sentry=True
[build_requires]
[env]
CONAN_USE_ALWAYS_SHORT_PATHS=True
yasm/1.3.0: Not found in local cache, looking in remotes...
yasm/1.3.0: Trying with 'artifactory'...
Downloading conanmanifest.txt completed [0.10k]
Downloading conanfile.py completed [3.91k]
Downloading conan_export.tgz completed [0.37k]
Decompressing conan_export.tgz completed [0.00k]
yasm/1.3.0: Downloaded recipe revision fbd06c2ed3c695843035e75d60777a4e
yasm/1.3.0: Forced build from source
Installing package: yasm/1.3.0
Requirements
yasm/1.3.0 from 'artifactory' - Downloaded
Packages
yasm/1.3.0:2d91722813283545a5bec8be869b6396b7c40537 - Build
Installing (downloading, building) binaries...
yasm/1.3.0: Configuring sources in C:\.conan\yasm\1.3.0\_\_\source
Downloading yasm-1.3.0.tar.gz completed [1457.18k]
Downloading YASM-VERSION-GEN.bat completed [1.03k]
yasm/1.3.0: Copying sources to build folder
yasm/1.3.0: Building your package in C:\.conan\yasm\1.3.0\_\_\build\2d91722813283545a5bec8be869b6396b7c40537
yasm/1.3.0: Generator txt created conanbuildinfo.txt
yasm/1.3.0: Aggregating env generators
yasm/1.3.0: Calling build()
----Running------
> set "VSCMD_START_DIR=%CD%" && call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC/Auxiliary/Build/vcvarsall.bat" amd64 && devenv "yasm.sln" /upgrade && msbuild "yasm.sln" /p:Configuration="Release" /p:UseEnv=true /p:Platform="x64" /m:12 /target:yasm /p:PlatformToolset="v142" /verbosity:minimal /p:ForceImportBeforeCppTargets="C:\.conan\yasm\1.3.0\_\_\build\2d91722813283545a5bec8be869b6396b7c40537\source_subfolder\Mkfiles\vc10\conan_build.props"
-----------------
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.11.9
** Copyright (c) 2021 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
'devenv' is not recognized as an internal or external command,
operable program or batch file.
yasm/1.3.0:
yasm/1.3.0: ERROR: Package '2d91722813283545a5bec8be869b6396b7c40537' build failed
yasm/1.3.0: WARN: Build folder C:\.conan\yasm\1.3.0\_\_\build\2d91722813283545a5bec8be869b6396b7c40537
ERROR: yasm/1.3.0: Error in build() method, line 74
self._build_vs()
while calling '_build_vs', line 57
targets=["yasm"], platforms={"x86": "Win32"}, force_vcvars=True)
ConanException: Error 1 while executing set "VSCMD_START_DIR=%CD%" && call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC/Auxiliary/Build/vcvarsall.bat" amd64 && devenv "yasm.sln" /upgrade && msbuild "yasm.sln" /p:Configuration="Release" /p:UseEnv=true /p:Platform="x64" /m:12 /target:yasm /p:PlatformToolset="v142" /verbosity:minimal /p:ForceImportBeforeCppTargets="C:\.conan\yasm\1.3.0\_\_\build\2d91722813283545a5bec8be869b6396b7c40537\source_subfolder\Mkfiles\vc10\conan_build.props"
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Can't build on Windows · Issue #3 · mscdex/cpu-features
On Windows with Visual Studio, all libs linked to a DLL must use the same option with respect to link to C/C++ Run...
Read more >Can't build in release mode, only debug mode - Microsoft Q&A
For some reason building my app in Release mode doesn't work. It shortly shows the app's splash screen, and then Visual Studio gives...
Read more >Cannot build WIX project on windows 10 - Stack Overflow
WiX has a build dependency on NETFX v3.5. If you enable the ".NET Framework 3.5" feature in "Programs and Features", you should be...
Read more >Yasm 1.3.0 Release Notes
For Windows and DOS users, we recommend downloading the prebuilt binaries. The source tarball contains all sources needed to build Yasm on UNIX-compatible ......
Read more >Howto: Building R-devel and packages on Windows
R and packages are built using Rtools, which is a collection of build tools, a compiler toolchain, headers and pre-compiled static libraries.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For the cases where MS build tools is installed, the best choice is the environment variable CONAN_SKIP_VS_PROJECTS_UPGRADE. So, you don’t need to change anything in your recipe.
@AndreyMlashkin I suppose you’re installing Visual Studio build tools, not a Visual Studio IDE. unfortunately, this one doesn’t include
devenv.exe
/devenv.com
. so far, I’ve spent quite a time googling, but I was unable to find any way to upgrade VS project withoutdevenv
. maybe there is a way to do it via puremsbuild
, but in its sources there is no clue. maybe it could be done somehow via Visual Studio COM API, but I also was unable to find any suitable example for that. last thing, is to write some open-source converter, but it might be tricky (given how complex sln/dsw/vcproj/vcxproj format is). I wish I could help, but it probably requires to ask someone from Microsoft 😦