Skip to content

cbrnr/sigviewer

Repository files navigation

SigViewer

SigViewer is a viewing application for biosignals such as EEG or MEG time series. In addition to viewing raw data, SigViewer can also create, edit, and display event information (such as annotations or artifact selections).

Download

Screenshots

screenshot-1

Building SigViewer

SigViewer requires a standard-compliant C 11 build toolchain, for example recent versions of GCC or Clang. Other compilers such as MSVC might work, but are not tested. Furthermore, SigViewer depends on Qt. Current SigViewer builds use Qt 5.12 (previous or future versions are not guaranteed to work).

SigViewer also depends on libbiosig and libxdf. There are two options to get these external dependencies for your platform:

  1. Build these dependencies yourself (see separate descriptions below).
  2. Use our pre-built binaries. The corresponding archive contains binary versions of libbiosig and libxdf and must be extracted into SigViewer’s source folder (which we denote as $sigviewer).

Windows

Building SigViewer on Windows is currently not supported. We provide binaries created with the MXE cross compilation environment.

macOS

SigViewer requires Mac OS X (now renamed to macOS) 10.9 or later. First, install XCode from the App Store. Next, download and install Qt 5.12.3 for macOS or install Qt via Homebrew by running brew install qt in a terminal. Make sure that qmake is available on the path if you want to build SigViewer in a terminal. Alternatively, you can build SigViewer with Qt Creator (please refer to the description for building SigViewer on Windows).

  1. Download and unzip the SigViewer source.
  2. Provide all external dependencies:
    • Either download the external archive and extract it inside $sigviewer.
    • Or copy the necessary files from libbiosig and libxdf builds to the corresponding folders as detailed in the build descriptions for libbiosig and libxdf below.
  3. In a terminal, change to $sigviewer and run qmake.
  4. Run make (or if you want to use more cores to build in parallel, run make -j4 if you want to use four cores). The SigViewer binary is built in the bin/release folder.
  5. To create a stand-alone version of SigViewer, open a terminal, change into $sigviewer/bin/release and run macdeployqt sigviewer.app -dmg. This creates a disk image with the app, which can then be dragged to the Applications folder.

Linux

Install the GNU build toolchain and Qt 5 with your native package manager. You can either build on the command line or with Qt Creator (which you then need to install).

  1. Download and unzip the SigViewer source.
  2. Provide all external dependencies:
    • Either download the external archive and extract it inside $sigviewer.
    • Or copy the necessary files from libbiosig and libxdf builds to the corresponding folders as detailed in the build descriptions for libbiosig and libxdf below.
  3. In a terminal, change to $sigviewer and run qmake.
  4. Run make (or if you want to use more cores to build in parallel, run make -j 4 if you want to use four cores). The SigViewer binary is built in the bin/release folder.

Building external dependencies

Windows

Building libbiosig on Windows is currently not supported.

To build libxdf from source, follow these steps:

  1. Download and unzip the libxdf source (SigViewer 0.6.4 uses libxdf 0.99).
  2. On the command line, run qmake followed by mingw32-make (or build the project with Qt Creator) (instead of qmake, you can also run cmake .).
  3. Copy xdf.h into $sigviewer/external/include and libxdf.a to $sigviewer/external/lib.

macOS

To build libbiosig from source, follow these steps:

  1. Download and unzip BioSig for C/C into $libbiosig (SigViewer 0.6.4 uses libbiosig 1.9.4).
  2. Change line 156 of Makefile.in to CFLAGS = -mmacosx-version-min=10.9 (replace 10.13 with 10.9).
  3. In a terminal, change to $libbiosig and run ./configure.
  4. Run make.
  5. Copy biosig.h, biosig-dev.h, gdftime.h, and physicalunits.h to $sigviewer/external/include and libbiosig.a to $sigviewer/external/lib.

To build libxdf from source, follow these steps:

  1. Download and unzip the libxdf source to $libxdf (SigViewer 0.6.4 uses libxdf 0.99).
  2. In a terminal, change to $libxdf and run qmake followed by make (instead of qmake, you can also run cmake .).
  3. Copy xdf.h into $sigviewer/external/include and libxdf.a to $sigviewer/external/lib.

Linux

To build libbiosig from source, follow these steps:

  1. Download and unzip BioSig for C/C into $libbiosig (SigViewer 0.6.4 uses libbiosig 1.9.4).
  2. In a terminal, change to $libbiosig and run ./configure.
  3. Run make.
  4. Copy biosig.h, biosig-dev.h, gdftime.h, and physicalunits.h to $sigviewer/external/include and libbiosig.a to $sigviewer/external/lib.

To build libxdf from source, follow these steps:

  1. Download and unzip the libxdf source to $libxdf (SigViewer 0.6.4 uses libxdf 0.99).
  2. In a terminal, change to $libxdf and run qmake followed by make (instead of qmake, you can also run cmake .).
  3. Copy xdf.h into $sigviewer/external/include and libxdf.a to $sigviewer/external/lib.

About

SigViewer is a viewing application for biosignals.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages