<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/14/2014 09:37 PM, Michael Ring
      wrote:<br>
    </div>
    <blockquote cite="mid:52D5A027.6000203@michael-ring.org" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">One day (In a far far away future) I
        will understand how this whole compiler magic works ;-) <br>
        <br>
      </div>
    </blockquote>
    Same here. <span class="moz-smiley-s3"><span> ;-) </span></span><br>
    <br>
    About a year ago, a programmer in Austria and myself tried to get
    Lazarus based cross development for ARM based QNAP NAS boxes
    running. He even started to write a document on how to do this. (I
    promised to push same into the Lazarus Wiki in German and English,
    once we get it going.)<br>
    <br>
    But we gave up for several reasons.<br>
    <br>
     - We only could get fpc, gdb, and gdbserver compiled after
    installing the complete "Code Source" C cross development suite
    (including Eclipse). We did not find any smaller and more handy
    package that did work for that purpose. We did not thinks that it is
    worth (or even legal) to recommend this in the Wiki.<br>
    <br>
     - We could not get the Lazarus remote debug feature decently
    working. In theory same can be activated in two different flavors: <br>
    1) Using gdbserver on the target: this supposedly is doable "out of
    the box", but here you can't manually stop a running program that
    not by itself reaches a breakpoint. Additionally, in fact you need
    to create a "cross-gdb" (running on PC, targeting ARM) which is
    independent of FPC but a real PITA to built. <br>
    2) Using gdb on the target and accessing same from Lazarus by SSH.
    Here, some code to do this is existing in the Lazarus svn, but it is
    commented out, supposedly because nobody got it decently running
    yet. <br>
    <br>
    As we shared the opinion that cross-compiling without decent remote
    debugging does not make any sense on headless target devices, we
    gave up. <br>
    <br>
    -Michael<br>
  </body>
</html>