Squally: Error Installing mpg123 As Part of dep.py

When I try running the dep.py script on windows, I get an error preventing mpg123 from being installed properly, as it seems to be failing post validation checks. I’ve done some digging to try and fix this, but this is a tad out of my depth and have just been going round in circles checking error codes and reading source files. Any input would be great.

installing: mpg123 The following packages will be built and installed: mpg123[core]:x86-windows Starting package 1/1: mpg123:x86-windows Building package mpg123[core]:x86-windows… – Downloading http://downloads.sourceforge.net/project/mpg123/mpg123/1.25.8/mpg123-1.25.8.tar.bz2… – Extracting source C:/Users/Charlie/Downloads/Squally/vcpkg/downloads/mpg123-1.25.8.tar.bz2 – Applying patch 0001-fix-crt-linking.patch – Applying patch 0002-fix-x86-build.patch – Applying patch 0003-add-arm-configs.patch – Using source at C:/Users/Charlie/Downloads/Squally/vcpkg/buildtrees/mpg123/src/mpg123-1-9840211cc0 – Downloading https://www.tortall.net/projects/yasm/snapshots/v1.3.0.6.g1962/yasm-1.3.0.6.g1962.exe… – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/downloads/tools/yasm/1.3.0.6/yasm.exe – Building C:/Users/Charlie/Downloads/Squally/vcpkg/buildtrees/mpg123/src/mpg123-1-9840211cc0/ports/MSVC++/2015/win32/libmpg123/libmpg123.vcxproj for Release – Building C:/Users/Charlie/Downloads/Squally/vcpkg/buildtrees/mpg123/src/mpg123-1-9840211cc0/ports/MSVC++/2015/win32/libmpg123/libmpg123.vcxproj for Debug – Installing – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/debug/lib/libmpg123.pdb – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/lib/libmpg123.pdb – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/debug/lib/libmpg123.lib – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/lib/libmpg123.lib – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/include/mpg123.h – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/include/fmt123.h – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/include/mpg123.h.in – Installing: C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/share/mpg123/copyright – Installing done – Performing post-build validation Expected Debug,Dynamic crt linkage, but the following libs had invalid crt linkage:

C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/debug/lib/libmpg123.lib: Debug,Static To inspect the lib files, use: dumpbin.exe /directives mylibfile.lib Expected Release,Dynamic crt linkage, but the following libs had invalid crt linkage:

C:/Users/Charlie/Downloads/Squally/vcpkg/packages/mpg123_x86-windows/lib/libmpg123.lib: Release,Static

To inspect the lib files, use: dumpbin.exe /directives mylibfile.lib Found 2 error(s). Please correct the portfile: C:\Users\Charlie\Downloads\Squally\vcpkg\ports\mpg123\portfile.cmake – Performing post-build validation done Error: Building package mpg123:x86-windows failed with: POST_BUILD_CHECKS_FAILED Please ensure you’re using the latest portfiles with .\vcpkg update, then submit an issue at https://github.com/Microsoft/vcpkg/issues including: Package: mpg123:x86-windows Vcpkg version: 2019.08.27-nohash

Additionally, attach any relevant sections from the log files above.

dep.py: A problem appears to have occurred, writing package to requirements.json skipped.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

The reason for this issue is that the patch failed to patch the RuntimeLibrary option in vcxproj according to VCPKG_CRT_LINKAGE. I will open a PR to fix the issue.

@mattbucci I think so. Thanks for this info, I’ll digger into it later.

Here are my logs @JackBoosY build-x86-windows-dbg-err.zip

My assumption is that the error is due to the change in the windows-86 triplet to compile a static binary instead of a dynamic one here: https://github.com/Squalr/vcpkg/blob/master/triplets/x86-windows.cmake

I assume mpg123 should still be able to build even if you set this to static instead of dynamic. You should be able to reproduce the problem by changing your triplet for x86 windows to build a static lib