在Android上运行Perl脚本 [英] Running a Perl script on Android
问题描述
我需要运行Perl脚本( isohybrid.pl ).我遇到了 perl-android-apk项目,这似乎正是我所需要的.它是一个蚀项目,您可以在此基础上构建所需的内容.问题是我需要在自己的项目中使用它.
I need to run a Perl script (isohybrid.pl) from my Android app. I came across perl-android-apk project which seems just what I need. It comes as an eclipse project and you can build what you need from this base. The problem is that I need this inside my own project.
所以我的问题是如何将其整合到我自己的项目中?我也对在Android上运行Perl脚本的其他建议持开放态度-但是,Perl解释器必须包含在我的APK中.
So my question is how can I incorporate this inside my own project? I am open to other suggestions about running a Perl script on Android too - however, the Perl interpreter needs to be contained in my APK.
推荐答案
APK网站托管在Google Code上,因此,如果您知道如何使用git,则应该能够使用其网站下载源代码:
The APK site is hosted on Google Code, so if you know how to use git, you should be able to pull the source code down using their site:
https://code.google.com/p/perl-android-apk/
完成此操作后,您可以使用Eclipse的Import
实用程序将代码导入为Android项目.这应该为您提供该代码的APK之前版本,您可以将其添加为现有项目的依赖项.
Once you do that you can use Eclipse's Import
utility to import the code as an Android project. This should give you the pre-APK version of the code, which you can add as a dependency to your existing project.
这篇关于在Android上运行Perl脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!