-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
52 lines (42 loc) · 1.99 KB
/
README
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
The install script in this folder, "install.sh" is
needed only by those who wish to compile and run the
Petzold example programs on the Wine emulator. The Wine
project is an implementation of the WIN32 API on top of
X and UNIX. Hence Wine is a compatibility layer that
allows Windows software to run on Intel based Unixes
such as Linux, FreeBSD, and Solaris.
This special install script is needed because file names
on the UNIX operating system are case sensitive whereas
Windows ignores the case of file names. Consequently
Mr. Petzold, who developed this code on Windows, may never
have been aware of some inconsistencies in the names of
his files. For example, under Windows it is acceptable
for a .C source file to include a .H header file named
"Resource.h" via a preprocessor statement such as:
#include "resource.h"
However this same statement fails to find the Resource.h
file when this code is compiled on a UNIX operating
system. Therefore Dimitrie O. Paun has developed the
"install.sh" script to patch over these differences,
without requiring source level changes in the original
Petzold code. This is accomplished via an automated
process consisting of file renaming and the creation of
symbolic links. All you need to do is to invoke the
"install.sh" script from the directory where you installed
the Petzold project folders (i.e., the directory holding
directories named Chap01, Chap02, etc.), like this:
bash Wine/install.sh
Once the script runs, you can simply invoke make to
build all 145 of the example programs:
make
Incidentally, the PetzoldConvert.exe program will not
run under Wine (but that's okay since the "install.sh"
script serves as its replacement).
NOTE: Currently, 3 of the example programs do not compile
under Wine:
- Chap21/EdrTest
- Chap21/ShowBit
- Chap21/StrProg
The example programs in Chap21 are using DLLs, and DLLs
are not currently supported by winegcc (The Wine team
hopes to have this capability soon).