- Good news #1: Microsoft has released Visual C++ Express 2008 (it's freely available)
- Good news #2: Trolltech has released Qt-4.4.1 for Windows, with configuration for MSVC 2008
- Good news #3: We have released Graphite-2.0, that works with MSVC 2008 and Qt-4.4.1 :-) !
1) Prerequisites:
Works with Visual C++ Express 2008
--> download from http://www.microsoft.com/express/vc/
Note: you'll need to register within 30 days (but this is easy and free).
Also, you won't be able to build x64 binaries with the Express version (or at least, not easily).
Only the full version of Visual Studio has full x64 support.
--> run Windows installer from: http://www.python.org/download/
Note: Python 2.6 support is only available for 2.0-a2 and newer versions.
Python 3.0 is currently unsupported.
If you use Visual C++ Express, you must have a 32 bit version of Python.
--> run Windows installer from: http://www.cmake.org/HTML/Download.html
Note: CMake 2.8 does not function as expected. Prefer CMake 2.6.
--> Download our pre-compiled version from Inria GForge
OR
--> Download sources from http://trolltech.com/downloads/opensource/appdev/windows-cpp
* unpack in c:\QT4 (note: QT build system does not like white spaces in directory names)
* run terminal window from VisualC++ menu (or run vcvars32.bat in VisualC++ files)
* cd c:\QT4
* configure -release -static -fast -no-qt3support -no-webkit -no-phonon -no-dbus -no-openssl -platform win32-msvc2008
* nmake
--> Download source archive from Inria GForge
OR
--> Get the latest sources from the inriaGfoge Graphite SVN repository (can be broken sometimes)
* if you don't already have one, download and install an SVN client (instruction will be given for TortoiseSVN).
* checkout the sources from Graphite SVN repository:
* create the directory in which you want the sources to be (e.g. My documents\programming\GraphiteTwo)
* right click on the directory > SVN checkout > url of repository : svn://scm.gforge.inria.fr/svn/graphite/GraphiteTwo
* wait for the checkout to finish, it can take several minutes.
2) Prepare Graphite build
- if you chose to download the source archive, unpack it (e.g. in My documents\programming)
- move QT in My documents\programming too. The QT directory should be named "QT4".
- run CMake
Directory: My documents\programming\GraphiteTwo
Build directory: My documents\programming\GraphiteTwo\build\Windows
- Push 'configure' ... wait (OK is still grayed out)
- Push 'configure' a second time (now OK is no longer grayed out)
- Push 'OK'
3) Build Graphite
- Open My Documents\programming\GraphiteTwo\build\Windows\Graphite.sln in Visual C++
- Build -> Configuration Manager -> Release
- Set 'graphite' as startup project (right click in project-list)
- Build solution
- ctrl + f5 to run Graphite
4) You can create a shortcut to
My Documents\programming\GraphiteTwo\build\Windows\binaries\Release\bin\graphite.exe
Known problems
- If compilation fails in
devel and quick_start (complains about missing libraries), you can either
- remove them from the
SUBDIRS statement in src/packages/OGF/CMakeLists.txt (then re-launch CMake and re-build)
- or fix the problem by adding
gom_basic to the list of dependencies in OGF/devel/CMakeLists.txt and OGF/quick_start/CMakeLists.txt
- On some computers, you cannot quit Graphite properly (this freezes Graphite). Then you need to kill Graphite from the task manager. We are investigating this...
- We do not know whether this works with other versions of Visual C++ (in both cases, we are interested in some feedback)
- Some folks like to have a DOS window, for displaying the standard output, to do so, proceed as follows:
- In the solution explorer, right click on the Graphite project, and choose "project configuration"
- In the Linker category, System subcategory, Subsystem: choose "Console" instead of "Windows" and rebuild Graphite
- Having multiple versions of Visual C++ installed can result in problems with CMake, uninstall older versions if CMake complains about MSVCR90d.dll missing.