<commit_before>---
title: MNE-CPP with QtWasm
parent: Learn
nav_order: 6
---

# MNE-CPP with QtWasm

## Setup Qt Wasm to work with MNE-CPP on Ubuntu 18.04.03 64bit:

 * Get emscripten compiler. According to the official Qt Wasm guide, preferred emscripten version are:

   Qt 5.12: 1.38.16

   Qt 5.13: 1.38.27 (multithreading: 1.38.30)

   Qt 5.14: it's complicated (1.38.27)

#### Some utils functions were not able to be linked against (undefined resource errors). It is possible that some mne-cpp functions are not compatible with emscripten 1.38.30. Some newer versions which are not officially tested with Qt Wasm, are able to be compiled succesfully, listed below:

   Qt5.13.2 compiled with em++ 1.39.3 with thread support and dispOpenGL flag via cmd line qmake -> Produced a lot of overlaying  window glitches. **Not recommended**

   Qt5.13.2 compiled with em++ 1.39.3 with thread support via cmd line qmake (not using QtCreator)

   Qt5.14.0 compiled with em++ 1.39.3 with thread support and dispOpenGL flag via cmd line qmake -> Produced a lot of overlaying  window glitches. **Not recommended**

   Qt5.14.0 compiled with em++ 1.39.3 with thread support  via cmd line qmake (not using QtCreator)

```<commit_msg>formatting fixes pt2<commit_after>---
title: MNE-CPP with QtWasm
parent: Learn
nav_order: 6
---

# MNE-CPP with QtWasm

## Setup Qt Wasm to work with MNE-CPP on Ubuntu 18.04.03 64bit:

 * Get emscripten compiler. According to the official Qt Wasm guide, preferred emscripten version are:

   Qt 5.12: 1.38.16

   Qt 5.13: 1.38.27 (multithreading: 1.38.30)

   Qt 5.14: it's complicated (1.38.27)

 * Some utils functions were not able to be linked against (undefined resource errors). It is possible that some mne-cpp functions are not compatible with emscripten 1.38.30. Some newer versions which are not officially tested with Qt Wasm, are able to be compiled succesfully, listed below:

   Qt5.13.2 compiled with em++ 1.39.3 with thread support and dispOpenGL flag via cmd line qmake -> Produced a lot of overlaying  window glitches. **Not recommended**

   Qt5.13.2 compiled with em++ 1.39.3 with thread support via cmd line qmake (not using QtCreator)

   Qt5.14.0 compiled with em++ 1.39.3 with thread support and dispOpenGL flag via cmd line qmake -> Produced a lot of overlaying  window glitches. **Not recommended**

   Qt5.14.0 compiled with em++ 1.39.3 with thread support  via cmd line qmake (not using QtCreator)

```
{'fraction_non_alphanumeric': 0.0835030549898167, 'fraction_numerical': 0.0615071283095723, 'mean_word_length': 3.599250936329588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4106524', 'n_tokens_mistral': 858, 'n_tokens_neox': 747, 'n_words': 348}