se5a / perldroid

Automatically exported from code.google.com/p/perldroid
0 stars 0 forks source link

make_core_modules_pkg.pl fails #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Cross compile your modules
2.change to perldroid/tools
3../make_core_modules_pkg.pl ~/perl-arm-5.16.0-14/install_me_here/lib/

What is the expected output? What do you see instead?
Returns with:
bash: ./make_core_modules_pkg.pl: /usr/local/bin/perl: bad interpreter: No such 
file or directory

What version of the product are you using? On what operating system?
Perl  5.16 crosscompiled for android on Ubuntu 12.04 32bit

Please provide any additional information below.

Original issue reported on code.google.com by spencer....@fishtech.co.nz on 15 Sep 2012 at 2:36

GoogleCodeExporter commented 9 years ago
Got a little further...

~/perldroid/tools# perl ./make_core_modules_pkg.pl 
~/perl-arm-5.16.0-14/install_me_here/lib/
Can't call method "desiredCompressionLevel" on an undefined value at 
/usr/local/share/perl/5.14.2/Archive/Zip/Archive.pm line 249.
 => /home/redstorm/perldroid/tools/target_core_so/__PERL__.zip

Original comment by spencer....@fishtech.co.nz on 15 Sep 2012 at 2:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Turns out that on the machine i built the package creates a 
"arm-linux-androideabi" folder and not the "linux-androideabi-thread-multi" 

With changing the path i create the __PERL__.zip containting libperl.so and 
perl 

so it successfully creates the core zip but not the core modules...

print " => $target_so/__PERL__.zip";
my $zip_so = Archive::Zip->new();
$zip_so->addFile("../bin/perl", "perl") or die;
#$zip_so->addFile("linux-androideabi-thread-multi/CORE/libperl.so", 
"libperl.so") or die;
$zip_so->addFile("arm-linux-androideabi/CORE/libperl.so", "libperl.so") or die;
$zip_so->writeToFileNamed("$target_so/__PERL__.zip") == AZ_OK or die "ZIP 
$target_so/__PERL__.zip write error";

Original comment by spencer....@fishtech.co.nz on 15 Sep 2012 at 3:36

GoogleCodeExporter commented 9 years ago
At the beginning of the wiki page it is clearly written:

*This page is a bit outdated. It will be updated when some work on this 
procedure will be done.*

So, yes, there is a problem with this procedure. I acknowledge here the problem 
and I'll have a look at it when I'll have time. If you manage to get it 
working, please share and I'll publish the changes in the code (like the one 
about "arm-linux-androideabi", which is a change and is not specific to your 
environment) and on the wiki.

Thanks.

Original comment by feckmicr...@gmail.com on 18 Sep 2012 at 8:01

GoogleCodeExporter commented 9 years ago
After I've made some changes, (see the attachment), it worked as expected.

Original comment by triz...@gmail.com on 18 Mar 2013 at 10:03

Attachments: