bincrafters / community

Central repository for issues and recipes
http://bincrafters.readthedocs.io/en/latest/
MIT License
217 stars 36 forks source link

libmad/0.15.1b: Build failed for VS2022 #1449

Closed dbarkar closed 1 year ago

dbarkar commented 1 year ago

Conan build script calls VS to upgrade .dsp file and then builds the project using MSBuild.

Visual Studio 2022 has deprecated support for the upgrade of project types that have .dsw or .dsp extensions.

Package and Environment Details

Steps to reproduce

conan install libmad/0.15.1b@ --build=missing

Logs

Click to expand log ``` Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=Visual Studio compiler.runtime=MD compiler.version=17 os=Windows os_build=Windows [options] [build_requires] [env] Installing package: libmad/0.15.1b Requirements libmad/0.15.1b from 'conancenter' - Cache Packages libmad/0.15.1b:5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b - Build Installing (downloading, building) binaries... libmad/0.15.1b: WARN: Build folder is dirty, removing it: C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b libmad/0.15.1b: Copying sources to build folder libmad/0.15.1b: Building your package in C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b libmad/0.15.1b: Generator txt created conanbuildinfo.txt libmad/0.15.1b: Aggregating env generators libmad/0.15.1b: Calling build() Conan:vcvars already set Microsoft Visual Studio 2022 Version 17.3.6. Copyright (C) Microsoft Corp. All rights reserved. Information: This file is not a recognized project or solution. No migration was performed. Conan:vcvars already set Microsoft Visual Studio 2022 Version 17.3.6. Copyright (C) Microsoft Corp. All rights reserved. The following files were specified on the command line: libmad.vcxproj These files could not be found and will not be loaded.MSBuild version 17.3.1+2badb37d1 for .NET Framework MSBUILD : error MSB1009: Project file does not exist. Switch: libmad.vcxproj libmad/0.15.1b: libmad/0.15.1b: ERROR: Package '5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b' build failed libmad/0.15.1b: WARN: Build folder C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b ERROR: libmad/0.15.1b: Error in build() method, line 60 self._build_msvc() while calling '_build_msvc', line 75 msbuild.build(project_file="libmad.vcxproj") ConanException: Error 1 while executing echo Conan:vcvars already set && devenv "libmad.vcxproj" /upgrade && msbuild "libmad.vcxproj" /p:Configuration="Release" /p:UseEnv=true /p:Platform="x64" /m:16 /p:PlatformToolset="v143" /verbosity:minimal /p:ForceImportBeforeCppTargets="C:\Users\Denis\.conan\data\libmad\0.15.1b\_\_\build\5a61a86bb3e07ce4262c80e1510f9c05e9b6d48b\source_subfolder\msvc++\conan_build.props" ```
Croydon commented 1 year ago

This is a recipe from Conan Center not from Bincrafters. Please create an issue here: https://github.com/conan-io/conan-center-index/issues