File: README.win32

package info (click to toggle)
stardict 2.4.3-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,148 kB
  • ctags: 1,199
  • sloc: cpp: 12,526; sh: 8,680; xml: 2,442; ansic: 2,167; makefile: 288; python: 114
file content (62 lines) | stat: -rw-r--r-- 2,464 bytes parent folder | download
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
StarDict can be compiled and run in windows.

Please install Dev-C++ and its dev package(i18n,imagelib),they can be found in http://www.bloodshed.net/dev/

Because Dev-C++'s gtk2 runtime and dev package is too old, don't use them. Download this: http://sourceforge.net/projects/gtk-win

here is a stardict.dev
use Dev-C++ to open it, then compile it. Becase the compile command is too long,it can't be compile in win98,please use win2000 or XP.

my environment: win2000,Dev-C++ 4.9.8.1

After compiled, you will find stardict.exe at src/.

========
To build the installer.

Grab and install NSIS: http://www.nullsoft.com/free/nsis
I was using the v2.0b3 version.

i use linux commmand to illustrate the steps, but you cann't do it in this way :)

===============
cd stardict-2.4.1
mkdir win32-install-dir

cp src/reciteword.exe win32-install-dir

mkdir -p win32-install-dir/locale/zh_CN/LC_MESSAGES/
cp po/zh_CN.gmo win32-install-dir/locale/zh_CN/LC_MESSAGES/stardict.mo
mkdir -p win32-install-dir/locale/ru/LC_MESSAGES/
cp po/ru.gmo win32-install-dir/locale/ru/LC_MESSAGES/stardict.mo
mkdir -p win32-install-dir/locale/cs/LC_MESSAGES/
cp po/cs.gmo win32-install-dir/locale/cs/LC_MESSAGES/stardict.mo

mkdir -p win32-install-dir/pixmaps
cp pixmaps/stardict.png win32-install-dir/pixmaps
cp src/win32/about_menu.png win32-install-dir/pixmaps
cp src/pixmaps/* win32-install-dir/pixmaps //Notice: docklet_*.png needn't copy!!!
mkdir -p win32-install-dir/sounds
cp src/pixmaps/*.wav win32-install-dir/sounds
mkdir -p win32-install-dir/dic
mkdir -p win32-install-dir/treedict

mkdir -p win32-install-dir/help

these stardict.html help files is generate by "yelp-pregenerate stardict.xml", then do some string replacing:
replace "file:///usr/share/sgml/docbook/yelp/docbook/images/" to "../"
replace "ghelp:stardict.xml?" to "./stardict.html#"
replace "ghelp:stardict.xml" to "./stardict.html#id2772190"  //id2772190 is "<b>Table of Contents</b>" 's previous name.
replace "file://./figures/" to "./figures/"


double click the stardict-installer.nsi :) NSIS will build the installer.

This installer don't contains the gtk2-runtime, download it at: http://sourceforge.net/projects/gtk-win

StarDict's win32 port got many experience from ReciteWord(my another project, http://reciteword.cosoft.org.cn) and Gaim: http://gaim.sourceforge.net/win32/index.php

Note: when use fopen(), use "rb", never "r".

Hu Zheng <huzheng_001@163.com> http://forlinux.yeah.net
2003.09.23