-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPerl_Client_on_Android.pg
66 lines (51 loc) · 6.38 KB
/
Perl_Client_on_Android.pg
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
flags: 010101010101010100
blocks: <div class="foo_outdated">This way of running [[Perl Client]] is outdated. Please see [[Android Client]]</div><p>For now, installing [[Perl Client]] on android requires many steps. Hopefully, this process will get much simpler once <a class="url http outside" href="https://code.google.com/p/perldroid/">perldroid</a> update is released.</p><h2>Installation</h2><ol><li><a class="url http outside" href="https://android-scripting.googlecode.com/files/sl4a_r6.apk">Download</a> and install SL4A<br /><a class="image inter File" href="https://files.progarm.org/apk_sl4a.png"><img class="upload" title="File:apk sl4a.png" src="https://files.progarm.org/apk_sl4a.png" alt="File:apk sl4a.png" /></a></li><li><a class="url http outside" href="https://android-scripting.googlecode.com/files/perl_for_android_r1.apk">Download</a> and install perl-for-android<br /><a class="image inter File" href="https://files.progarm.org/apk_perl.png"><img class="upload" title="File:apk perl.png" src="https://files.progarm.org/apk_perl.png" alt="File:apk perl.png" /></a></li><li>Run Perl For Android application and press install</li><li><a class="url http outside" href="https://github.com/ProgArm/ProgArm-Client/archive/master.zip">Download</a> ProgArm client.<br /><a class="image inter File" href="https://files.progarm.org/perl_client_qrl.png"><img class="upload" title="File:perl client qrl.png" src="https://files.progarm.org/perl_client_qrl.png" alt="File:perl client qrl.png" /></a></li><li>Move ProgArm client into <strong>sl4a/scripts</strong> folder</li><li>[[File:perl_modules.zip|Download]] required perl modules. The reason for this step is described in <strong>Problems and Complications</strong> part of this page.<br /><a class="image inter File" href="https://files.progarm.org/perl_modules.png"><img class="upload" title="File:perl modules.png" src="https://files.progarm.org/perl_modules.png" alt="File:perl modules.png" /></a></li><li>Move <strong>perl_modules</strong> folder into <strong>sl4a</strong></li><li>Run SL4A application and execute android_launcher.pl</li></ol><h2>Problems and Complications</h2><p>Some inept person <a class="url http outside" href="https://code.google.com/p/android-scripting/issues/detail?id=472">forgot to put feature.pm into sl4a perl</a>, therefore things like:<br /></p><div class="highlight"><pre><span style="color: #6ab825; font-weight: bold">use</span> <span style="color: #d0d0d0">v5.</span><span style="color: #3677a9">10</span><span style="color: #d0d0d0">;</span>
</pre></div>
<p>will not work at all. Because of that, we must include <strong>feature.pm</strong> somewhere else.</p><p>Currently, <strong>perl_modules</strong> should include:<br /></p><ul><li><strong><code>feature.pm</code></strong> - for the reason stated above.</li><li><strong><code>File::</code></strong> - although it exists in default installation, it seems to be broken. (<strong>dirname</strong> subroutine not found)</li><li><strong><code>Hook::LexWrap</code></strong> - this is a standard dependency of [[Perl Client]].</li></ul><p>Once <a class="url http outside" href="https://code.google.com/p/perldroid/">perldroid</a> update is released, we will probably forget about <strong><code>feature.pm</code></strong> and <strong><code>File::</code></strong> hacks.</p><h2>How about native client written in java?</h2><p>Native client is the easiest solution, but it fails short to satisfy our project [[Goals]].</p><h2 class="commentsHeading">Comments:</h2><div class="userComment"><p>What about connecting droid phone to the device? Is it working over bluetooth as well?</p><p>-- Yuno 2014-08-23 12:54 UTC</p></div><div class="userComment"><p>Yes! Once you run android_launcher.pl, you will get a native popup menu to start a bluetooth connection.</p><p>-- AlexDaniel 2014-08-25 00:17 UTC</p></div>
diff-minor: <p><strong>Added:</strong></p>
<div class="new"><p>> <outdated><br />> This way of running [[Perl Client]] is outdated. Please see [[Android Client]]</p></div>
ts: 1428276120
minor:
host: 82.131.49.192
username: AlexDaniel
revision: 15
summary: This will be outdated very soon
diff-major: 1
languages:
text: <outdated>
This way of running [[Perl Client]] is outdated. Please see [[Android Client]]
For now, installing [[Perl Client]] on android requires many steps. Hopefully, this process will get much simpler once [[https://code.google.com/p/perldroid/ perldroid]] update is released.
==Installation
# [[https://android-scripting.googlecode.com/files/sl4a_r6.apk Download]] and install SL4A
[[image:File:apk_sl4a.png]]
# [[https://android-scripting.googlecode.com/files/perl_for_android_r1.apk Download]] and install perl-for-android
[[image:File:apk_perl.png]]
# Run Perl For Android application and press install
# [[https://github.com/ProgArm/ProgArm-Client/archive/master.zip Download]] !ProgArm client.
[[image:File:perl_client_qrl.png]]
# Move ProgArm client into **sl4a/scripts** folder
# [[File:perl_modules.zip|Download]] required perl modules. The reason for this step is described in **Problems and Complications** part of this page.
[[image:File:perl_modules.png]]
# Move **perl_modules** folder into **sl4a**
# Run SL4A application and execute android_launcher.pl
==Problems and Complications
Some inept person [[https://code.google.com/p/android-scripting/issues/detail?id=472 forgot to put feature.pm into sl4a perl]], therefore things like:
{{{
use v5.10;
}}}
will not work at all. Because of that, we must include **feature.pm** somewhere else.
Currently, **perl_modules** should include:
* **{{{feature.pm}}}** - for the reason stated above.
* **{{{File::}}}** - although it exists in default installation, it seems to be broken. (**dirname** subroutine not found)
* **{{{Hook::LexWrap}}}** - this is a standard dependency of [[Perl Client]].
Once [[https://code.google.com/p/perldroid/ perldroid]] update is released, we will probably forget about **{{{feature.pm}}}** and **{{{File::}}}** hacks.
==How about native client written in java?
Native client is the easiest solution, but it fails short to satisfy our project [[Goals]].
----
What about connecting droid phone to the device? Is it working over bluetooth as well?
-- Yuno 2014-08-23 12:54 UTC
----
Yes! Once you run android_launcher.pl, you will get a native popup menu to start a bluetooth connection.
-- AlexDaniel 2014-08-25 00:17 UTC
lastmajor: 15
keep-ts: 1428276120