OpenVPN / tap-windows6

Windows TAP driver (NDIS 6)
Other
794 stars 237 forks source link

build failed #162

Open DrBrown777 opened 1 year ago

DrBrown777 commented 1 year ago

Hello, execute comand:

buildtap.py -b --sdk=wdk

how to get around the following errors when building: 1. C:\Program Files (x86)\Windows Kits\10\build\10.0.22621.0\WindowsDriver.common.targets(235,5): error : 'Win32' is not a valid architecture for Kernel mode drivers or UMDF drivers [C:\Users\Roman\Downloads\tap-windows6-master\src\tap-wi ndows6.vcxproj] 2. C:\Program Files (x86)\Windows Kits\10\build\10.0.22621.0\WindowsDriver.common.targets(238,5): error : 'Windows7' is not a supported OS Version [C:\Users\Roman\Downloads\tap-windows6-master\src\tap-windows6.vcxproj] 3. C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'tap-windows6.vcxproj'. Please chec k to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='arm64'. You may be seeing this message because you are trying to build a project without a s olution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\Roman\Downloads\tap-windows6-master\src\tap-windows6.vcxproj] 4. C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(832,5): error : The BaseOutputPath/OutputPath property is not set for project 'tap-windows6.vcxproj'. Please ch eck to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='Release' Platform='arm64'. You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project. [C:\Users\Roman\Downloads\tap-windows6-master\src\tap-windows6.vcxproj]

lucidmaj7 commented 4 months ago

@DrBrown777 It looks like you tried building with wdk 10.0.22621.0 and visual studio 2022. However, visual studio 2022. and 10.0.22621.0 does not seem to support Windows 7, 32bit target build. I recommend trying with visual studio 2019, wdk 10.0.22000.