Home · All Classes · Main Classes · Deprecated

Build libmeegotouch on Microsoft Windows

This page describes how to download, build and install libmeegotouch on Microsoft Windows. You will need at least Windows XP, Windows Vista and Windows 7 should also work fine. It is possible to build libmeegotouch with either the MinGW C++ compiler or with the Microsoft Visual Studio 2010 Express C++ compiler. Also the full version of Visual Studio is supported.

Requirements

libmeegotouch needs some requirements so that it can be compiled. Some of them are depending on the compiler you want to use, and some are not.

General requirements

Requirements for MinGW

Requirements for Microsoft Visual Studio 2010 (MSVC)

Get the sources

Create a common directory under which you will download the sources for libmeegotouch (the source code) and meegotouch-theme (the css files and images). Make sure that the path to that directory does not contain any space (" ") charakters. In that directory create build and install directories. In this description c:\lmt-dev is used.

mkdir \lmt-dev
cd \lmt-dev

Open a git shell by clicking Start -> Programs -> Git -> Git Bash, navigate it to the directory you just created, and fetch the libmeegotouch and meegotouch-theme sources:

cd ../../lmt-dev/
git clone git://gitorious.org/meegotouch/libmeegotouch.git
git clone git://gitorious.org/meegotouch/meegotouch-theme.git

Build and install with MinGW

Build libmeegotouch

Open a Qt command prompt by clicking Start -> Programs -> Qt SDK ... -> Qt Command Prompt.

Set the PATH needed to find Perl:

set PATH=%PATH%;c:\strawberry\perl\bin

Change the directory to the libmeegotouch source dir, create a build directory and cd into it:

cd \lmt-dev\libmeegotouch
mkdir build-win
cd build-win

Execute "configure", "qmake" and "mingw32-make":

..\configure-win32.pl
qmake ..\projects.pro
mingw32-make

You can ignore any warnings about missing programs here.

Install libmeegotouch

Create a directory to install the libraries and binaries to, set the INSTALL_ROOT to that directory and execute "mingw32-make install":

mkdir c:\lmt-dev\inst-win
set INSTALL_ROOT=c:\lmt-dev\inst-win
mingw32-make install

Install meegotouch-theme

Change to the meegotouch-theme directory, and execute "qmake" and "mingw32-make install".

cd \lmt-dev\meegotouch-theme
qmake PREFIX=/
set INSTALL_ROOT=c:\lmt-dev\inst-win
mingw32-make install

Here the PREFIX parameter for qmake is important. If it is not given, "mingw32-make install" fails. If it points to somewhere else, the libmeegotouch programs will not find their css and image files.

Build and install libmeegotouch with MSVC

Build libmeegotouch

When you want to build libmeegotouch with Microsoft Visual Studio, the steps are similar to MinGW, but slightly different. Open a windows command prompt by clicking Start -> Run ... and typing cmd. In this cmd window we then have to setup the needed environment variables. The paths to your installation directories may be a bit different.

"c:\Program Files\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
set QTDIR=c:\Qt\4.7.2
set PATH=%PATH%;%QTDIR%\bin
set QMAKESPEC=win32-msvc2010
set PATH=%PATH%;c:\strawberry\perl\bin

Go to the libmeegotouch directory, create a build dir and change into it:

cd \lmt-dev\libmeegotouch
mkdir build-win
cd build-win

Execute "configure", "qmake" and "nmake":

..\configure-win32.pl
qmake ..\projects.pro
nmake

You can ignore any warnings about missing programs here.

Install libmeegotouch

Create a directory to install the libraries and binaries to, set the INSTALL_ROOT to that directory and execute "nmake install":

mkdir \lmt-dev\inst-win
set INSTALL_ROOT=c:\lmt-dev\inst-win
nmake install

Install meegotouch-theme

Change to the meegotouch-theme directory, and execute "qmake" and "nmake install".

cd \lmt-dev\meegotouch-theme
qmake PREFIX=/
nmake
set INSTALL_ROOT=c:\lmt-dev\inst-win
nmake install

Test that it worked

Now you can start the widgetsgallery. It is a demo program in libmeegotouch. It contains exaamples of the different widgets that can be created using libmeegotouch. You can start it like this:

\lmt-dev\inst-win\bin\widgetsgallery.exe -software

You should see a window that contains some menu items. Just click around and explore what libmeegotouch has to offer.


Copyright © 2010 Nokia Corporation
MeeGo Touch