A series of Powershell scripts to automatically download, build from source, and install GNURadio and -all- it's dependencies as 64-bit native binaries then package as an msi using Visual Studio 2015
PowerShell C OCaml Makefile Scheme Batchfile Other
Permalink
Failed to load latest commit information.
bin Numerous bug fixes Apr 8, 2016
run Add gqrx to installation package May 2, 2016
wix Update version info to 3.7.10.1 and script version 1.1.2 Sep 2, 2016
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. Jan 30, 2016
.gitignore Added binaries to repo Mar 30, 2016
AVX2.props Included AVX2.prop file and other bug fixes Mar 30, 2016
ConfigInfo.psd1 Prep for release of Version 1.1 May 3, 2016
GNURadio_Windows_Build.pssproj Prep for v1.1.1 release to fix critical gqrx bug May 4, 2016
GNURadio_Windows_Build.sln Prep for v1.1.1 release to fix critical gqrx bug May 4, 2016
LICENSE Initial commit Mar 1, 2016
README.md Update version info to 3.7.10.1 and script version 1.1.2 Sep 2, 2016
Setup.ps1 Fix non-ANSI characters in variable definitions May 15, 2016
Step1-UserPreferences.ps1 Typo Apr 24, 2016
Step2-GetStage1Packages.ps1 Fixed Pygobject nuisance errors when starting up gnuradio May 4, 2016
Step3-BuildStage1Packages.ps1 Cleaned up python pip calls May 3, 2016
Step4-BuildPythonPackages.ps1 Cleaned up python pip calls May 3, 2016
Step5-ConsolidateLibs.ps1 Added gqrx to baseline. UHD is not working in gqrx yet. Apr 29, 2016
Step5a-DownloadDependencies.ps1 Fixed qt.conf not being recognized unless in ASCII format Apr 12, 2016
Step6-GetStage3Packages.ps1 Added gqrx to baseline. UHD is not working in gqrx yet. Apr 29, 2016
Step7-BuildGNURadio.ps1 Fixed gqrx/Qt5 needing platform plugins on a clean machine May 4, 2016
Step8-BuildOOTModules.ps1 Added -force to prevent nuisance errors during rebuilds Aug 30, 2016
Step9-BuildMSI.ps1 Update version info to 3.7.10.1 and script version 1.1.2 Sep 2, 2016
~RUNME_FIRST.ps1 Enabled single configuration build and a couple formatting tweaks Apr 12, 2016

README.md

GNURadio Windows Build Scripts v1.1.2

A series of Powershell scripts to automatically download, build from source, and install GNURadio and -all- it's dependencies as 64-bit native binaries then package as an .msi using Visual Studio 2015.

For more details on this effort, please see the support website

The finished MSI includes:

Device Support: UHD, RTL-SDR, hackrf, airspy, BladeRF, osmoSDR, FCD

GNURadio modules: 3.7.10.1 with all but gr-comedi modules built and included

OOT modules: gr-iqbal, gr-fosphor, gr-osmosdr, gr-acars, gr-adsb, gr-modtool

Other Applications: gqrx

PREREQUISITES

The following tools must be installed:

  • MS Visual Studio 2015 (Community or higher)
  • Git For Windows
  • CMake
  • Doxygen
  • ActiveState Perl
  • Wix toolset for VS 2015

Also, the complete build requires no less than 60 GB of free disk space.

INSTALLATION & BUILD

Run the below from an elevated command prompt (the only command that requires elevation is the Set-ExecutionPolicy. If desired, the rest can be run from a user-privilege account)

git clone http://www.github.com/gnieboer/GNURadio_Windows_Build_Scripts
cd GNURadio_Windows_Build_Scripts
powershell 
Set-ExecutionPolicy Unrestricted
./~RUNME_FIRST.ps1

Build logs can be found in the $root/logs directory. The scripts will validate key parts of each step, but are not 100% guaranteed to detect a partial build failure. Use the logs to further diagnose issues.

Once complete, msi files can be found in the [root]/src-stage4-installer/dist subdirectories. The build can be tested after Step 7 by running run_grc.bat in the src-stage3/staged_install/[config]/bin subdirectory to

ISSUES

**- IMPORTANT: Currently the scripts will produce a Release MSI that will not run on non-AVX machines. This is because of a bug in VOLK that is can be fixed by the patch here: https://github.com/gnuradio/volk/pull/78. It's a single line of code to change in one file, so if the pull request has not been included when you want to run the script, make the change manually.

1- Ensure your anti-virus is off during installation... even Windows Defender. PyQt4 may fail to create manifest files as a result.

2- Right-click your powershell window, go to "Properties" and ensure QuickEdit and Insert Mode are NOT checked. Otherwise when you click on the window, execution may pause without any indication as to why, leading you to believe the build has hung.

3- This has been tested with a B200 UHD, a hackRF, and an RTL-SDR. Other device drivers have not been phyiscally verified to work. If you own one, please let me know if you had success.

4- In the event of issues, I highly recommend Dependency Walker to troubleshoot what libraries are linked to what.

5- If your connection is spotty, you may get partially downloaded packages which cause build failures. To correct, DELETE the suspect package from the /packages directory so it will retry the download.

6- The Debug build will currently fail to build PyGTK and Wx, so GRC will not be available. The build process will continue but GNURadio will have these features enabled and the shortcuts provided during install will not function. gr-acars will also fail for the debug build only

7- The following devices are NOT currently supported: FCD Pro+, RFSPACE, MiriSDR, SoapySDR

8- Installing MSVC to a non-standard path may cause the dependency checks to fail

9- CMake 3.3 is the only version currently supported. CMake 3.5 has been reported to have issues detecting the custom python install when at the BuildGNURadio step.

10- Zadig must be manually added to the /bin directory prior to MSI creation

LICENSE

The scripts themselves are released under the GPLv3. The resulting MSI's are also GPLv3 compatible, see www.gcndevelopment.com/gnuradio for details and access to all modifications to original source code. All patches are released under the same license as the original package it applies to.