@@ -15,7 +15,13 @@ need the following:
15
15
- Windows XP, Vista, or 7
16
16
- A recent version of Qt 4 (http://qt.nokia.com/downloads). It's easiest to
17
17
get started with a version that comes with the MinGW compiler, since I
18
- haven't tested the latest code with Visual Studio.
18
+ haven't tested the latest code with Visual Studio. Add both the "bin"
19
+ directory and the "mingw\bin" directory that come with it to your "Path"
20
+ environment variable.
21
+ - MSYS 1.0.11 (http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11/MSYS-1.0.11.exe/download).
22
+ This emulates a basic UNIX system on Windows, and is the easiest way to
23
+ compile Metakit with MinGW. Newer versions are available, but lack a
24
+ convenient installer; this one should work fine.
19
25
- Inno Setup, if you wish to create the PortaBase installer; available from:
20
26
http://www.jrsoftware.org/isinfo.php
21
27
@@ -50,11 +56,19 @@ the Metakit README file) inside the appropriate Scratchbox environment. You'll
50
56
want to pass the "--enable-threads" and "--disable-shared" parameters to the
51
57
configure script.
52
58
53
- To compile Metakit for Windows, follow the instructions in Metakit's README
54
- file; be sure to build the static library version (mklib). To compile
55
- Metakit for use in Linux or Mac OS X desktop PortaBase, just follow the
56
- README directions (the "UNIX" instructions in both cases); you'll want to use
57
- the same configure script parameters mentioned above for Maemo development.
59
+ To compile Metakit for use in Linux or Mac OS X desktop PortaBase, just follow
60
+ the README directions (the "UNIX" instructions in both cases); you'll want to
61
+ use the same configure script parameters mentioned above for Maemo development.
62
+
63
+ To compile Metakit for Windows, first install Qt in order to get the MinGW
64
+ compiler. Then install MSYS as mentioned above; in the postinstallation
65
+ script, you'll be asked for the path of the MinGW installation that came with
66
+ Qt. Start MSYS from the installed shortcut, and change to the metakit/builds
67
+ directory that is included with the PortaBase source code. Note that you use
68
+ "cd" to change directories, use "/" as the directory separator, and the C:
69
+ drive is located at "/c". From the metakit/builds directory, run
70
+ "../unix/configure --enable-threads --disable-shared". Once that finishes, run
71
+ "make". You should now have a libmk4.a static library file in that directory.
58
72
59
73
PortaBase for Maemo Compilation
60
74
--------------------------------
@@ -64,21 +78,16 @@ documentation for more information.
64
78
65
79
PortaBase for Windows Compilation, Packaging
66
80
--------------------------------------------
67
- - Install a recent version of Qt 4 and configure it (make sure the "bin"
68
- directory is in your path and that the QTDIR and QMAKESPEC environment
69
- variables are set correctly).
70
- - Adjust the value of INCLUDEPATH in portabase.pro as needed to locate the
71
- library header files on your system.
72
- - Run "qmake -t vcapp -o portabase.dsp portabase.pro"
73
- - Copy mk4vc60s.lib to the PortaBase source directory.
74
- - Open the generated portabase.dsp file in Visual C++, and from
75
- "Build->Set Active Configuration..." select "portabase - Win32 Release".
76
- - Execute the build.
77
- - Copy qt-mtnc321.dll from Qt's "lib" directory to the Release subdirectory
78
- created by Visual C++.
79
- - Copy msvcrt.dll to the PortaBase source directory.
80
- - Run "lrelease portabase.pro" to generate the UI translation files.
81
- - Open portabase.iss with Inno Setup and choose "Compile"
81
+ - Compile Metakit as described above.
82
+ - Open a command prompt, and change to the root directory of the downloaded
83
+ PortaBase source code. If this isn't at "C:\portabase", you'll have to
84
+ change the paths for "LIBS" and "INCLUDEPATH" in portabase.pro.
85
+ - From that directory run "packaging\windows\build.bat"; this will generate a
86
+ working PortaBase.exe file in the "build" directory.
87
+ - If you want to create an installer for PortaBase, first install Inno Setup.
88
+ Then run "packaging\windows\installer.bat"; you may need to edit it first
89
+ in order to adjust the paths to Qt and/or Inno Setup. This will generate an
90
+ executable installer in the "build/windows" directory.
82
91
83
92
Debian Package Building
84
93
-----------------------
0 commit comments