cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.02k stars 249 forks source link

windows10 can't build librtlsdr #923

Closed erichuanhuan closed 2 years ago

erichuanhuan commented 2 years ago

Open "Developer Command Prompt for VS 2019" by right-clicking and "Run as Administrator". ERROR: C:\MSVCDev\librtlsdr_win64\src\rtlsdr.rc(2): fatal error RC1015: cannot open include file 'afxres.h'. [C:\MSVCDev\librtlsdr_win64\src\rtlsdr_shared.vcxproj] LINK : fatal error LNK1181: cannot open include file “m.lib” [C:\MSVCDev\librtlsdr_win64\src\rtl_raw2wav.vcxproj] thanks..

vsonnier commented 2 years ago

C:\MSVCDev\librtlsdr_win64\src\rtlsdr.rc(2): fatal error RC1015: cannot open include file 'afxres.h'.

This suggests that building that lib needs MFC, so install them from your VS installer or use a pre-built Dll from Github repo.