diff --git a/Build-Windows.md b/Build-Windows.md index 8114b71..3ceec5a 100644 --- a/Build-Windows.md +++ b/Build-Windows.md @@ -94,4 +94,70 @@ C:\> cd C:\MSVCDev\ C:\MSVCDEV> cmake --build SoapyRTLSDR_win64 --config Release --target install ... Bunch of building ... 0 Error(s) -``` \ No newline at end of file +``` + + +## SoapySDRPlay + +* Clone or download ZIP from https://github.com/pothosware/SoapySDRPlay to C:\MSVCDev\SoapySDRPlay +* Download "Windows API & Hardware Driver Installer" from http://sdrplay.com/windows.html (serial check required) and install it with defaults. +* Copy C:\Program Files\MiricsSDR\API\x64\mir_sdr_api.dll to C:\Program Files\SoapySDR\bin + + +Open "Developer Command Prompt for VS2015" by right-clicking and "Run as Administrator". + +From the prompt: + +``` +C:\> cd "C:\Program Files\MiricsSDR\API\x64" +C:\Program Files\MiricsSDR\API\x64>dumpbin /exports mir_sdr_api.dll > mir_sdr_api.def +``` + +Leave prompt open and edit the .def file down so it looks like this; remove some lines and prefixes and add "EXPORTS" at the top. + +(reference only, these are the functions at the time of this instruction) +``` +EXPORTS +mir_sdr_ApiVersion +mir_sdr_DownConvert +mir_sdr_Init +mir_sdr_ReadPacket +mir_sdr_ResetUpdateFlags +mir_sdr_SetDcMode +mir_sdr_SetDcTrackTime +mir_sdr_SetFs +mir_sdr_SetGr +mir_sdr_SetGrParams +mir_sdr_SetParam +mir_sdr_SetRf +mir_sdr_SetSyncUpdatePeriod +mir_sdr_SetSyncUpdateSampleNum +mir_sdr_SetTransferMode +mir_sdr_Uninit +``` + +From the prompt: + +``` +C:\Program Files\MiricsSDR\API\x64>lib /MACHINE:x64 /def:mir_sdr_api.def /OUT:mir_sdr_api.lib +Microsoft (R) Library Manager Version 14.00.23026.0 +Copyright (C) Microsoft Corporation. All rights reserved. + + Creating library mir_sdr_api.lib and object mir_sdr_api.exp +C:\Program Files\MiricsSDR\API\x64> +``` + +* Launch CMake, set source path to C:/MSVCDev/SoapySDRPlay/ +* Set destination to C:/MSVCDev/SoapySDRPlay_win64/ +* Click "Configure" and choose "Visual Studio 14 2015 Win64" and Finish +* Click "Generate" + +From the prompt: + +``` +C:\> cd C:\MSVCDev\ +C:\MSVCDEV> cmake --build SoapySDRPlay_win64 --config Release --target install +... Bunch of building ... + 0 Error(s) +``` +