Widespread Augmented Reality

Widespread Augmented Reality
Click on the image to get the Android Augmented Reality Heads up Display

Wednesday, July 15, 2020

GNU Radio Windows Installation

First of all, this process is cumbersome and requires modifying Windows Environment Variables and modifying the script that is called:
Setup.ps1 .

I followed the instructions at https://github.com/gnieboer/gnuradio_windows_build_scripts

Everything is correct in the "Prerequisites" and "Installation & Build" sections.

Just to add some clarity, after searching for and installing the "Prerequisites", it may help to add all the executable files to the PATH environment variables for Windows.

The main thing is that I have Visual Studio Community 2019, not Visual Studio 2015.

As a result, I had to pay attention to "C:\..\GNURadio_Windows_Build_Scripts\Setup.ps1".

Specifically these lines:

# MSVC 2015
if ($env:VS140COMNTOOLS -eq $null) {throw "Visual Studio 2015 must be installed.  Aborting script"} 

# WIX
if (-not (test-path $env:WIX)) {throw "WIX toolset must be installed.  Aborting script"}

# doxygen
if ((Get-Command "doxygen.exe" -ErrorAction SilentlyContinue) -eq $null)  {throw "Doxygen must be installed and on the path.  Aborting script"} 
 
# set VS 2015 environment
if (!(Test-Path variable:global:oldpath))
{
 pushd "$env:VS140COMNTOOLS/../../VS"
 #pushd "$env:VS140COMNTOOLS/../../VC"
 cmd.exe /c "vcvarsall.bat amd64&set" |

See $env:VS140COMNTOOLS. I had to do a search in my Microsoft Visual Studio directory for "vcvarsall.bat" and then create an environment variable in Windows named VS140COMNTOOLS that points to vcvarsall.bat.

Next I had to change what seems to be a typo with "$env:VS140COMNTOOLS/../../VC". On my Windows machine, the directory is "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\VS".

Also you may have to add the path to VCVarsall.bat, e.g. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build" to the Environment path variable.

Currently the build is running, I post this prematurely just in case I die before it completes.




UPDATE:

Still alive when install process crashed as it was unable to find Msbuild on any path.

Downloaded MsBuild from https://www.microsoft.com/en-us/download/details.aspx?id=48159 and added the path to the environment variables.

Ran ./~Setup.ps1 again, but opted for short build option. Life is short.


Still alive and script is crashing on trying to find armadillo at SourceForge. Downloading the file myself and putting it where the script expects. Rerunning from the beginning in hopes that the script is smart enough to skip if already downloaded.

Oh joy...apparently the script will bypass a step if the file is already downloaded.

End of this post

PS: If it still fails, I already have GNU radio running on Kali Linux.
Or you could simply visit http://www.gcndevelopment.com/gnuradio/downloads.htm with the FireFox Browser and just install the appropriate msi.

No comments:

Post a Comment