"Fossies" - the Fresh Open Source Software Archive

Member "Tk-804.036/README-ActiveState.txt" (1 Dec 2013, 2051 Bytes) of package /linux/misc/Tk-804.036.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 Building using ActivePerl and gcc (MinGW)
    2 
    3 ActivePerl provides a stripped down MinGW ppm package which can be
    4 installed using:
    5 
    6     ppm install MinGW
    7 
    8 Unfortunately, some binaries required to build Perl/Tk are missing,
    9 namely: dllwrap, ranlib, and strip (see also
   10 http://community.activestate.com/node/10487). These binaries have to
   11 be fetched from elsewhere and copied to C:\Perl\site\bin, where the
   12 other MinGW binaries reside (gcc, make, ar etc.).
   13 
   14 Once done, Perl/Tk can be installed normally using:
   15 
   16     perl Makefile.PL
   17     dmake
   18     dmake test
   19     dmake install
   20 
   21 (Tested with ActivePerl 5.16.3 and Tk 804.031_501 using various
   22 Windows versions)
   23 
   24 ActivePerl may also automatically detect MinGW which comes with
   25 StrawberryPerl. Only $Config{libpth} seems to be wrong and needs to be
   26 fixed by setting an environment variable:
   27 
   28     set LIBRARY_PATH=C:\strawberry\c\i686-w64-mingw32\lib
   29 
   30 After that, Perl/Tk may be built using:
   31 
   32     perl Makefile.PL
   33     dmake
   34     dmake test
   35     dmake install
   36 
   37 ----------------------------------------------------------------------
   38 Older notes about building using ActivePerl with Visual C++
   39 
   40 Tk800.013 has been built by the author using ActivePerl
   41 from ActiveState's APi509e.exe.
   42 
   43 You need Visual C++ (Mine is version 6.0 - Professional Edition).
   44 
   45 When you install ActivePerl, it provides patched C runtime as PerlCRT.dll
   46 which it installs in the "system32" directory.
   47 This needs "administrator" rights on NT.
   48 
   49 It also provides the import library PerlCRT.lib, but this is installed
   50 in an odd location e.g. C:\ActivePerl\lib\CORE\PerlCRT.lib
   51 where it is not found by MakeMaker or VC++.
   52 I copied it to C:\VisualStudio\VC98\lib\PerlCRT.lib
   53 (Your paths may vary dependinh where you installed ActivePerl and VC++.)
   54 
   55 Once that is done:
   56 
   57 perl Makefile.PL
   58 nmake
   59 nmake test
   60 nmake install_perl
   61 
   62 Works as expected.
   63 
   64 With prior verions of ActivePerl and Tk it has been necessary with
   65 some versions of VC++ to downgrade "optimization"; from -O2 that
   66 ActivePerl suggests, to -Od.  This does not _seem_ to be required this
   67 time.
   68