You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I have been writing a custom overlay port to install a project that is built with MSBuild (WinFSP). When I run vcpkg_msbuild_install(...) in the portfile, I receive the following error:
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: msbuild W:/project/linux/lib/vcpkg/buildtrees/winfsp/x64-mingw-static-rel/build/VStudio/winfsp_dll.vcxproj /p:Configuration=Release /p:ForceImportAfterCppProps=W:/project/linux/lib/vcpkg/buildtrees/winfsp/x64-mingw-static/vcpkg_msbuild.props /p:ForceImportAfterCppTargets=W:/project/linux/lib/vcpkg/buildtrees/winfsp/x64-mingw-static/vcpkg_msbuild.targets /t:Rebuild /p:UseMultiToolTask=true /p:MultiProcMaxCount=17 /p:EnforceProcessCountAcrossBuilds=true /m:17 -maxCpuCount:17 /p:Platform=x64 /p:PlatformTarget=x64 /p:PlatformToolset=external /p:WindowsTargetPlatformVersion= /p:VcpkgApplocalDeps=false /p:VcpkgManifestInstall=false /p:VcpkgManifestEnabled=false /p:VcpkgEnabled=false /p:VcpkgTriplet=x64-mingw-static /p:VcpkgInstalledDir=W:/project/build/windows-x64-release/vcpkg_installed
Working Directory: W:/project/linux/lib/vcpkg/buildtrees/winfsp/x64-mingw-static-rel
Error code: no such file or directory
See logs for more information:
Call Stack (most recent call first):
...
(There is no log file produced).
To minimise this I tried directly running vcpkg_execute_required_process(COMMAND msbuild.exe WORKING_DIRECTORY ${SOURCE_PATH}) in the portfile, and I still see Error code: no such file or directory. I suspect vcpkg cannot find msbuild in its PATH as it sanitises the environment, and this error is emitted. I see similar outputs when I try to run msbuild in a non-Developer PowerShell or non-Developer Command Prompt.
Below is my triplet that uses a custom toolchain (LLVM-MinGW):
{
"name": "winfsp",
"version": "2.0",
"description": [
"Windows File System Proxy - FUSE for Windows",
"WinFsp enables developers to write their own file systems (i.e. \"Windows drives\") as user mode programs and without any knowledge of Windows kernel programming. It is similar to FUSE (Filesystem in Userspace) for Linux and other UNIX-like computers."
],
"homepage": "https://winfsp.dev/",
"license": "GPL-3.0-or-later",
"supports": "windows | mingw",
"dependencies": [
{
"name": "vcpkg-msbuild",
"host": true
}
]
}
Environment
OS: Windows
To Reproduce
Steps to reproduce the behaviour:
Install the above custom overlay portfiles.
Use any custom chain-loaded toolchain.
See the above failure.
Expected behaviour
Naturally, I expect vcpkg to set up VsDevCmd.bat that sets up the environment and the PATH before launching msbuild.
The text was updated successfully, but these errors were encountered:
Describe the bug
I have been writing a custom overlay port to install a project that is built with MSBuild (WinFSP). When I run
vcpkg_msbuild_install(...)
in the portfile, I receive the following error:(There is no log file produced).
To minimise this I tried directly running
vcpkg_execute_required_process(COMMAND msbuild.exe WORKING_DIRECTORY ${SOURCE_PATH})
in the portfile, and I still seeError code: no such file or directory
. I suspect vcpkg cannot findmsbuild
in its PATH as it sanitises the environment, and this error is emitted. I see similar outputs when I try to runmsbuild
in a non-Developer PowerShell or non-Developer Command Prompt.Below is my triplet that uses a custom toolchain (LLVM-MinGW):
And below are the overlay portfile and
vcpkg.json
for WinFSP:portfile.cmake
vcpkg.json
Environment
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Naturally, I expect vcpkg to set up
VsDevCmd.bat
that sets up the environment and thePATH
before launchingmsbuild
.The text was updated successfully, but these errors were encountered: