Programming Reference:Building Qt for BCI2000 (obsolete): Difference between revisions
Appearance
| Line 10: | Line 10: | ||
==Build and copy MSVC libraries and auxiliary files== | ==Build and copy MSVC libraries and auxiliary files== | ||
*In the file <tt>qt/mkspecs/win32-msvc2008/qmake.conf</tt>, add <tt>-Fd$(DESTDIR)$(QMAKE_TARGET).pdb</tt> as a compiler option to <tt>QMAKE_CFLAGS_DEBUG</tt>. | *In the file <tt>qt/mkspecs/win32-msvc2008/qmake.conf</tt>, add <tt>-Fd$(DESTDIR)$(QMAKE_TARGET).pdb</tt> as a compiler option to <tt>QMAKE_CFLAGS_DEBUG</tt>. | ||
*From the Qt installation's qt directory, run <tt>configure</tt> with the following options: | *From the Qt installation's <tt>qt</tt> directory, run <tt>configure</tt> with the following options: | ||
-platform win32-msvc2008 | -platform win32-msvc2008 | ||
-static | -static | ||
| Line 29: | Line 29: | ||
-no-style-cde | -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. | *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 from the start menu, and run <tt>nmake</tt> from these directories: | *Open the VS2008 console window from the start menu, and run <tt>nmake</tt> from these directories: | ||
**<tt>qt/src/corelib</tt>, | **<tt>qt/src/corelib</tt>, | ||
**<tt>qt/src/gui</tt>, | **<tt>qt/src/gui</tt>, | ||
| Line 57: | Line 57: | ||
QtOpenGLd.pdb | QtOpenGLd.pdb | ||
*From <tt>qt/mkspecs</tt>, copy the file <tt>qconfig.pri</tt>, and recursively copy the contents of the <tt>features</tt> directory and all the <tt>win32-msvc*</tt> directories to <tt>BCI2000/src/extlib/qt/msvc/mkspecs</tt>. | *From <tt>qt/mkspecs</tt>, copy the file <tt>qconfig.pri</tt>, and recursively copy the contents of the <tt>features</tt> directory and all the <tt>win32-msvc*</tt> directories to <tt>BCI2000/src/extlib/qt/msvc/mkspecs</tt>. | ||
* | *In <tt>BCI2000/src/extlib/qt/msvc/mkspecs/win32-msvc2008/qmake.conf</tt>, remove the <tt>-Fd$(DESTDIR)$(QMAKE_TARGET).pdb</tt> compiler option from <tt>QMAKE_CFLAGS_DEBUG</tt>. | ||
==Build and copy mingw libraries and auxiliary files== | ==Build and copy mingw libraries and auxiliary files== | ||
Revision as of 15:32, 15 March 2010
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
- In the file qt/mkspecs/win32-msvc2008/qmake.conf, add -Fd$(DESTDIR)$(QMAKE_TARGET).pdb as a compiler option to QMAKE_CFLAGS_DEBUG.
- From the Qt installation's qt directory, run configure with the following options:
-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 from these 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 QtCored.lib QtCored.pdb QtGui.lib QtGuid.lib QtGuid.pdb qtmain.lib qtmaind.lib qtmaind.pdb QtOpenGL.lib QtOpenGLd.lib QtOpenGLd.pdb
- 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.
- In BCI2000/src/extlib/qt/msvc/mkspecs/win32-msvc2008/qmake.conf, remove the -Fd$(DESTDIR)$(QMAKE_TARGET).pdb compiler option from QMAKE_CFLAGS_DEBUG.
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.
- From the qt directory, run mingw32-make.
- 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.