刚刚去微软官网看了看,原来是新版windows sdk把他删了,但是这样包都无法安装了,只能去改源代码了
删除了 irprops.lib
在此版本中,我们从 Windows SDK 删除了 irprops.lib。链接到 irprops.lib 的应用可直接改为链接到 bthprops.lib。
我试了win7和win10,python 2.7/3.8/3.9,试着从源码装还有pip装,都报这个错误,有大佬遇到过这个问题吗
--- 报错
LINK : fatal error LNK1181: 无法打开输入文件“Irprops.lib”
error: command 'D:\Develop\Program Files\CS\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe' failed with exit status 1181
--- 全部
msbt\_msbt.c(140): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据
msbt\_msbt.c(169): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(217): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据
msbt\_msbt.c(240): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(365): warning C4244: “=”: 从“SOCKET”转换到“int”,可能丢失数据
msbt\_msbt.c(358): warning C4996: 'WSADuplicateSocketA': Use WSADuplicateSocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(362): warning C4996: 'WSASocketA': Use WSASocketW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(378): warning C4244: “初始化”: 从“SOCKET”转换到“int”,可能丢失数据
msbt\_msbt.c(478): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(556): warning C4244: “初始化”: 从“SOCKET”转换到“int”,可能丢失数据
msbt\_msbt.c(585): warning C4996: 'WSALookupServiceBeginA': Use WSALookupServiceBeginW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(607): warning C4996: 'WSALookupServiceNextA': Use WSALookupServiceNextW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(728): warning C4311: “类型强制转换”: 从“HANDLE”到“unsigned long”的指针截断
msbt\_msbt.c(720): warning C4996: 'WSASetServiceA': Use WSASetServiceW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
msbt\_msbt.c(775): warning C4996: 'WSASetServiceA': Use WSASetServiceW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
D:DevelopProgram FilesCSMicrosoft Visual Studio2019CommunityVCToolsMSVC14.28.29333inHostX86x64link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO "/LIBPATH:C:Program Files (x86)Microsoft SDKsWindowsv7.0ALibx64" "/LIBPATH:D:DevelopProgram FilesPythonPython38libs" "/LIBPATH:D:DevelopProgram FilesPythonPython38PCbuildamd64" "/LIBPATH:D:DevelopProgram FilesCSMicrosoft Visual Studio2019CommunityVCToolsMSVC14.28.29333ATLMFClibx64" "/LIBPATH:D:DevelopProgram FilesCSMicrosoft Visual Studio2019CommunityVCToolsMSVC14.28.29333libx64" "/LIBPATH:C:Program Files (x86)Windows KitsNETFXSDK4.8libumx64" "/LIBPATH:D:DevelopProgram FilesWindows Kits10lib10.0.19041.0ucrtx64" "/LIBPATH:D:DevelopProgram FilesWindows Kits10lib10.0.19041.0umx64" WS2_32.lib Irprops.lib /EXPORT:PyInit__msbt buildemp.win-amd64-3.8Releasemsbt\_msbt.obj /OUT:buildlib.win-amd64-3.8luetooth\_msbt.cp38-win_amd64.pyd /IMPLIB:buildemp.win-amd64-3.8Releasemsbt\_msbt.cp38-win_amd64.lib
LINK : fatal error LNK1181: 无法打开输入文件“Irprops.lib”
error: command 'D:\Develop\Program Files\CS\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\bin\HostX86\x64\link.exe' failed with exit status 1181
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…