File: compile-with-wine.txt

package info (click to toggle)
plee-the-bear 0.4.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 105,316 kB
  • ctags: 10,258
  • sloc: lisp: 314,071; cpp: 69,621; xml: 2,117; sh: 465; makefile: 80
file content (176 lines) | stat: -rw-r--r-- 4,014 bytes parent folder | download | duplicates (5)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
TABLE OF CONTENT

I. Introduction
II. Required programs
 II.1 Wine
 II.2 MinGW
 II.3 MSys
 II.4 CMake
 II.5 Optional programs
III. Required libraries
 III.1 GnuWin32
 III.2 Boost
 III.3 Claw
 III.4 wxWidgets
 III.5 SDL
 III.6 SDL_mixer
IV. Compiling Plee the Bear

I. Introduction
===============

Before compiling Plee the Bear for windows with Wine, you have to
install all dependancies.

Everything but script-like commands (grep, sed, and so) is done via
wine. For example, if you have to run CMake, do NOT type

  cmake .

but, instead,

  wine "c:/Program Files/CMake/bin/cmake.exe" .


II. Required programs
=====================

II.1 Wine
---------

II.2 MinGW
----------

HCU/Environment/PATH
MinGW must be in your path. Edit the registry key by typing

  wine regedit

II.3 MSys
---------

II.4 CMake
----------
require CMake

Most CMake modules search files in unix-like paths. Since these paths
are visible in wine, the unix libraries an include files will be
found. You can modify the following CMake modules to search first in
the paths where you have installed your libraries :

 - FindJPEG.cmake
 - FindPNG.cmake
 - FindZLIB.cmake
 - FindSDL.cmake
 - FindSDL_mixer.cmake

Or you can add the paths in yout PATH environment variable.

II.5 Optional programs
----------------------

optional doxygen, NSIS, svn


III. Required libraries
=======================

III.1 GnuWin32
--------------

libz libjpeg libpng

III.2 Boost
-----------
bjam

III.3 Claw
----------

III.3.1 Install from binaries
- - - - - - - - - - - - - - -

Download the binaries (for windows) from
http://libclaw.sourceforge.net and excecute the file with wine to
install.

Select the following modules:
 - shared libraries
 - header files
 - CMake modules

III.3.2 Install from source
- - - - - - - - - - - - - -

Download the source code from http://libclaw.sourceforge.net or from
the svn repository. Enter in the directory where the source code is
and run CMake. You will probably have to edit the CMakeCache.txt file,
by hand or via the CMake interface to set the path of the png, jpeg
and zlib libraries (see section "III.1 GnuWin32").

Once the CMake process ends without errors, run make:

  wine mingw32-make

You can probably use the library as is (never tried) or create an
installer to do a clean installation and easy removing.

Creating an installer requires to generate the documentation. Just run
doxygen in the ./doc/ subdirectory.

*Remark*: I did not find how to use Doxygen for windows here,
espacially due to the requirement of GraphViz's "dot" program. So I
use Doxygen for Linux. This should not be an issue since the
documentation is made of html, png and other portable file formats.

You will need to execute NSIS to create the installer. Just execute it
on the script libclaw.nsi. Run the resulting program as described in
the subsection III.3.1 "Install from binaries".


III.4 wxWidgets
---------------

For this part, MSYS directory must be in your path. Edit the registry
key as described above to add the path c:/msys/1.0/bin (or similar) in
your PATH environment variable.

In MSYS:
  ./configure --enable-optimise --enable-stl --enable-unicode \
    --disable-threads --disable-shared --enable-static \
    --enable-monolithic --enable-release --with-opengl --with-msw

Then remove MSYS directory from your PATH.

In a console
  cd c:/wxWidgets/
  sed -i 's,/c/,c:/,' $(find . -name "Makefile")
  wine mingw32-make

III.5 SDL
---------

III.6 SDL_mixer
---------------

Download and copy the files in SDL's directory.

IV. Compiling Plee the Bear
===========================

Program built during the make process are used later in the make
process. Copy the libraries (claw, boost) in c:/windows (or anywhere
in your PATH), for convenience:

  boost_filesystem-mgw34-1_34_1.dll
  jpeg62.dll
  libclaw_application.dll
  libclaw_configuration_file.dll
  libclaw_dynamic_library.dll
  libclaw_graphic.dll
  libclaw_logger.dll
  libclaw_net.dll
  libpng13.dll
  SDL.dll
  SDL_mixer.dll
  zlib1.dll