⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 perlsymbian.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
📖 第 1 页 / 共 2 页
字号:
\&    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\einstall.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:\eSymbian\eperl\eX.Y.Z.  For more\&    details, see F<symbian\ePerlBase.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 \*(Aqallsis\*(Aq 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..Ve.Sh "Compilation problems".IX Subsection "Compilation problems"If you see right after \*(L"make\*(R" this.PP.Vb 3\&    cat makefile.sh >makefile\&    \*(Aqcat\*(Aq is not recognized as an internal or external command,\&    operable program or batch file..Ve.PPit means you need to (re)run the symbian\econfig.pl..PPIf you get the error.PP.Vb 2\&        \*(Aqperl\*(Aq is not recognized as an internal or external command,\&        operable program or batch file..Ve.PPyou may need to reinstall the ActivePerl..PPIf you see this.PP.Vb 3\&    ren makedef.pl nomakedef.pl\&    The system cannot find the file specified.\&    C:\eSymbian\e...\emake.exe: [rename_makedef] Error 1 (ignored).Ve.PPplease ignore it since it is nothing serious (the build process ofrenames the Perl makedef.pl as nomakedef.pl to avoid confusing itwith a makedef.pl of the \s-1SDK\s0)..Sh "PerlApp".IX Subsection "PerlApp"The PerlApp application demonstrates how to embed Perl interpretersto a Symbian application.  The \*(L"Time\*(R" menu item runs the followingPerl code: \f(CW\*(C`print "Running in ", $^O, "\en", scalar localtime\*(C'\fR,the \*(L"Oneliner\*(R" allows one to type in Perl code, and the \*(L"Run\*(R"opens a file chooser for selecting a Perl file to run..PPThe PerlApp also is started when the \*(L"Perl recognizer\*(R" (also includedand installed) detects a Perl file being activated througg the \s-1GUI\s0,and offers either to install it under \ePerl (if the Perl file is inthe inbox of the messaging application) or to run it (if the Perl fileis under \ePerl)..Sh "sisify.pl".IX Subsection "sisify.pl"In the symbian subdirectory there is sisify.pl utility which can beused to package Perl scripts and/or Perl library directories into \s-1SIS\s0files, which can be installed to the device.  To run the sisify.plutility, you will need to have the 'makesis' and 'uidcrc' utilitiesalready installed.  If you don't have the Win32 SDKs, you may tryfor example http://gnupoc.sourceforge.net/ or http://symbianos.org/~andreh/..Sh "Using Perl in Symbian".IX Subsection "Using Perl in Symbian"First of all note that you have full access to the Symbian devicewhen using Perl: you can do a lot of damage to your device (likeremoving system files) unless you are careful.  Please do takebackups before doing anything..PPThe Perl port has been done for the most part using the Symbianstandard POSIX-ish \s-1STDLIB\s0 library. It is a reasonably completelibrary, but certain corners of such emulation libraries that tendto be left unimplemented on non-UNIX platforms have been leftunimplemented also this time: \fIfork()\fR, \fIsignals()\fR, user/group ids,\&\fIselect()\fR working for sockets, non-blocking sockets, and so forth.See the file symbian/config.sh and look for 'undef' to find theunsupported APIs (or from Perl use Config)..PPThe filesystem of Symbian devices uses DOSish syntax, \*(L"drives\*(R"separated from paths by a colon, and backslashes for the path.  Theexact assignment of the drives probably varies between platforms, butfor example in Series 60 you might see C: as the (flash) main memory,D: as the \s-1RAM\s0 drive, E: as the memory card (\s-1MMC\s0), Z: as the \s-1ROM\s0.  InSeries 80 D: is the memory card.  As far the devices go the \s-1NUL:\s0 isthe bit bucket, the COMx: are the serial lines, IRCOMx: are the \s-1IR\s0ports, \s-1TMP:\s0 might be C:\eSystem\eTemp.  Remember to double thosebackslashes in doublequoted strings..PPThe Perl \s-1DLL\s0 is installed in \eSystem\eLibs\e.  The Perl libraries andextension DLLs are installed in \eSystem\eLibs\ePerl\eX.Y.Z\e.  The PerlAppis installed in \eSystem\eApps\e, and the \s-1SIS\s0 also installs a couple ofdemo scripts in \ePerl\e (C:\eMydocs\ePerl\e on Nokia 7710)..PPNote that the Symbian filesystem is very picky: it strongly prefersthe \e instead of the /..PPWhen doing \s-1XS\s0 / Symbian \*(C+ programming include first the Symbianheaders, then any standard C/POSIX headers, then Perl headers, and finallyany application headers..PP\&\fINew()\fR and \fICopy()\fR are unfortunately used by both Symbian and Perl codeso you'll have to play cpp games if you need them.  PerlBase.h undefinesthe Perl definitions and redefines them as \fIPerlNew()\fR and \fIPerlCopy()\fR..SH "TO DO".IX Header "TO DO"Lots.  See \fIsymbian\eTODO\fR..SH "WARNING".IX Header "WARNING"As of Perl Symbian port version 0.4.1 any part of Perl's standardregression test suite has not been run on a real Symbian device usingthe ported Perl, so innumerable bugs may lie in wait.  Therefore thereis absolutely no warranty..SH "NOTE".IX Header "NOTE"When creating and extending application programming interfaces (APIs)for Symbian or Series 60 or Series 80 or Series 90 it is suggestedthat trademarks, registered trademarks, or trade names are not used inthe \s-1API\s0 names.  Instead, developers should consider basing the \s-1API\s0naming in the existing (\*(C+, or maybe Java) public component and \s-1API\s0naming, modified as appropriate by the rules of the programminglanguage the new APIs are for..PPNokia is a registered trademark of Nokia Corporation. Nokia's productnames are trademarks or registered trademarks of Nokia.  Other productand company names mentioned herein may be trademarks or trade names oftheir respective owners..SH "AUTHOR".IX Header "AUTHOR"Jarkko Hietaniemi.SH "COPYRIGHT".IX Header "COPYRIGHT"Copyright (c) 2004\-2005 Nokia.  All rights reserved..PPCopyright (c) 2006\-2007 Jarkko Hietaniemi..SH "LICENSE".IX Header "LICENSE"The Symbian port is licensed under the same terms as Perl itself..SH "HISTORY".IX Header "HISTORY".IP "\(bu" 40.1.0: April 2005.Sp(This will show as \*(L"0.01\*(R" in the Symbian Installer.).Sp.Vb 10\&  \- 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:\&    attrs 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..Ve.SpSince this is 0.something release, any future releases are almostguaranteed to be binary incompatible.  As a sign of this the Symbiansymbol exports are kept unfrozen and the .def files fully rebuiltevery time..IP "\(bu" 40.2.0: October 2005.Sp.Vb 3\&  \- Perl 5.9.3 (patch level 25741)\&  \- Compress::Zlib and IO::Zlib supported\&  \- sisify.pl added.Ve.SpWe maintain the binary incompatibility..IP "\(bu" 40.3.0: October 2005.Sp.Vb 2\&  \- Perl 5.9.3 (patch level 25911)\&  \- Series 80 2.0 and UIQ 2.1 support.Ve.SpWe maintain the binary incompatibility..IP "\(bu" 40.4.0: November 2005.Sp.Vb 2\&  \- Perl 5.9.3 (patch level 26052)\&  \- adding a sample Symbian extension.Ve.SpWe maintain the binary incompatibility..IP "\(bu" 40.4.1: December 2006.Sp.Vb 4\&  \- 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.Ve.SpWe maintain the binary incompatibility..IP "\(bu" 40.4.2: March 2007.Sp.Vb 4\&  \- 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.Ve.SpWe maintain the binary incompatibility.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -