-
Notifications
You must be signed in to change notification settings - Fork 3
/
README.win32
57 lines (41 loc) · 2 KB
/
README.win32
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
Yes, Wcalc runs on windows too! To build from source, you need cygwin
and also the mingw compilers. It builds as a native WIN32 application.
The configure script is set up to assume that you are using the native
win32 gtk libraries as opposed to the cygwin ones. One method which
seems to work for building from source is:
- Go to http://www.gtk.org and follow links to gtk for win32.
- Download the runtime and developer .zip files for glib, atk, pango,
gtk+, gettext, libiconv, and pkg-config.
- In cygwin,
mkdir ~/gtk_win32
and extract the zip files into that directory.
- Make sure the dll's have the correct permissions
find ~/gtk_win32 -name \*.dll -exec chmod a+x {} \;
- In cygwin,
PKG_CONFIG_PATH='C:\cygwin\home\<user>\gtk_win32\lib\pkgconfig'
export PKG_CONFIG_PATH
PATH=${HOME}/gtk_win32/bin:${PATH}
export PATH
./configure --disable -nls
make
make install
The file win32/build_wcalc in the wcalc distribution shows how
I managed to build the win32 version and the windows installer.
If you have the normal cygwin and cygwin for X gtk libraries installed
you will have problems. It is related to libtool changing things like
-L/path/to/nativewin32gtk -lgtk to /usr/lib/libgtk-2.0.a. Watch when
wcalc.exe in gtk-wcalc/ is actually linked and you'll see it happen.
An ugly work around is to just modify the Makefile to not use libtool
for linking or to run the link command by hand. But that is ugly.
Anyone with a real fix?
Binary Version:
---------------
The installer was created using NSIS (http://nsis.sourceforge.net).
Many thanks to Bob Paddock for pointing me towards NSIS and answering
some naive questions about windows.
The wcalc.nsi file in the win32 directory was used to build the
installer. Note, wcalc.nsi is actually created from wcalc.nsi.in
by build_wcalc in the win32 directory. There are still a few
things which aren't automatically done since some paths on your
system need to go into build_wcalc. Once you edit the top part
of build_wcalc, it should complete everything else.