404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.226.163.23: ~ $
If you read this file _as_is_, just ignore the funny characters you see.
It is written in the POD format (see pod/perlpod.pod) which is specially
designed to be readable as is.

=head1 NAME

perlsymbian - Perl version 5 on Symbian OS

=head1 DESCRIPTION

This document describes various features of the Symbian operating
system that will affect how Perl version 5 (hereafter just Perl)
is compiled and/or runs.

B<NOTE: this port (as of 0.4.1) does not compile into a Symbian
OS GUI application, but instead it results in a Symbian DLL.>
The DLL includes a C++ class called CPerlBase, which one can then
(derive from and) use to embed Perl into applications, see F<symbian/README>.

The base port of Perl to Symbian only implements the basic POSIX-like
functionality; it does not implement any further Symbian or Series 60,
Series 80, or UIQ bindings for Perl.

It is also possible to generate Symbian executables for "miniperl"
and "perl", but since there is no standard command line interface
for Symbian (nor full keyboards in the devices), these are useful
mainly as demonstrations.

=head2 Compiling Perl on Symbian

(0) You need to have the appropriate Symbian SDK installed.

These instructions have been tested under various Nokia Series 60
Symbian SDKs (1.2 to 2.6, 2.8 should also work, 1.2 compiles but
does not work), Series 80 2.0, and Nokia 7710 (Series 90) SDK.
You can get the SDKs from Forum Nokia (L<http://www.forum.nokia.com/>).
A very rough port ("it compiles") to UIQ 2.1 has also been made.

A prerequisite for any of the SDKs is to install ActivePerl
from ActiveState, L<http://www.activestate.com/Products/ActivePerl/>

Having the SDK installed also means that you need to have either
the Metrowerks CodeWarrior installed (2.8 and 3.0 were used in testing)
or the Microsoft Visual C++ 6.0 installed (SP3 minimum, SP5 recommended).

Note that for example the Series 60 2.0 VC SDK installation talks
about ActivePerl build 518, which does no more (as of mid-2005) exist
at the ActiveState website.  The ActivePerl 5.8.4 build 810 was
used successfully for compiling Perl on Symbian.  The 5.6.x ActivePerls
do not work.

Other SDKs or compilers like Visual.NET, command-line-only
Visual.NET, Borland, GnuPoc, or sdk2unix have not been tried.

These instructions almost certainly won't work with older Symbian
releases or other SDKs.  Patches to get this port running in other
releases, SDKs, compilers, platforms, or devices are naturally welcome.

(1) Get a Perl source code distribution (for example the file
perl-5.9.2.tar.gz is fine) from L<http://www.cpan.org/src/>
and unpack it in your the C:/Symbian directory of your Windows
system.

(2) Change to the perl source directory.

    cd c:\Symbian\perl-5.x.x

(3) Run the following script using the perl coming with the SDK

    perl symbian\config.pl

You must use the cmd.exe, the Cygwin shell will not work.
The PATH must include the SDK tools, including a Perl,
which should be the case under cmd.exe.  If you do not
have that, see the end of symbian\sdk.pl for notes of
how your environment should be set up for Symbian compiles.

(4) Build the project, either by

     make all

in cmd.exe or by using either the Metrowerks CodeWarrior
or the Visual C++ 6.0, or the Visual Studio 8 (the Visual C++
2005 Express Edition works fine).

If you use the VC IDE, you will have to run F<symbian\config.pl>
first using the cmd.exe, and then run 'make win.mf vc6.mf' to generate
the VC6 makefiles and workspaces.  "make vc6" will compile for the VC6,
and "make cw" for the CodeWarrior.

The following SDK and compiler configurations and Nokia phones were
tested at some point in time (+ = compiled and PerlApp run, - = not),
both for Perl 5.8.x and 5.9.x:

     SDK     | VC | CW |
     --------+----+----+---
     S60 1.2 | +  | +  | 3650 (*)
     S60 2.0 | +  | +  | 6600
     S60 2.1 | -  | +  | 6670
     S60 2.6 | +  | +  | 6630
     S60 2.8 | +  | +  | (not tested in a device)
     S80 2.6 | -  | +  | 9300
     S90 1.1 | +  | -  | 7710
     UIQ 2.1 | -  | +  | (not tested in a device)

 (*) Compiles but does not work, unfortunately, a problem with Symbian.

If you are using the 'make' directly, it is the GNU make from the SDKs,
and it will invoke the right make commands for the Windows emulator
build and the Arm target builds ('thumb' by default) as necessary.

The build scripts assume the 'absolute style' SDK installs under C:,
the 'subst style' will not work.

If using the VC IDE, to build use for example the File->Open Workspace->
C:\Symbian\8.0a\S60_2nd_FP2\epoc32\build\symbian\perl\perl\wins\perl.dsw
The emulator binaries will appear in the same directory.

If using the VC IDE, you will a lot of warnings in the beginning of
the build because a lot of headers mentioned by the source cannot
be found, but this is not serious since those headers are not used.

The Metrowerks will give a lot of warnings about unused variables and
empty declarations, you can ignore those.

When the Windows and Arm DLLs are built do not be scared by a very long
messages whizzing by: it is the "export freeze" phase where the whole
(rather large) API of Perl is listed.

Once the build is completed you need to create the DLL SIS file by

     make perldll.sis

which will create the file perlXYZ.sis (the XYZ being the Perl version)
which you can then install into your Symbian device: an easy way
to do this is to send them via Bluetooth or infrared and just open
the messages.

Since the total size of all Perl SIS files once installed is
over 2 MB, it is recommended to do the installation into a
memory card (drive E:) instead of the C: drive.

The size of the perlXYZ.SIS is about 370 kB but once it is in the
device it is about one 750 kB (according to the application manager).

The perlXYZ.sis includes only the Perl DLL: to create an additional
SIS file which includes some of the standard (pure) Perl libraries,
issue the command

     make perllib.sis

Some of the standard Perl libraries are included, but not all:
see L</HISTORY> or F<symbian\install.cfg> for more details
(250 kB -> 700 kB).

Some of the standard Perl XS extensions (see L</HISTORY> are
also available:

     make perlext.sis

which will create perlXYZext.sis (290 kB -> 770 kB).

To compile the demonstration application PerlApp you need first to
install the Perl headers under the SDK.

To install the Perl headers and the class CPerlBase documentation
so that you no more need the Perl sources around to compile Perl
applications using the SDK:

     make sdkinstall

The destination directory is C:\Symbian\perl\X.Y.Z.  For more
details, see F<symbian\PerlBase.pod>.

Once the headers have been installed, you can create a SIS for
the PerlApp:

     make perlapp.sis

The perlapp.sis (11 kB -> 16 kB) will be built in the symbian
subdirectory, but a copy will also be made to the main directory.

If you want to package the Perl DLLs (one for WINS, one for ARMI),
the headers, and the documentation:

     make perlsdk.zip

which will create perlXYZsdk.zip that can be used in another
Windows system with the SDK, without having to compile Perl in
that system.

If you want to package the PerlApp sources:

     make perlapp.zip

If you want to package the perl.exe and miniperl.exe, you
can use the perlexe.sis and miniperlexe.sis make targets.
You also probably want the perllib.sis for the libraries
and maybe even the perlapp.sis for the recognizer.

The make target 'allsis' combines all the above SIS targets.

To clean up after compilation you can use either of

     make clean
     make distclean

depending on how clean you want to be.

=head2 Compilation problems

If you see right after "make" this

    cat makefile.sh >makefile
    'cat' is not recognized as an internal or external command,
    operable program or batch file.

it means you need to (re)run the F<symbian\config.pl>.

If you get the error

        'perl' is not recognized as an internal or external command,
        operable program or batch file.

you may need to reinstall the ActivePerl.

If you see this

    ren makedef.pl nomakedef.pl
    The system cannot find the file specified.
    C:\Symbian\...\make.exe: [rename_makedef] Error 1 (ignored)

please ignore it since it is nothing serious (the build process of
renames the Perl makedef.pl as nomakedef.pl to avoid confusing it
with a makedef.pl of the SDK).

=head2 PerlApp

The PerlApp application demonstrates how to embed Perl interpreters
to a Symbian application.  The "Time" menu item runs the following
Perl code: C<print "Running in ", $^O, "\n", scalar localtime>,
the "Oneliner" allows one to type in Perl code, and the "Run"
opens a file chooser for selecting a Perl file to run.

The PerlApp also is started when the "Perl recognizer" (also included
and installed) detects a Perl file being activated through the GUI,
and offers either to install it under \Perl (if the Perl file is in
the inbox of the messaging application) or to run it (if the Perl file
is under \Perl).

=head2 sisify.pl

In the symbian subdirectory there is F<sisify.pl> utility which can be used
to package Perl scripts and/or Perl library directories into SIS files,
which can be installed to the device.  To run the sisify.pl utility,
you will need to have the 'makesis' and 'uidcrc' utilities already
installed.  If you don't have the Win32 SDKs, you may try for example
L<http://gnupoc.sourceforge.net/> or L<http://symbianos.org/~andreh/>.

=head2 Using Perl in Symbian

First of all note that you have full access to the Symbian device
when using Perl: you can do a lot of damage to your device (like
removing system files) unless you are careful.  Please do take
backups before doing anything.

The Perl port has been done for the most part using the Symbian
standard POSIX-ish STDLIB library. It is a reasonably complete
library, but certain corners of such emulation libraries that tend
to be left unimplemented on non-UNIX platforms have been left
unimplemented also this time: fork(), signals(), user/group ids,
select() working for sockets, non-blocking sockets, and so forth.
See the file F<symbian/config.sh> and look for 'undef' to find the
unsupported APIs (or from Perl use Config).

The filesystem of Symbian devices uses DOSish syntax, "drives"
separated from paths by a colon, and backslashes for the path.  The
exact assignment of the drives probably varies between platforms, but
for example in Series 60 you might see C: as the (flash) main memory,
D: as the RAM drive, E: as the memory card (MMC), Z: as the ROM.  In
Series 80 D: is the memory card.  As far the devices go the NUL: is
the bit bucket, the COMx: are the serial lines, IRCOMx: are the IR
ports, TMP: might be C:\System\Temp.  Remember to double those
backslashes in doublequoted strings.

The Perl DLL is installed in \System\Libs\.  The Perl libraries and
extension DLLs are installed in \System\Libs\Perl\X.Y.Z\.  The PerlApp
is installed in \System\Apps\, and the SIS also installs a couple of
demo scripts in \Perl\ (C:\Mydocs\Perl\ on Nokia 7710).

Note that the Symbian filesystem is very picky: it strongly prefers
the \ instead of the /.

When doing XS / Symbian C++ programming include first the Symbian
headers, then any standard C/POSIX headers, then Perl headers, and finally
any application headers.

New() and Copy() are unfortunately used by both Symbian and Perl code
so you'll have to play cpp games if you need them.  PerlBase.h undefines
the Perl definitions and redefines them as PerlNew() and PerlCopy().

=head1 TO DO

Lots.  See F<symbian/TODO>.

=head1 WARNING

As of Perl Symbian port version 0.4.1 any part of Perl's standard
regression test suite has not been run on a real Symbian device using
the ported Perl, so innumerable bugs may lie in wait.  Therefore there
is absolutely no warranty.

=head1 NOTE

When creating and extending application programming interfaces (APIs)
for Symbian or Series 60 or Series 80 or Series 90 it is suggested
that trademarks, registered trademarks, or trade names are not used in
the API names.  Instead, developers should consider basing the API
naming in the existing (C++, or maybe Java) public component and API
naming, modified as appropriate by the rules of the programming
language the new APIs are for.

Nokia is a registered trademark of Nokia Corporation. Nokia's product
names are trademarks or registered trademarks of Nokia.  Other product
and company names mentioned herein may be trademarks or trade names of
their respective owners.

=head1 AUTHOR

Jarkko Hietaniemi

=head1 COPYRIGHT

Copyright (c) 2004-2005 Nokia.  All rights reserved.

Copyright (c) 2006-2007 Jarkko Hietaniemi.

=head1 LICENSE

The Symbian port is licensed under the same terms as Perl itself.

=head1 HISTORY

=over 4

=item *

0.1.0: April 2005

(This will show as "0.01" in the Symbian Installer.)

 - The console window is a very simple console indeed: one can
   get the newline with "000" and the "C" button is a backspace.
   Do not expect a terminal capable of vt100 or ANSI sequences.
   The console is also "ASCII", you cannot input e.g. any accented
   letters.  Because of obvious physical constraints the console is
   also very small: (in Nokia 6600) 22 columns, 17 rows.
 - The following libraries are available:
   AnyDBM_File AutoLoader base Carp Config Cwd constant
   DynaLoader Exporter File::Spec integer lib strict Symbol
   vars warnings XSLoader
 - The following extensions are available:
   attributes Compress::Zlib Cwd Data::Dumper Devel::Peek
   Digest::MD5 DynaLoader Fcntl File::Glob Filter::Util::Call
   IO List::Util MIME::Base64
   PerlIO::scalar PerlIO::via SDBM_File Socket Storable Time::HiRes
 - The following extensions are missing for various technical
   reasons:
   B ByteLoader Devel::DProf Devel::PPPort Encode GDBM_File
   I18N::Langinfo IPC::SysV NDBM_File Opcode PerlIO::encoding POSIX
   re Safe Sys::Hostname Sys::Syslog
   threads threads::shared Unicode::Normalize
 - Using MakeMaker or the Module::* to build and install modules
   is not supported.
 - Building XS other than the ones in the core is not supported.

Since this is 0.something release, any future releases are almost
guaranteed to be binary incompatible.  As a sign of this the Symbian
symbol exports are kept unfrozen and the .def files fully rebuilt
every time.

=item *

0.2.0: October 2005

  - Perl 5.9.3 (patch level 25741)
  - Compress::Zlib and IO::Zlib supported
  - sisify.pl added

We maintain the binary incompatibility.

=item *

0.3.0: October 2005

  - Perl 5.9.3 (patch level 25911)
  - Series 80 2.0 and UIQ 2.1 support

We maintain the binary incompatibility.

=item *

0.4.0: November 2005

  - Perl 5.9.3 (patch level 26052)
  - adding a sample Symbian extension

We maintain the binary incompatibility.

=item *

0.4.1: December 2006

  - Perl 5.9.5-to-be (patch level 30002)
  - added extensions: Compress/Raw/Zlib, Digest/SHA,
    Hash/Util, Math/BigInt/FastCalc, Text/Soundex, Time/Piece
  - port to S90 1.1 by alexander smishlajev

We maintain the binary incompatibility.

=item *

0.4.2: March 2007

  - catchup with Perl 5.9.5-to-be (patch level 30812)
  - tested to build with Microsoft Visual C++ 2005 Express Edition
    (which uses Microsoft Visual C 8, instead of the old VC6),
    SDK used for testing S60_2nd_FP3 aka 8.1a

We maintain the binary incompatibility.

=back

=cut

Filemanager

Name Type Size Permission Actions
perl.pod File 15.89 KB 0644
perl5004delta.pod File 54.92 KB 0644
perl5005delta.pod File 33.48 KB 0644
perl5100delta.pod File 54.23 KB 0644
perl5101delta.pod File 42.86 KB 0644
perl5120delta.pod File 87.18 KB 0644
perl5121delta.pod File 9.9 KB 0644
perl5122delta.pod File 9.38 KB 0644
perl5123delta.pod File 4 KB 0644
perl5124delta.pod File 3.59 KB 0644
perl5125delta.pod File 7.5 KB 0644
perl5140delta.pod File 140.94 KB 0644
perl5141delta.pod File 7.78 KB 0644
perl5142delta.pod File 6.73 KB 0644
perl5143delta.pod File 7.58 KB 0644
perl5144delta.pod File 6.18 KB 0644
perl5160delta.pod File 130.52 KB 0644
perl5161delta.pod File 6 KB 0644
perl5162delta.pod File 3.51 KB 0644
perl5163delta.pod File 3.99 KB 0644
perl5180delta.pod File 116.63 KB 0644
perl5181delta.pod File 6.44 KB 0644
perl5182delta.pod File 5.21 KB 0644
perl5184delta.pod File 4.53 KB 0644
perl5200delta.pod File 112.99 KB 0644
perl5201delta.pod File 10.64 KB 0644
perl5202delta.pod File 12.22 KB 0644
perl5203delta.pod File 9.17 KB 0644
perl5220delta.pod File 127.89 KB 0644
perl5221delta.pod File 10.51 KB 0644
perl5222delta.pod File 12.33 KB 0644
perl5223delta.pod File 8.26 KB 0644
perl5224delta.pod File 4.36 KB 0644
perl5240delta.pod File 63.41 KB 0644
perl5241delta.pod File 8.02 KB 0644
perl5242delta.pod File 4.02 KB 0644
perl5243delta.pod File 11.16 KB 0644
perl5244delta.pod File 4.4 KB 0644
perl5260delta.pod File 99.45 KB 0644
perl5261delta.pod File 7.74 KB 0644
perl5262delta.pod File 7.7 KB 0644
perl5263delta.pod File 6.9 KB 0644
perl5280delta.pod File 70.42 KB 0644
perl561delta.pod File 121.79 KB 0644
perl56delta.pod File 104.69 KB 0644
perl581delta.pod File 37.17 KB 0644
perl582delta.pod File 4.37 KB 0644
perl583delta.pod File 6.19 KB 0644
perl584delta.pod File 7.19 KB 0644
perl585delta.pod File 5.75 KB 0644
perl586delta.pod File 4.54 KB 0644
perl587delta.pod File 8.16 KB 0644
perl588delta.pod File 24.68 KB 0644
perl589delta.pod File 52.64 KB 0644
perl58delta.pod File 112.47 KB 0644
perlaix.pod File 19.96 KB 0644
perlamiga.pod File 5.61 KB 0644
perlandroid.pod File 7.69 KB 0644
perlapi.pod File 433.14 KB 0644
perlapio.pod File 18.83 KB 0644
perlartistic.pod File 6.85 KB 0644
perlbook.pod File 8.14 KB 0644
perlboot.pod File 294 B 0644
perlbot.pod File 304 B 0644
perlbs2000.pod File 7.87 KB 0644
perlcall.pod File 55.38 KB 0644
perlce.pod File 14.26 KB 0644
perlcheat.pod File 4.38 KB 0644
perlclib.pod File 9.39 KB 0644
perlcn.pod File 4.58 KB 0644
perlcommunity.pod File 7.05 KB 0644
perlcygwin.pod File 26.56 KB 0644
perldata.pod File 45.65 KB 0644
perldbmfilter.pod File 4.86 KB 0644
perldebguts.pod File 37.63 KB 0644
perldebtut.pod File 21.63 KB 0644
perldebug.pod File 38.34 KB 0644
perldelta.pod File 6.9 KB 0644
perldeprecation.pod File 17.74 KB 0644
perldiag.pod File 277.9 KB 0644
perldos.pod File 10.28 KB 0644
perldsc.pod File 25.01 KB 0644
perldtrace.pod File 7.77 KB 0644
perlebcdic.pod File 82.26 KB 0644
perlembed.pod File 36.32 KB 0644
perlexperiment.pod File 7.03 KB 0644
perlfork.pod File 13.04 KB 0644
perlform.pod File 16.22 KB 0644
perlfreebsd.pod File 1.57 KB 0644
perlfunc.pod File 383.75 KB 0644
perlgit.pod File 32.72 KB 0644
perlgpl.pod File 13.49 KB 0644
perlguts.pod File 136.06 KB 0644
perlhack.pod File 39.5 KB 0644
perlhacktips.pod File 54.21 KB 0644
perlhacktut.pod File 6.01 KB 0644
perlhaiku.pod File 1.47 KB 0644
perlhist.pod File 52.29 KB 0644
perlhpux.pod File 29.79 KB 0644
perlhurd.pod File 1.95 KB 0644
perlintern.pod File 53.29 KB 0644
perlinterp.pod File 32.9 KB 0644
perlintro.pod File 21.6 KB 0644
perliol.pod File 33.38 KB 0644
perlipc.pod File 69.17 KB 0644
perlirix.pod File 4.29 KB 0644
perljp.pod File 7.34 KB 0644
perlko.pod File 11.97 KB 0644
perllexwarn.pod File 355 B 0644
perllinux.pod File 1.45 KB 0644
perllocale.pod File 67.07 KB 0644
perllol.pod File 9.36 KB 0644
perlmacos.pod File 1001 B 0644
perlmacosx.pod File 11.78 KB 0644
perlmod.pod File 25.63 KB 0644
perlmodinstall.pod File 12.49 KB 0644
perlmodlib.pod File 74.69 KB 0644
perlmodstyle.pod File 22.05 KB 0644
perlmroapi.pod File 3.14 KB 0644
perlnetware.pod File 6.49 KB 0644
perlnewmod.pod File 10.78 KB 0644
perlnumber.pod File 8.16 KB 0644
perlobj.pod File 34.7 KB 0644
perlootut.pod File 26.16 KB 0644
perlop.pod File 133.06 KB 0644
perlopenbsd.pod File 1.18 KB 0644
perlopentut.pod File 9.23 KB 0644
perlos2.pod File 91.16 KB 0644
perlos390.pod File 15.31 KB 0644
perlos400.pod File 4.66 KB 0644
perlpacktut.pod File 50.08 KB 0644
perlperf.pod File 48.71 KB 0644
perlplan9.pod File 5 KB 0644
perlpod.pod File 21.68 KB 0644
perlpodspec.pod File 66.87 KB 0644
perlpolicy.pod File 25.03 KB 0644
perlport.pod File 85.55 KB 0644
perlpragma.pod File 5.05 KB 0644
perlqnx.pod File 6.52 KB 0644
perlre.pod File 118.07 KB 0644
perlreapi.pod File 29.62 KB 0644
perlrebackslash.pod File 31.07 KB 0644
perlrecharclass.pod File 47.88 KB 0644
perlref.pod File 34.48 KB 0644
perlreftut.pod File 18.35 KB 0644
perlreguts.pod File 37.43 KB 0644
perlrepository.pod File 509 B 0644
perlrequick.pod File 18.06 KB 0644
perlreref.pod File 14.4 KB 0644
perlretut.pod File 118.42 KB 0644
perlriscos.pod File 1.49 KB 0644
perlrun.pod File 52.29 KB 0644
perlsec.pod File 25.57 KB 0644
perlsolaris.pod File 29.12 KB 0644
perlsource.pod File 6.71 KB 0644
perlstyle.pod File 8.43 KB 0644
perlsub.pod File 71.26 KB 0644
perlsymbian.pod File 15 KB 0644
perlsyn.pod File 43.47 KB 0644
perlsynology.pod File 7.6 KB 0644
perlthrtut.pod File 45.37 KB 0644
perltie.pod File 37.7 KB 0644
perltoc.pod File 677.89 KB 0644
perltodo.pod File 376 B 0644
perltooc.pod File 294 B 0644
perltoot.pod File 294 B 0644
perltrap.pod File 10.37 KB 0644
perltru64.pod File 8.29 KB 0644
perltw.pod File 4.37 KB 0644
perlunicode.pod File 80.56 KB 0644
perlunicook.pod File 24.89 KB 0644
perlunifaq.pod File 13.33 KB 0644
perluniintro.pod File 37.44 KB 0644
perluniprops.pod File 278.62 KB 0644
perlunitut.pod File 7.76 KB 0644
perlutil.pod File 7.46 KB 0644
perlvar.pod File 76.53 KB 0644
perlvms.pod File 49.63 KB 0644
perlvos.pod File 3.75 KB 0644
perlwin32.pod File 38.38 KB 0644
perlxs.pod File 77.07 KB 0644
perlxstut.pod File 48.92 KB 0644
perlxstypemap.pod File 23.44 KB 0644