WIP updated Windows build instructions (2)

Vincent Sonnier 2018-05-18 10:02:11 +02:00
parent 201440504b
commit 9abb4130d4

@ -22,7 +22,7 @@ Download https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.1/wxWidge
Navigate to C:\MSVCDev\wxWidgets-3.1.1\build\msw\ (or wherever you extracted) and open wx_vc15.sln. Navigate to C:\MSVCDev\wxWidgets-3.1.1\build\msw\ (or wherever you extracted) and open wx_vc15.sln.
Choose "Release" and "x64" for the build configuration and "Build Solution". All *should* compile successfully and you can close the project. Choose `Release` and `x64` for the build configuration and "Build Solution". All *should* compile successfully and you can close the project.
This configuration effectively builds wxWidgets as static library, later linked to CubicSDR. This configuration effectively builds wxWidgets as static library, later linked to CubicSDR.
# Install CMake: # Install CMake:
@ -46,7 +46,7 @@ Download ZIP or clone SoapySDR from https://github.com/pothosware/SoapySDR to C:
* Click "Configure" and choose "Visual Studio 15 2017 Win64" and Finish * Click "Configure" and choose "Visual Studio 15 2017 Win64" and Finish
* Click "Generate" * Click "Generate"
Open "Developer Command Prompt for VS2015" by right-clicking and "Run as Administrator". Open "Developer Command Prompt for VS2017" by right-clicking and "Run as Administrator".
From the prompt: From the prompt:
@ -71,9 +71,9 @@ Update your system environment variables (Search "enviornment variables" in wind
* Choose C:\MSVCDev\CubicSDR for source. * Choose C:\MSVCDev\CubicSDR for source.
* Choose C:\MSVCDev\CubicSDR_win64 for build folder. * Choose C:\MSVCDev\CubicSDR_win64 for build folder.
* Click Configure. * Click Configure.
* Choose "Visual Studio 14 2015 Win64" and Finish. * Choose "Visual Studio 15 2017 Win64" and Finish.
* Set wxWidgets_ROOT_DIR to "C:\MSVCDev\wxWidgets-3.1.0". * Set wxWidgets_ROOT_DIR to "C:\MSVCDev\wxWidgets-3.1.1".
* Set wxWidgets_LIB_DIR to "C:\MSVCDev\wxWidgets-3.1.0\lib\vc_x64_lib". * Set wxWidgets_LIB_DIR to "C:\MSVCDev\wxWidgets-3.1.1\lib\vc_x64_lib".
Configure variables to indicate CubicSDR that modules files will be searched in the `[CubicSDR executable]\modules` directory: Configure variables to indicate CubicSDR that modules files will be searched in the `[CubicSDR executable]\modules` directory:
@ -85,7 +85,14 @@ Configure variables to indicate CubicSDR that modules files will be searched in
- Once open select "Release" and "x64" build configuration and then "Build Solution" (F6) - Once open select "Release" and "x64" build configuration and then "Build Solution" (F6)
- CubicSDR.exe should now be in the output folder (i.e. C:\MSVCDev\CubicSDR_win64\x64\) and ready to run (minus support modules). - CubicSDR.exe should now be in the output folder (i.e. C:\MSVCDev\CubicSDR_win64\x64\) and ready to run (minus support modules).
# Build Support Modules # Build Support Modules and dependencies
## Libusb and friends
`libusb` is a low-level USB 'driver' used by the `librtlsdr` used in turn by the SoapySDR module below to talk to the hardware. There are 2 way to get them:
- A) Easiest way: use a pre-compiled `librtlsdr` binary which also package `libusb` from the [librtlsdr Releases](https://github.com/librtlsdr/librtlsdr/releases) page and choose the "x64" version.
- B) Compile both libraries :
## SoapyRTLSDR ## SoapyRTLSDR