-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD_FROM_SOURCE.txt
62 lines (49 loc) · 2.54 KB
/
BUILD_FROM_SOURCE.txt
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
To build ppremake on Unix (or Windows Cygwin) using autoconf, follow
the following steps.
If you are on Windows, note that you may build ppremake either using
or without using Cygwin. This document describes how to build it with
Cygwin; if you want to build it without Cygwin just use the provided
VC7 project file. However, if you intend to use Cygwin to build and
install the rest of Panda (see the top-level INSTALL document for
Panda), you must also use Cygwin to build ppremake, since otherwise
ppremake will not be able to correctly decode Cygwin-style pathnames
into Windows-style pathnames. In general, if you have Cygwin
installed, you should follow these steps to build ppremake; you should
use the VC7 project files only if you don't have Cygwin and you have
no intention of getting it.
(1) If the file "configure" exists, skip to step (4), below. This is
the normal case; you must have unpacked an archive file that
includes the normal autoconf files already generated for you. You
can now successfully build the tree without having autoconf
installed on your own machine.
Otherwise, you must have checked this tree directly out from Git.
Since the autoconf-generated files are not part of the source
tree, you must now generate them.
(2) Install autoconf and/or automake, if they are not already
installed. If you are building on a Linux machine, you probably
already have these installed. If you are running on Cygwin, you
may need to re-run the Cygwin install program and explicitly
check the "autoconf" option in order to install these scripts.
Also, if you are on Cygwin, you will need to ensure that gcc is
installed.
(3) Run the following commands within the src directory, in
order:
aclocal
autoheader
automake --foreign -a
autoconf
(4) Now you have a tree that has been processed with autoconf, and you
are ready to run the resulting configure script. Type the
following command within the src directory:
./configure
This will examine the machine's environment for header files,
etc., and set up the Makefile to build ppremake appropriately.
The default path to copy the installed binary is within
/usr/local/panda; if you wish to install it somewhere else, for
instance /my/install/dir, use:
./configure --prefix=/my/install/dir
Note that this is a Cygwin-style path, with forward slashes and no
drive letter; not a Windows-style path.
(5) Type the following to build and install ppremake:
make
make install