(→qt-simulator) |
(→qt-simulator) |
||
| Line 77: | Line 77: | ||
I used this script http://meego.gitorious.org/meego-developer-tools/madde/blobs/master/ext/i386-toolchain-w32-meego.sh to build toolchain for IA, which is based on toolchain-w32.sh (for ARM). | I used this script http://meego.gitorious.org/meego-developer-tools/madde/blobs/master/ext/i386-toolchain-w32-meego.sh to build toolchain for IA, which is based on toolchain-w32.sh (for ARM). | ||
| - | == | + | ==Qt Simulator== |
Refer to: http://developer.qt.nokia.com/wiki/Qt_Simulator and http://build.meego.com/package/view_file?file=qt-simulator.spec&package=qt-simulator&project=devel%3Atools%3Asdk%3Ahost&srcmd5=e45d364bbac25fb09e70f49e9650177c (require login. Download source code from here.) | Refer to: http://developer.qt.nokia.com/wiki/Qt_Simulator and http://build.meego.com/package/view_file?file=qt-simulator.spec&package=qt-simulator&project=devel%3Atools%3Asdk%3Ahost&srcmd5=e45d364bbac25fb09e70f49e9650177c (require login. Download source code from here.) | ||
These are the BKMs to build MeeGo SDK for Windows. This implemented a part of Feature 10971 - Build MeeGo SDK for Windows in a public server. For more information about MeeGo SDK for Windows, please check SDK/MeeGo SDK for Windows.
Maxayu 09:17, 22 December 2010 (UTC)
Contents |
To build Qt Creator, we need to follow the spec file of the rpm package (http://build.meego.com/package/show?package=meego-sdk-qt-creator&project=devel%3Atools%3Asdk%3Ahost).
Download tar ball qt-creator-*-src.tar.gz, apply the main patch meego-sdk-qt-creator-*.patch.bz2.
%setup -q -n qt-creator-%{upstream_version}-src
%patch0 -p1
cp -rf src/plugins/qt4projectmanager/qt-maemo/images src/plugins/qt4projectmanager/qt-meego/
install -D -p -m 0644 %{_sourcedir}/mtf.png src/plugins/qt4projectmanager/wizards/images/mtf.png
qmake -r DEFINES+=QTCREATOR_WITH_QML CONFIG-=console -config release ..\qt-creator-2.1.0-rc1-src\qtcreator.pro
nmake
after building Qt Creator with VS2008 and Qt by Nokia v4.7.1 (VS 2008), we manually copy everything via xcopy /Y /R /E /EXCLUDE:%SCRIPT_DIRECTORY%\bin_win\install_creator_step_excludes.txt %REPOSITORY_DIRECTORY%\creator %TARGET_LOCATION%\
Here is the file Media:install_creator_step_excludes.txt.
that misses unfortunately one file, which will get copied manually again: copy /y %REPOSITORY_DIRECTORY%\creator\lib\qtcreator\plugins\Nokia\Find.dll %TARGET_LOCATION%\lib\qtcreator\plugins\Nokia\
Copy all the .dll and .exe files from c:\qt\4.7.1\bin to qtcreator’s bin directory. Copy the following plugins to the corresponding subdirectories of bin directory.
imageformats imageformats/qgif4.dll imageformats/qico4.dll imageformats/qjpeg4.dll imageformats/qmng4.dll imageformats/qsvg4.dll imageformats/qtiff4.dll iconengines iconengines/qsvgicon4.dll sqldrivers sqldrivers/qsqlite4.dll codecs codecs/qcncodecs4.dll codecs/qjpcodecs4.dll codecs/qkrcodecs4.dll codecs/qtwcodecs4.dll accessible accessible/qtaccessiblewidgets4.dll
MADDE builds if you have all required distfiles in place. Additionally this requires that required packages are installed on build system (wine & mingw cross-compiler among other things).
cd /path/to/madde make w32 SUMO=meego ../berlin_gatherer.sh -e _build
Here is the file Media:Berlin-gatherer.sh
Follow instructions on http://meego.gitorious.org/meego-developer-tools/madde/blobs/master/docs/QtToolsForMadde.rst . Which contains my modifications.
The patch mentioned in the above link can be downloaded from here: Media:Qt qtmake option.cpp.patch.
mgen and mmoc from libmeegotouch need to be added. Source code of libmeegotouch can be downloaded from http://build.meego.com/package/show?package=libmeegotouch&project=Trunk.
To build mgen, create a file "make.bat" by copy the following lines:
set MYQTDIR=C:\Qt\4.7.1 set CL=/I%MYQTDIR%\include\QtGui /I%MYQTDIR%\include\QtCore /I%MYQTDIR%\include set LIBRARY_PATH=%MYQTDIR%\lib cl mgen.cpp mgen_processor.cpp %LIBRARY_PATH%\QtGui4.lib %LIBRARY_PATH%\QtCore4.lib %LIBRARY_PATH%\QtCore4.lib
Put the file "make.bat" into "mgen" sub-directory of libmeegotouch, and invoke it to build mgen.
I used this script http://meego.gitorious.org/meego-developer-tools/madde/blobs/master/ext/i386-toolchain-w32-meego.sh to build toolchain for IA, which is based on toolchain-w32.sh (for ARM).
Refer to: http://developer.qt.nokia.com/wiki/Qt_Simulator and http://build.meego.com/package/view_file?file=qt-simulator.spec&package=qt-simulator&project=devel%3Atools%3Asdk%3Ahost&srcmd5=e45d364bbac25fb09e70f49e9650177c (require login. Download source code from here.)
Source code of simulator need to be patched by Media:Simulator.patch.
Create a directory "simulator-depends".
Use the bat file Media:Make_bat.txt to build it.