Skip to content

Building Scopy on Windows

Paul Cercueil edited this page Nov 9, 2016 · 14 revisions

Installing the dependencies

Installing MSYS2

Download the 64-bit (x86_64) version of MSYS2 from here: https://msys2.github.io
Follow the instructions on the page linked above to install it, and update it.

When it's done, you need to install a couple of packages that Scopy depends on:

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-qt5 mingw-w64-x86_64-libxml2 \
mingw-w64-x86_64-libusb mingw-w64-x86_64-boost mingw-w64-x86_64-python3 mingw-w64-x86_64-fftw \
mingw-w64-x86_64-libzip mingw-w64-x86_64-glib2 mingw-w64-x86_64-glibmm mingw-w64-x86_64-pkg-config \
git ninja tar

Installing the pre-compiled libraries

Some dependencies cannot be found in MSYS2 (GNU Radio, libsigrok etc.).
To simplify things, we created a ZIP package containing these dependencies in pre-compiled form.

Let's download it and extract it in the MSYS2 folder:

wget http://swdownloads.analog.com/cse/build/msys64.tar.xz -O- | tar -C / --strip-components=1 -xJ

Building Scopy

First, make sure you launch the 64-bit shell of MSYS2. It won't work in any other shell.

Cloning the repository

cd ~
git clone https://github.com/analogdevicesinc/scopy.git

This will fetch the latest sources from GitHub to a "scopy" directory.

Building Scopy

First, let's create a build folder so that we don't pollute the sources with generated files:

mkdir ~/scopy/build
cd ~/scopy/build

Then, let's configure the build:

cmake -GNinja ~/scopy

If everything goes well, it should say "Configuring done" and "Generating done".
If it says that it failed, no need to continue further.

To build the project:

ninja

This can take as long as 10 minutes or more, depending on your CPU.

Running Scopy

TODO

Clone this wiki locally