Programming Reference:Building BCI2000 for Win64 (obsolete): Difference between revisions
No edit summary |
m Mellinger moved page Programming Reference:Building BCI2000 for Win64 to Programming Reference:Building BCI2000 for Win64 (obsolete): Obsolete |
||
| (20 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
In oder to build BCI2000 for the | '''NOTE:''' This page is outdated, and only retained as a reference. Building BCI2000 for 64-bit target does no longer require the manual steps described here. | ||
This information applies if you intend to build 64-bit executables. Alternatively, you may build 32-bit executables and run them on 64-bit platforms as well. In oder to build BCI2000 for the Win64 target, you will need to manually perform a number of steps. | |||
==Install Qt for x64== | ==Install Qt for x64== | ||
Rather than building BCI2000 against the Qt distribution coming with its source code, you will need to install a separate version of Qt on your machine. | Rather than building BCI2000 against the Qt distribution coming with its source code, you will need to install a separate version of Qt on your machine. | ||
The following steps have been tested with Qt 4.6.3. | The following steps have been tested with Qt 4.6.3, and should generally work with Qt 4.7.x as well. | ||
1. Download and install a recent SDK version of Qt. | |||
2. Add your Qt installation's qt/bin directory to the system search path. | |||
configure -static | |||
3. In the file <tt>qt/mkspecs/win32-msvc2008/qmake.conf</tt>, or the corresponding file for MSVC2010, apply these changes: In QMAKE_CFLAGS_RELEASE and QMAKE_CFLAGS_DEBUG, replace the -MD and -MDd switches with -MT and -MTd, respectively. | |||
4. From the Start menu, open the Visual Studio x64 Command Prompt. | |||
5. <tt>cd</tt> to your Qt installation's qt directory, and execute the following command: | |||
configure -static | |||
-no-sql-sqlite | -no-sql-sqlite | ||
-no-qt3support | -no-qt3support | ||
-fast | -fast | ||
-qt-zlib | -qt-zlib | ||
-qt-libpng | -qt-libpng | ||
-qt-libmng | -qt-libmng | ||
| Line 23: | Line 30: | ||
-no-style-motif | -no-style-motif | ||
-no-style-cde | -no-style-cde | ||
6. Compile the required parts of Qt by executing <tt>nmake</tt> in these directories: | |||
*<tt>qt/src/corelib</tt>, | |||
*<tt>qt/src/gui</tt>, | |||
*<tt>qt/src/winmain</tt>, | |||
*<tt>qt/src/opengl</tt>. | |||
==Generate the Visual Studio Solution file== | ==Generate the Visual Studio Solution file== | ||
Edit the file <tt>build/cmake/FindQt.cmake</tt> to read SET( USE_STD_QT TRUE ) in line 10. | |||
Then, from your BCI2000 installation's <tt>build</tt> directory, execute the "Make VS2008 Win64 Project Files" batch file. | |||
After successful execution, you will have a Visual Studio solution file ready to compile BCI2000. | After successful execution, you will have a Visual Studio solution file ready to compile BCI2000. | ||
== | |||
You cannot build | ==Notes== | ||
*You cannot build x64 targets using Visual C++ 2008 Express Edition except after considerable [http://wiki.blender.org/index.php/Dev:2.5/Doc/Building_Blender/Windows/Visual_C%2B%2B_2008_Express unsupported modifications]. | |||
==See also== | ==See also== | ||
Latest revision as of 16:34, 8 June 2022
NOTE: This page is outdated, and only retained as a reference. Building BCI2000 for 64-bit target does no longer require the manual steps described here.
This information applies if you intend to build 64-bit executables. Alternatively, you may build 32-bit executables and run them on 64-bit platforms as well. In oder to build BCI2000 for the Win64 target, you will need to manually perform a number of steps.
Install Qt for x64
Rather than building BCI2000 against the Qt distribution coming with its source code, you will need to install a separate version of Qt on your machine. The following steps have been tested with Qt 4.6.3, and should generally work with Qt 4.7.x as well.
1. Download and install a recent SDK version of Qt.
2. Add your Qt installation's qt/bin directory to the system search path.
3. In the file qt/mkspecs/win32-msvc2008/qmake.conf, or the corresponding file for MSVC2010, apply these changes: In QMAKE_CFLAGS_RELEASE and QMAKE_CFLAGS_DEBUG, replace the -MD and -MDd switches with -MT and -MTd, respectively.
4. From the Start menu, open the Visual Studio x64 Command Prompt.
5. cd to your Qt installation's qt directory, and execute the following command:
configure -static -no-sql-sqlite -no-qt3support -fast -qt-zlib -qt-libpng -qt-libmng -no-libtiff -no-libjpeg -no-phonon -no-webkit -no-scripttools -no-style-plastique -no-style-motif -no-style-cde
6. Compile the required parts of Qt by executing nmake in these directories:
- qt/src/corelib,
- qt/src/gui,
- qt/src/winmain,
- qt/src/opengl.
Generate the Visual Studio Solution file
Edit the file build/cmake/FindQt.cmake to read SET( USE_STD_QT TRUE ) in line 10.
Then, from your BCI2000 installation's build directory, execute the "Make VS2008 Win64 Project Files" batch file. After successful execution, you will have a Visual Studio solution file ready to compile BCI2000.
Notes
- You cannot build x64 targets using Visual C++ 2008 Express Edition except after considerable unsupported modifications.