File: README.txt

package info (click to toggle)
libalien-wxwidgets-perl 0.69%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,220 kB
  • sloc: perl: 5,365; makefile: 19
file content (156 lines) | stat: -rw-r--r-- 5,528 bytes parent folder | download | duplicates (4)
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
=head1 NAME

README.txt - build and installation instructions

=head1 DESCRIPTION

Alien::wxWidgets allows wxPerl to easily find information about
your wxWidgets installation. It can store this information for multiple
wxWidgets versions or configurations (debug, Unicode, etc.). It can also
build and install a private copy of wxWidgets as part of the build process.

=head1 Installing wxWidgets

If you do not know how to do it, please answer 'yes' to the question 'Do you
want to build wxWidgets?'; Alien::wxWidgets will build and install a
copy of wxWidgets for you.

=head1 Installing Alien::wxWidgets

Please note that the steps below can be repeated multiple times in order
install multiple configurations (differing for the wxWidgets version,
compiler, compiler version, debug/unicode settings).

=head2 Unices and Mac OS X

Important: If you are going to use the system wxWidgets or your own build of 
wxWidgets then either your required wx-config must be the first wx-config in 
the PATH or the WX_CONFIG environment variable must be set to the full path 
to wx-config. The environment WX_CONFIG variable can also be used to specify 
a different wx-config.

    perl Build.PL
    perl Build
    perl Build test
    perl Build install

=head3 Requirements for building on Unices

If you are going to ask Alien::wxWidgets to build wxWidgets you will need to
install development prerequisites. The following is the list for Ubuntu but
you can adapt for your own distribution where the package names may vary.

gcc
g++
libgtk2.0-dev
libgstreamer0.10-dev
libgstreamer-plugins-base0.10-dev
libglu1-mesa-dev
libexpat1-dev
libtiff4-dev
libpng12-dev
libjpeg-dev
libcairo2-dev
freeglut3-dev
libxmu-dev
libwebkitgtk-dev*

To build the wxWebView componenent you need libwebkitgtk version 1.3.1 or
greater. For Linux distributions currently this means a fairly recent
release. For example, Ubuntu ge 11.10

If you do not have a recent enough libwebkitgtk installed then configure
will simply not build the library. This is harmless.

=head2 Windows

If you are going to build your own wxWidgets then
    <add your compiler to the path>
    <build wxWidgets>
    set WXDIR=C:\Path\to\wxWidgets

Then whether you have built your own wxWidgets or not:

    perl Build.PL
    perl Build
    perl Build test
    perl Build install

Important: If you do not allow Alien to build wxWidgets, the command line 
options to Build.PL must match the build settings used to build wxWidgets.


=head2 Command Line Options for build

perl Build.PL --wxWidgets-graphicscontext

    For wxWidgets 2.8.x this flag will cause wxGraphicsContext to be built
    and used. On Windows, your compiler must support GDI+.
    For wxWidgets 2.9.x, the build system detects whether wxGraphicsContext
    is supported. However, the default for any flavour of MinGW or MSVC 6 
    is to assume that wxGraphicsContext is NOT supported. So if you know that
    wxGraphicsContext IS supported, you can use this flag to force inclusion.

perl Build.PL --wxWidgets-unicode=1

    Only relevant for wxWidgets 2.8.x, indicate if you want a unicode build.
    --wxWidgets-unicode=1|0, default is 1

perl Build.PL --wxWidgets-build=0

    Indicate if you want wxWidgets to be downloaded and built
    --wxWidgets-build=1|0, default depends on whether Aline-wxWidgets finds
    a usable wxWidgets installation on your system. An explict value always 
    overrides the default.
    Always use an explicit flag if you want to avoid prompts.
    
perl Build.PL --wxWidgets-version=2.8.12
	
	If --wxWidgets-build=1, indicate the version of wxWidgets to build.
	e.g. --wxWidgets-version=2.9.4.   The current default is 2.8.12.
	Always use an explicit flag if you want to avoid prompts.
	
perl Build.PL --wxWidgets-source=tar.gz
    
    If --wxWidgets-build=1, indicate the type of archive to download
    e.g. --wxWidgets-source=tar.bz2,   then default for wxWidgets 2.8.x is 
    tar.gz and the default for wxWidgets 2.9.x is tar.bz2.
    Always use an explicit flag if you want to avoid prompts.
    
perl Build.PL --wxWidgets-build-opengl=1
	
	Build the wxGLCanvas libraries. 
	--wxWidgets-build-opengl=1|0     default is 1.
	Always use an explicit flag if you want to avoid prompts.

perl Build.PL --wxWidgets-extraflags="--disable-compat26"

    On Unices and Mac OS X you may use this to pass through any flags you
    may wish to configure. Doing so however will drop any additional default 
    flags that Alien wxWidgets would normally pass to configure to ensure
    that wxWidgets builds as required on your system. This approach is used 
    so that you can use this to configure precisely to your requirement
    and not have Alien-wxWidgets override it.
    
    e.g. --wxWidgets-extraflags="CC=gcc-4.0 --with-expat=builtin --disable-compat28"
    
    On Windows this option can be used to pass options directly to mingw32-make
    or nmake. You can usefully pass any of the options in build/msw/config.(vc|gcc)
    
    e.g. --wxWidgets-extraflags="USE_STC=0 VENDOR=anameIchose"

perl Build.PL --wxWidgets-userpatch=/some/path/to/user.patch
	
    If you have automated building scripts and use some wxWidgets customisations
    you may give the path to a patch file (unified diff style) to be applied
    to the wxWidgets source. Any standard Alien::wxWidgets patches will be
    applied first.

perl Build.PL --prefix
	
	Set a custom installation prefix.
	Works exactly the same as perl Makefile.PL PREFIX=/some/path
	
	e.g. --prefix=/some/custom/path

=cut