Jump to content

Programming Howto:Automatically Build BCI2000 on Non-Windows Platforms

From BCI2000 Wiki

Back

to the overview page

Upgrading Homebrew

The fully automated installation and compile script below depends on the Homebrew package manager. If you have never installed or used it, you need not do anything; the script will take care of installing the latest Homebrew version for you.

Otherwise, if you have Homebrew installed, and are on an Apple Silicon machine, it is important to first update Homebrew to the latest version, in order to avoid broken binaries. From a terminal window, run the following:

brew update
brew upgrade

You are now ready to install BCI2000 following the steps below.

Navigate to BCI2000 Directory

Navigate to the BCI2000 "trunk" directory in a finder window.

Run Install Script

Double click on the script named "install." It will begin the installation process in a new terminal window. First, it will prompt you for your Qt installation directory. If you installed Qt through the Qt online installer, the path will look like /Users/foo/Qt/6.7.1/macos. Drag the "macos" folder on the window, and press Enter. After you press Enter, the installation will continue without any additional user input.


Once this script finishes running, your BCI2000 will be built!


And the "prog" directory in your BCI2000 trunk will have been populated with executables.

Launch BCI2000

To launch BCI2000, navigate to the batch directory in the terminal

cd trunk/batch

and enter the name of a batch file, prepended with "./", e.g.

./P3Speller_SignalGenerator.bat

Alternatively, double-click the desired batch in a Finder window.

Once it is running, you can start BCI2000 by pressing "set config" and then "start." Enjoy!