1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
Compiling Tipptrainer in the Windows environment is described in this file.
Only the following compilers are supported by the developers but
other may work, too.
Visual C++ 7.1 (from Visual Studio .NET 2003)
=============================================
With older/newer compilers from Microsoft your milage may vary.
The following requirements before you begin to compile PingoS Tipptrainer:
- wxWindows (>=2.4.2) must have been compiled (see below)
- ./wxWindows must be created and lib/ and include/ from the
compiled wxWindows source directory must be copied to there
(alternatively, compile wxWindows directly in ./wxWindows), so that
./wxWindows/lib and ./wxWindows/include exist
To compile wxWindows:
- open the project file in the wxWindows src/ subdir
- select "Runtime (DLL)"
- choose "Build"->"Build Solution"
Compiling Pingos Tipptrainer:
- open the ./Tipptrainer.sln and choose "Build"->"Build Solution"
- If you want a german program, you need to translate the gettext file.
One possibility to do that is to install cygwin with at least the
gettext and make packages and run "make" in the po/ dir.
If you want the localization, po/*/tipptrainer.mo is needed.
You must compile the po-file to get the mo-file. This can be done by e.g
installing cygwin from http://www.cygwin.com with its gettext package.
After installtion of cygwin, start its bash shell, go to the Tipptrainer
dir with the .po file and type there:
msgfmt.exe -o tipptrainer.mo tipptrainer.po
You can also use MSYS from http://www.mingw.org and the gettext-tools
package from ftp://ftp.gnu.org/gnu/gettext/ (and that one needs libiconv
from ftp://ftp.gnu.org/gnu/libiconv/).
After compiling Pingos Tipptrainer:
- copy the wxmsw24.dll (not the .lib !) to where the tipptrainer.exe is
- start tipptrainer.exe
MingW32 (with gcc-3.2.3)
========================
Note that at linking time of wxWindows with mingw's gcc, gcc uses
LOT of memory (>300MB of RAM). That was even worse with a later version.
First install the mingw and msys environment. Start at downloading from
http://www.mingw.org the following binary packages:
msys (the installer)
gcc (including C and C++ compiler)
mingw-runtime
mingw
w32api
binutils
And from ftp://ftp.gnu.org/gnu download the following:
gettext
libiconv
You also need an unzip program that DOES NOT do CR->CRLF conversion (e.g.
with WinZip with the conversion turned off).
Then install msys somewhere and unpack all of the other package to the
mingw subdirectory of the msys installation dir.
Now download wxMSW (wxWindows) and unpack it somewhere in the "home" directory
in the msys installation dir.
The wx installation description also mentions bison and flex from the extra.zip.
You might want to install those, too (to /mingw).
Then cd into that dir and type:
./configure --prefix=/mingw
make
Now this may need quite long and I hope you have enough RAM ;)
Then type:
make install
Now you can compile tipptrainer. Change to the tipptrainer dir and type:
./configure --with-gettextdir=./po --with-lessondir=./data
It should now find all needed headers, libs and apps. If not, you forgot to
install a package from the list above.
Now go on with:
make
Do NOT run "make install" after that.
Finally copy the wxMSW dll (from /mingw/lib) and the mingw dll
(from /mingw/bin). Now it's already ready to run.
Packaging Pingos Tipptrainer
============================
We used InnoSetup (http://www.jrsoftware.org/isinfo.php) but any other
installer might work, too.
The following files must be included in the package:
- the compiler support libs, either
msvcp71.dll
msvcr71.dll
or
mingwm10.dll
- the wxWindows libs, usually
wxmsw24.dll
- tipptrainer.exe
You need to edit the Tipptrainer.iss (you need to open that file anyway)
to fit your compilation method from above. The comments in that file
should guide you :)
If you want the data locally, the data/ subtree is needed
(without Makefile*, the path is important).
If you want the localization, po/*/tipptrainer.mo is needed
(the path is important). Installation is highly suggested, or
non-english users will get an error upon start.
Installation of the .mo file must include the same directory structure
as in the sources of Tipptrainer.
Copy all those files above to a directory of your choice (the compilation
dir will work, too).
Now begin typing and have fun :)
|