Hi all, I've been scouring the web to understand Perl's build system, but I can't seem to find the info I am looking for. What I want to do: run a Perl-tool (exiftool by Phil Harvey to be exact) inside an iOS app. On macOS, I can create an app, spawn an new process that runs exiftool using C conventions or using Apple's NSTask, no problem. On iOS however, there is no system installed Perl, nor is it possible to install it (unless jailbroken, but I am not going there). So, no big deal, I read about perlembed (https://perldoc.perl.org/perlembed), and I thought that looks exactly like what I need so let's get it done. But! As I understand, 'cross compiling' Perl means the following, using some custom autotools configure settings: 1. build 'miniperl' in the target architecture (in my case, for iOS that would be arm64 for devices, and arm64 or x86_64 for the simulator that runs on macOS) 2 Miniperl will build the actual library (.a file), and is expected to do so on the target device . This last step is problemematic: on iOS there is no toolchain present, and no way to SSH into it and run miniperl. So, the challenge: how to compile Perl for arm64 (for iOS devices), and x86_64 / arm64 (for Intel or M1 macOS devices respectively, running the simulator), on macOS without SSH (or any other) access to the target machine for building?

In reply to How to do a true cross compilation by Joride

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.