Difference between revisions of "Programming Howto:Building and Customizing BCI2000"

From BCI2000 Wiki
Jump to: navigation, search
Line 1: Line 1:
 
==Install prerequisites==
 
==Install prerequisites==
 
===TortoiseSVN===
 
===TortoiseSVN===
Download installer from [https://tortoisesvn.net tortoisesvn.net]
+
Download TortoiseSVN installer from [https://tortoisesvn.net tortoisesvn.net]
  
Run installer, don't forget to install command line client tools
+
Run installer
 +
 
 +
[[File:TortoiseSVN_2-1985.png|center]]
 +
 
 +
Don't forget to install command line client tools
 +
 
 +
[[File:TortoiseSVN_3-1990.png|center]]
  
[[File:TortoiseSVN_2-1985.png|254px]]
+
 
[[File:TortoiseSVN_3-1990.png|254px]]
+
[[File:TortoiseSVN_4-2001.png|center]]
[[File:TortoiseSVN_4-2001.png|254px]]
 
  
 
===CMake===
 
===CMake===
Download installer from [https://cmake.org cmake.org]
+
Download CMake installer from [https://cmake.org cmake.org]
  
 
Run installer
 
Run installer
  
[[File:CMake_2-2013.png|254px]]
+
[[File:CMake_2-2013.png|center]]
[[File:CMake_3-2019.png|254px]]
+
 
[[File:CMake_4-2025.png|254px]]
+
Choose "Add to path for all users"
 +
 
 +
[[File:CMake_3-2019.png|center]]
 +
 
 +
 
 +
[[File:CMake_4-2025.png|center]]
  
 
===VisualStudio===
 
===VisualStudio===
Line 23: Line 33:
 
Run installer
 
Run installer
  
[[File:install_vs2017_community_1.png|490px]]
+
[[File:install_vs2017_community_1.png|center]]
  
 
Make sure to install the C++ compiler
 
Make sure to install the C++ compiler
  
[[File:install_vs2017_community_2.png|600px]]
+
[[File:install_vs2017_community_2.png|600px|center]]
  
 
===Qt===
 
===Qt===
Line 34: Line 44:
 
Run installer
 
Run installer
  
[[File:qt_installer_1.png|562px]]
+
[[File:qt_installer_1.png|center]]
[[File:qt_installer_2.png|562px]]
+
 
[[File:qt_installer_3.png|562px]]
+
Click "Skip" when prompted for a Qt account
[[File:qt_installer_4.png|562px]]
+
 
[[File:qt_installer_5.png|562px]]
+
[[File:qt_installer_2.png|center]]
[[File:qt_installer_6.png|562px]]
+
 
[[File:qt_installer_7.png|562px]]
+
 
[[File:qt_installer_8.png|562px]]
+
[[File:qt_installer_3.png|center]]
[[File:qt_installer_9.png|562px]]
+
 
[[File:qt_installer_10.png|562px]]
+
 
[[File:qt_installer_11.png|562px]]
+
[[File:qt_installer_4.png|center]]
 +
 
 +
Choose a Qt version that is consistent with the version of VisualStudio you downloaded earlier
 +
 
 +
[[File:qt_installer_5.png|center]]
 +
 
 +
 
 +
[[File:qt_installer_6.png|center]]
 +
 
 +
 
 +
[[File:qt_installer_7.png|center]]
 +
 
 +
 
 +
[[File:qt_installer_8.png|center]]
 +
 
 +
 
 +
[[File:qt_installer_9.png|center]]
 +
 
 +
 
 +
[[File:qt_installer_10.png|center]]
 +
 
 +
Uncheck "Launch Qt Creator" before clicking "Finish"
 +
 
 +
[[File:qt_installer_11.png|center]]
  
 
==Register with BCI2000 Project==
 
==Register with BCI2000 Project==
[[File:BCI2000_registration_1-1886.png|520px]]
+
 
[[File:BCI2000_registration_2-2199.png|520px]]
+
[[File:BCI2000_registration_1-1886.png|center]]
[[File:BCI2000_registration_3-2218.png|520px]]
+
 
[[File:BCI2000_registration_4-2228.png|520px]]
+
 
[[File:BCI2000_registration_6-2238.png|520px]]
+
[[File:BCI2000_registration_2-2199.png|center]]
[[File:BCI2000_registration_7-2245.png|520px]]
+
 
[[File:BCI2000_registration_9-2257.png|520px]]
+
 
[[File:BCI2000_registration_10-2264.png|520px]]
+
[[File:BCI2000_registration_3-2218.png|center]]
[[File:BCI2000_registration_11-2270.png|520px]]
+
 
 +
 
 +
[[File:BCI2000_registration_4-2228.png|center]]
 +
 
 +
 
 +
[[File:BCI2000_registration_6-2238.png|center]]
 +
 
 +
 
 +
[[File:BCI2000_registration_7-2245.png|center]]
 +
 
 +
 
 +
[[File:BCI2000_registration_9-2257.png|center]]
 +
 
 +
 
 +
[[File:BCI2000_registration_10-2264.png|center]]
 +
 
 +
 
 +
[[File:BCI2000_registration_11-2270.png|center]]
 +
 
 +
==Download the BCI2000 source code==
 +
[[File:SVN_1-2294.png|center]]
 +
 
 +
 
 +
[[File:SVN_2-2305.png|center]]
 +
 
 +
Enter user name and password as chosen in the registration step
 +
 
 +
[[File:SVN_3-2315.png|center]]
 +
 
 +
 
 +
[[File:SVN_4-2326.png|center]]
 +
 
 +
 
 +
[[File:SVN_5-2333.png|center]]
 +
 
 +
==Configure BCI2000 for compilation==
 +
[[File:use_cmake_1.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_2.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_3.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_4.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_5.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_6.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_7.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_8.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_9.PNG|center]]
 +
 
 +
 
 +
[[File:use_cmake_10.PNG|center]]
 +
 
 +
==Compile BCI2000==
 +
[[File:use_vs2017_0.png|center]]
 +
 
 +
 
 +
[[File:use_cmake_10.PNG|center]]
 +
 
 +
 
 +
[[File:use_vs2017_1.png|center]]
 +
 
 +
 
 +
[[File:use_vs2017_2.png|center]]
 +
 
 +
 
 +
[[File:use_vs2017_3.png|center]]
 +
 
 +
 
 +
[[File:use_vs2017_4.png|center]]
 +
 
 +
 
 +
[[File:use_vs2017_5.png|center]]

Revision as of 15:26, 9 August 2018

Install prerequisites

TortoiseSVN

Download TortoiseSVN installer from tortoisesvn.net

Run installer

TortoiseSVN 2-1985.png

Don't forget to install command line client tools

TortoiseSVN 3-1990.png


TortoiseSVN 4-2001.png

CMake

Download CMake installer from cmake.org

Run installer

CMake 2-2013.png

Choose "Add to path for all users"

CMake 3-2019.png


CMake 4-2025.png

VisualStudio

Download VisualStudio Community installer from visualstudio.com

Run installer

Install vs2017 community 1.png

Make sure to install the C++ compiler

Install vs2017 community 2.png

Qt

Download the open source installer from www.qt.io

Run installer

Qt installer 1.png

Click "Skip" when prompted for a Qt account

Qt installer 2.png


Qt installer 3.png


Qt installer 4.png

Choose a Qt version that is consistent with the version of VisualStudio you downloaded earlier

Qt installer 5.png


Qt installer 6.png


Qt installer 7.png


Qt installer 8.png


Qt installer 9.png


Qt installer 10.png

Uncheck "Launch Qt Creator" before clicking "Finish"

Qt installer 11.png

Register with BCI2000 Project

BCI2000 registration 1-1886.png


BCI2000 registration 2-2199.png


BCI2000 registration 3-2218.png


BCI2000 registration 4-2228.png


BCI2000 registration 6-2238.png


BCI2000 registration 7-2245.png


BCI2000 registration 9-2257.png


BCI2000 registration 10-2264.png


BCI2000 registration 11-2270.png

Download the BCI2000 source code

SVN 1-2294.png


SVN 2-2305.png

Enter user name and password as chosen in the registration step

SVN 3-2315.png


SVN 4-2326.png


SVN 5-2333.png

Configure BCI2000 for compilation

Use cmake 1.PNG


Use cmake 2.PNG


Use cmake 3.PNG


Use cmake 4.PNG


Use cmake 5.PNG


Use cmake 6.PNG


Use cmake 7.PNG


Use cmake 8.PNG


Use cmake 9.PNG


Use cmake 10.PNG

Compile BCI2000

Use vs2017 0.png


Use cmake 10.PNG


Use vs2017 1.png


Use vs2017 2.png


Use vs2017 3.png


Use vs2017 4.png


Use vs2017 5.png