File: README-ActiveState.txt

package info (click to toggle)
perl-tk 1:804.033-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 34,724 kB
  • ctags: 37,174
  • sloc: ansic: 349,541; perl: 52,192; sh: 17,904; makefile: 5,732; asm: 3,565; ada: 1,681; pascal: 1,089; cpp: 1,006; yacc: 883; cs: 879
file content (68 lines) | stat: -rw-r--r-- 2,051 bytes parent folder | download | duplicates (3)
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
Building using ActivePerl and gcc (MinGW)

ActivePerl provides a stripped down MinGW ppm package which can be
installed using:

    ppm install MinGW

Unfortunately, some binaries required to build Perl/Tk are missing,
namely: dllwrap, ranlib, and strip (see also
http://community.activestate.com/node/10487). These binaries have to
be fetched from elsewhere and copied to C:\Perl\site\bin, where the
other MinGW binaries reside (gcc, make, ar etc.).

Once done, Perl/Tk can be installed normally using:

    perl Makefile.PL
    dmake
    dmake test
    dmake install

(Tested with ActivePerl 5.16.3 and Tk 804.031_501 using various
Windows versions)

ActivePerl may also automatically detect MinGW which comes with
StrawberryPerl. Only $Config{libpth} seems to be wrong and needs to be
fixed by setting an environment variable:

    set LIBRARY_PATH=C:\strawberry\c\i686-w64-mingw32\lib

After that, Perl/Tk may be built using:

    perl Makefile.PL
    dmake
    dmake test
    dmake install

----------------------------------------------------------------------
Older notes about building using ActivePerl with Visual C++

Tk800.013 has been built by the author using ActivePerl
from ActiveState's APi509e.exe.

You need Visual C++ (Mine is version 6.0 - Professional Edition).

When you install ActivePerl, it provides patched C runtime as PerlCRT.dll
which it installs in the "system32" directory.
This needs "administrator" rights on NT.

It also provides the import library PerlCRT.lib, but this is installed
in an odd location e.g. C:\ActivePerl\lib\CORE\PerlCRT.lib
where it is not found by MakeMaker or VC++.
I copied it to C:\VisualStudio\VC98\lib\PerlCRT.lib
(Your paths may vary dependinh where you installed ActivePerl and VC++.)

Once that is done:

perl Makefile.PL
nmake
nmake test
nmake install_perl

Works as expected.

With prior verions of ActivePerl and Tk it has been necessary with
some versions of VC++ to downgrade "optimization"; from -O2 that
ActivePerl suggests, to -Od.  This does not _seem_ to be required this
time.