-
Notifications
You must be signed in to change notification settings - Fork 170
Building Scopy on Windows
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
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
First, make sure you launch the 64-bit shell of MSYS2. It won't work in any other shell.
cd ~
git clone https://github.com/analogdevicesinc/scopy.git
This will fetch the latest sources from GitHub to a "scopy" directory.
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.
TODO