Programming Reference:Building Qt for BCI2000 (obsolete)
Appearance
This document describes how to build Qt for installation in the BCI2000 source tree.
Note: Following this procedure is only required if you are a member of the BCI2000 team, and if your task is to update the Qt build coming with BCI2000. In case you just want to build BCI2000 against a version of Qt outside the source tree, modify the file BCI2000/build/cmake/FindQt.cmake, line 10, to read SET( USE_STD_QT TRUE ), and re-run CMake.
Copy Qt include files to the BCI2000 directory
- Download and install Qt on your machine.
- Copy the contents of the directory qt/include/Qt into BCI2000/src/extlib/qt/include/Qt, omitting the private directory.
- Likewise, copy the QtCore, QtGui, and QtOpenGL include directories to BCI2000/src/extlib/qt/include, omitting the respective private directories.
Build and copy MSVC libraries and auxiliary files
- From the Qt installation's qt directory, run configure with the following options:
-release -platform win32-msvc2008 -static -no-sql-sqlite -no-qt3support -fast -qt-zlib -qt-gif -qt-libpng -qt-libmng -no-libtiff -no-libjpeg -no-phonon -no-webkit -no-scripttools -no-style-plastique -no-style-motif -no-style-cde
- When prompted for the type of license, choose "Open Source", and answer "yes" when asked whether you accept the terms of the license.
- Open the VS2008 console window from the start menu, and run nmake in the following directories:
- qt/src/corelib,
- qt/src/gui,
- qt/src/winmain,
- qt/src/opengl.
- Copy the following files from qt/bin to BCI2000/src/extlib/qt/msvc/bin:
findtr idc.exe moc.exe qmake.exe qt.conf rcc.exe syncqt uic.exe
- From qt/lib, copy the following files to BCI2000/src/extlib/qt/msvc/lib:
QtCore.lib QtGui.lib qtmain.lib QtOpenGL.lib
- From qt/mkspecs, copy the file qconfig.pri, and recursively copy the contents of the features directory and all the win32-msvc* directories to BCI2000/src/extlib/qt/msvc/mkspecs.
Build and copy mingw libraries and auxiliary files
- From the Qt installation's qt directory, run configure with the following options:
-platform win32-g++ -static -no-sql-sqlite -no-qt3support -fast -qt-zlib -qt-gif -qt-libpng -qt-libmng -no-libtiff -no-libjpeg -no-phonon -no-webkit -no-scripttools -no-style-plastique -no-style-motif -no-style-cde
- When prompted for the type of license, choose "Open Source", and answer "yes" when asked whether you accept the terms of the license.
- Open a console window, and run mingw32-make in the following directories:
- qt/src/corelib,
- qt/src/gui,
- qt/src/winmain,
- qt/src/opengl.
- When the build is finished, copy the following files from qt/bin to BCI2000/src/extlib/qt/mingw/bin:
findtr idc.exe moc.exe qmake.exe qt.conf rcc.exe syncqt uic.exe
- From qt/lib, copy the following files to BCI2000/src/extlib/qt/mingw/lib:
libQtCore.a libQtCored.a libQtGui.a libQtGuid.a libqtmain.a libqtmaind.a libQtOpenGL.a libQtOpenGLd.a
- From qt/mkspecs, copy the file qconfig.pri, and recursively copy the contents of directories features, common, and win32-g++ to BCI2000/src/extlib/qt/mingw/mkspecs.