[Package Issue]: SWIG.SWIG: swig.exe <file>
always fails because swig.exe -swiglib
is wrong
#168066
Open
2 tasks done
Labels
Blocking-Issue
Manifest validation is blocked by a known issue.
Issue-Bug
It either shouldn't be doing this or needs an investigation.
zip-binary
Depends on library files that aren't available via symlink
Please confirm these before moving forward
Category of the issue
Other
Brief description of your issue
The
swig.exe
placed on the system path fails immediately for any input file. SWIG needs to find its standard library dir at runtime, whichswig.exe -swiglib
is supposed to print. On my machine, the output is the nonexistent path%LOCALAPPDATA%\Microsoft\WinGet\Links\Lib
. I found the dir it wants withinPackages
instead ofLinks
.CMake is also failing on a project with
find_package(SWIG REQUIRED)
. It findsswig.exe
in theWinGet\Links
dir, then calls it with-swiglib
, sees the result is a broken path, and then fails configuring the project due to "SWIG not found".Steps to reproduce
winget install -e SWIG.SWIG
swig -python -module empty <empty file>
swig -swiglib
Actual behavior
Running SWIG:
Checking
-swiglib
output:Finding correct path:
Expected behavior
The empty
swig
command should exit successfully with no output (and creating some files). The output ofswig -swiglib
should be a directory containingswig.swg
among other files.Environment
Screenshots and Logs
No response
The text was updated successfully, but these errors were encountered: