Jump to content

Programming Howto:Configure BCI2000 for Compilation: Difference between revisions

From BCI2000 Wiki
Mellinger (talk | contribs)
Mellinger (talk | contribs)
No edit summary
Line 1: Line 1:
==Back==
To [[Programming Howto:Building and Customizing BCI2000|this howto's overview page]].
==Run the CMake GUI==
Double-click "Configure.sh.cmd" in your BCI2000 build directory
Double-click "Configure.sh.cmd" in your BCI2000 build directory


[[File:use_cmake_1.PNG|center]]
[[File:use_cmake_1.PNG|center]]


Tell CMake which Qt installation to use
==Tell CMake which Qt installation to use==
Click "AddEntry" in the CMake window ...


[[File:use_cmake_2.PNG|center]]
[[File:use_cmake_2.PNG|center]]


Enter the path to a Qt directory that is consistent with the compiler you are going to use
... and enter the path to a Qt directory that is consistent with the compiler you are going to use.


[[File:use_cmake_3.PNG|center]]
[[File:use_cmake_3.PNG|center]]


Click "Configure"
==Perform the configuration step==
In the CMake window, click "Configure" ...


[[File:use_cmake_4.PNG|center]]
[[File:use_cmake_4.PNG|center]]


Choose a generator that is consistent with the Qt directory chosen above
... and choose a generator that is consistent with your compiler, and the Qt directory chosen above. Then click "Finish" to perform the configuration step.


[[File:use_cmake_5.PNG|center]]
[[File:use_cmake_5.PNG|center]]


You will see a list of targets scrolling by, and a number of new entries in the variable list at the top of the window, marked in red.


[[File:use_cmake_6.PNG|center]]
[[File:use_cmake_6.PNG|center]]


Choose build options...
==Choose build options==
Make sure the "Grouped" checkbox is checked, and configure the build by customizing values in the "BUILD" ...


[[File:use_cmake_7.PNG|center]]
[[File:use_cmake_7.PNG|center]]


... and which extensions to compile, before clicking "Generate"
... and "EXTENSIONS" group. Then, click "Generate" to create build files.


[[File:use_cmake_8.PNG|center]]
[[File:use_cmake_8.PNG|center]]


When CMake displays its "Generating done" message, ...


[[File:use_cmake_9.PNG|center]]
[[File:use_cmake_9.PNG|center]]


Amongst other files created by CMake, your BCI2000 build directory will now contain a solution file
... your BCI2000 build directory will now contain a VisualStudio solution file, as well as a number of additional CMake-generated files.


[[File:use_cmake_10.PNG|center]]
[[File:use_cmake_10.PNG|center]]

Revision as of 14:40, 16 August 2018

Back

To this howto's overview page.

Run the CMake GUI

Double-click "Configure.sh.cmd" in your BCI2000 build directory

Tell CMake which Qt installation to use

Click "AddEntry" in the CMake window ...

... and enter the path to a Qt directory that is consistent with the compiler you are going to use.

Perform the configuration step

In the CMake window, click "Configure" ...

... and choose a generator that is consistent with your compiler, and the Qt directory chosen above. Then click "Finish" to perform the configuration step.

You will see a list of targets scrolling by, and a number of new entries in the variable list at the top of the window, marked in red.

Choose build options

Make sure the "Grouped" checkbox is checked, and configure the build by customizing values in the "BUILD" ...

... and "EXTENSIONS" group. Then, click "Generate" to create build files.

When CMake displays its "Generating done" message, ...

... your BCI2000 build directory will now contain a VisualStudio solution file, as well as a number of additional CMake-generated files.

Next step

As a next step, learn how to compile BCI2000.

See also

Programming Howto:Building and Customizing BCI2000