Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
university:tools:m2k:scopy:build-windows [16 Jul 2019 10:41] Antoniu Miclausuniversity:tools:m2k:scopy:build-windows [31 Jul 2019 11:32] – Update build guide for windows Guramulta Daniel
Line 3: Line 3:
 ===== Installing the dependencies ===== ===== Installing the dependencies =====
  
-\\ 
 ==== Installing MSYS2 ==== ==== Installing MSYS2 ====
-Download the 64-bit (x86_64) version of MSYS2 from here: [[https://msys2.github.io|MSYS2 Download]] \\  +Download MSYS2 from here: [[https://msys2.github.io|MSYS2 Download]] \\  
 Follow the instructions on the page linked above to install it, and update it. \\ 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:+When it's done, you need to install a couple of packages (64-bit or 32-bit) that Scopy depends on:
  
 +**64-bit**
 <xterm> <xterm>
-    **pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake  +    **pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-cmake  
-    mingw-w64-x86_64-libxml2 mingw-w64-x86_64-libusb mingw-w64-x86_64-matio +    mingw-w64-x86_64-matio 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-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-libzip mingw-w64-x86_64-glib2 mingw-w64-x86_64-glibmm \ 
-    mingw-w64-x86_64-pkg-config mingw-w64-x86_64-ninja git tar**+    mingw-w64-x86_64-pkg-config mingw-w64-x86_64-ninja 
 +    mingw-w64-x86_64-breakpad-git git tar**
 </xterm> </xterm>
-\\ 
-This will take about 5-6 GiB on your hard drive. 
  
-\\ +**32-bit** 
-==== Installing Qt ==== +<xterm> 
-We need to install Qt 5.9.1, instead of the latest Qt package provided by pacman. +    **pacman -S mingw-w64-i686-gcc mingw-w64-i686-gdb mingw-w64-i686-cmake mingw-w64-i686-matio \ 
-\\ +    mingw-w64-i686-libxml2 mingw-w64-i686-libusb mingw-w64-i686-boost mingw-w64-i686-python3 \ 
-  *Downloading and installing Qt 5.9.1 for 64-bit+    mingw-w64-i686-fftw mingw-w64-i686-libzip mingw-w64-i686-glib2 mingw-w64-i686-glibmm 
 +    mingw-w64-i686-pkg-config mingw-w64-i686-ninja mingw-w64-i686-breakpad-git git tar** 
 +</xterm>
  
 +In order to apply the [[https://github.com/analogdevicesinc/scopy/wiki/Scopy-style-guidelines|style guidelines]] astyle is required:
 +
 +**64-bit:**
 <xterm> <xterm>
-    **wget http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-qt5-5.9.1-1-any.pkg.tar.xz +    **pacman -mingw-w64-x86_64-astyle**
-    pacman -U --noconfirm mingw-w64-x86_64-qt5-5.9.1-1-any.pkg.tar.xz**+
 </xterm> </xterm>
 +
 +**32-bit:**
 +<xterm>
 +    **pacman -S mingw-w64-i686-astyle**
 +</xterm>
 +
 +An older version of hdf5 is needed, the one that is currently being installed on MSYS2 is not supported:
 +
 +**64-bit:**
 +<xterm>
 +    **<nowiki>wget -q http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-hdf5-1.8.21-2-any.pkg.tar.xz
 +    pacman -U --force --noconfirm mingw-w64-x86_64-hdf5-1.8.21-2-any.pkg.tar.xz</nowiki>**
 +</xterm>
 +
 +**32-bit:**
 +<xterm>
 +    **<nowiki>wget -q http://repo.msys2.org/mingw/i686/mingw-w64-i686-hdf5-1.8.21-2-any.pkg.tar.xz
 +    pacman -U --force --noconfirm mingw-w64-i686-hdf5-1.8.21-2-any.pkg.tar.xz</nowiki>**
 +</xterm>
 +
 +This will take about 5-6 GiB on your hard drive.
 \\ \\
-  *Downloading and installing Qt 5.9.1 for 32-bit+==== Installing Qt ==== 
 +The latest version of Qt can be installed using:
  
 +**64-bit:**
 <xterm> <xterm>
-    **wget http://repo.msys2.org/mingw/i686/mingw-w64-i686-qt5-5.9.1-1-any.pkg.tar.xz +    **pacman -mingw-w64-x86_64-qt5**
-    pacman -U --noconfirm mingw-w64-i686-qt5-5.9.1-1-any.pkg.tar.xz**+
 </xterm> </xterm>
  
 +**32-bit:**
 +<xterm>
 +    **pacman -S mingw-w64-i686-qt5**
 +</xterm>
 \\ \\
 ==== Installing the pre-compiled libraries ==== ==== Installing the pre-compiled libraries ====
 Some dependencies cannot be found in MSYS2 (GNU Radio, libsigrok etc.). 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. 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: Let's download it and extract it in the MSYS2 folder:
  
-  *64-bit pre-compiled libraries+**64-bit:**
  
 <xterm> <xterm>
-    **<nowiki> wget "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw64-build-deps.tar.xz?branch=master&job=Environment: MINGW_VERSION=mingw64, ARCH=x86_64" -O- | tar -C / --strip-components=1 -xJ </nowiki>**+    **<nowiki> wget "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw64-build-deps.tar.xz?branch=master</nowiki>%%&%%<nowiki>job=Environment: MINGW_VERSION=mingw64, ARCH=x86_64" -O- | tar -C / --strip-components=1 -xJ </nowiki>**
 </xterm> </xterm>
  
-  *32-bit pre-compiled libraries+**32-bit:**
 <xterm> <xterm>
-    **<nowiki> wget "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw32-build-deps.tar.xz?branch=master&job=Environment: MINGW_VERSION=mingw32, ARCH=i686" -O- | tar -C / --strip-components=1 -xJ </nowiki>**+    **<nowiki> wget "https://ci.appveyor.com/api/projects/analogdevicesinc/scopy-mingw-build-deps/artifacts/scopy-mingw32-build-deps.tar.xz?branch=master</nowiki>%%&%%<nowiki>job=Environment: MINGW_VERSION=mingw32, ARCH=i686" -O- | tar -C / --strip-components=1 -xJ </nowiki>**
 </xterm> </xterm>
 \\ \\
university/tools/m2k/scopy/build-windows.txt · Last modified: 14 Jul 2020 17:15 by Adrian Suciu