WIP updated Windows build instructions

Vincent Sonnier 2018-05-18 09:35:56 +02:00
parent 94b1371837
commit 201440504b

@ -1,19 +1,29 @@
Windows7/Windows 8.1/10, Visual Studio 64-bit: -- improvements welcome.
# Install Visual Studio Community 2015
# Overview
If you don't already have Visual Studio 2015 you can install the free Microsoft "Visual Studio Community 2015" version available from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx which was used for this guide.
This guide describes how to build CubicSDR together with its dependencies and some common SoapySDR modules (support for SDR hardware).
While the focus is on Visual Studio 2017, it works also for Visual Studio 2015. The 2017 version is just a better 2015 version in every way, so use this one preferably.
Visual Studio 2017 also has a better optimizing compiler which may result a faster CubicSDR.
During installation make sure you select the 'C++' compiler under 'Programming Languages' or you'll be unable to compile the project due to the missing C++ tools.
Interesting point, VS2017 produces binaries compatible with VS2015 ones, so there is no point of not using VS2017.
Alternatively if you don't want to compile anything and install pre-built binaries instead of an almost up to date CubicSDR (typically a month-old), you can install the amazing [PothosSDR distribution](https://github.com/pothosware/PothosSDR/wiki/Tutorial) (Rsources / Download installer)
# Install Visual Studio Community 2017
If you don't already have Visual Studio 2017 you can install the free Microsoft "Visual Studio Community 2017" version available from https://www.visualstudio.com/downloads/ which was used for this guide.
During installation with the 'Visual Studio Installer' make sure you select at least the `C++ Desktop development` category or you'll be unable to compile the project due to the missing C++ tools. Alternatively, you can select more focused `Individual Components` for a finer-grained installation.
# Build wxWidgets
Download https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.zip and unzip it to somewhere such as C:\MSVCDev\wxWidgets-3.1.0\
Download https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.1/wxWidgets-3.1.1.zip and unzip it to somewhere such as C:\MSVCDev\wxWidgets-3.1.1\
Navigate to C:\MSVCDev\wxWidgets-3.1.0\build\msw\ (or wherever you extracted) and open wx_vc14.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.
This configuration effectively builds wxWidgets as static library, later linked to CubicSDR.
# Install CMake:
@ -23,7 +33,7 @@ Download CMake from:
For this guide I've used:
* https://cmake.org/files/v3.6/cmake-3.6.1-win64-x64.msi
* https://cmake.org/files/v3.11/cmake-3.11.2-win64-x64.msi
As recommended, uninstall the older CMake version first if present, then just install CMake with default or preferred options.
@ -33,7 +43,7 @@ Download ZIP or clone SoapySDR from https://github.com/pothosware/SoapySDR to C:
* Launch CMake, set source path to C:/MSVCDev/SoapySDR/
* Set destination to C:/MSVCDev/SoapySDR_win64/
* Click "Configure" and choose "Visual Studio 14 2015 Win64" and Finish
* Click "Configure" and choose "Visual Studio 15 2017 Win64" and Finish
* Click "Generate"
Open "Developer Command Prompt for VS2015" by right-clicking and "Run as Administrator".