<div dir="ltr">My options are rather limited unfortunately. I'd love to bump our GDAL from 3.3.0 to 3.5.0+ to pick up the CMake, but I'm not able to do that right now. So I'm stuck building it for Android in Git bash with the pre-Cmake options.<div><br></div><div>That said, in the end, I've given up on building it this way. I suspect it works just fine and all my problems are related to Git bash's trouble with spaces. We were using a custom CMake file I was hoping to avoid using, but after three solid days of bashing my head against this, I'm throwing in the towel and I'll just roll my own temporary CMake. Which I guess is what you were suggesting anyways!</div><div><br></div><div>Thanks for the input. It helped tip me over into doing the manual CMake thing. I can't wait to throw it away and use the 'out-of-the-box' version, but that may be a few months away :P</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 1, 2023 at 4:35 AM Kai Pastor, DG0YT <<a href="mailto:dg0yt@darc.de">dg0yt@darc.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>git bash, quotes, make, this seems to
      add a lot of complication when you could directly run cmake+ninja
      for fast builds on windows.</div>
    <div><br>
    </div>
    <div>I think you shoudn't try to pass
      escaped quotes, but just quote the whole arguments as in</div>
    <div><br>
    </div>
    <div> ...
      "-DINST_DATA=/c/prefix_path/shared"
      "-DSYSCONF_DIR=/c/prefix_path/etc" ...</div>
    <div><br>
    </div>
    <div>Regards, Kai<br>
    </div>
    <div><br>
    </div>
    <div><br>
    </div>
    <div>Am 31.03.23 um 02:28 schrieb Andrew
      Patterson:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hello!
        <div><br>
          We've been using a custom CMakeLists.txt for years to build a
          subset of GDAL for Android but I'm attempting to move us to
          building it properly. Unfortunately, we can't move to 3.5+
          quite yet (I'm hoping soon) so I'm stuck with autoconf. I was
          happily surprised at how quickly I passed through the
          configure step (many thanks Google's NDK page with a very
          helpful autoconf section) but now I'm running into a rather
          stupid blocker.</div>
        <div><br>
        </div>
        <div>I'm building this using git bash on a Windows machine, and
          I suspect that's the root of my problem. Basically, when I run
          make on my configured system, it screws up the quoting on
          INST_DATA & SYSCONF_DIR. The command being executed looks
          something like:</div>
        <div><br>
        </div>
        <div>... yada yada ... -DINST_DATA=\"/c/prefix_path/shared\"
          -DSYSCONF_DIR=\"/c/prefix_path/etc\"</div>
        <div><br>
        </div>
        <div>If I copy the command being executed and change that part
          to:</div>
        <div>
          <div><br>
          </div>
          <div>
            <div>... yada yada ...
              -DINST_DATA="\"/c/prefix_path/shared\""
              -DSYSCONF_DIR="\"/c/prefix_path/etc\""</div>
            <div><br>
            </div>
          </div>
          <div>It works. It also works if fully remove the defines for
            INST_DATA & SYSCONF_DIR, which I know is safe because we
            never defined those in our old CMakeLists.txt and everything
            worked fine (we were specifying the properly locations ahead
            of time so it never needed to look in any default places).</div>
          <div><br>
          </div>
          <div>Now, obviously manually copying the commands isn't the
            right fix, but maybe someone knows how to fix the quoting?
            Or, frankly, is there an option I'm missing (or some other
            magic trick) to tell it not to include INST_DATA or
            SYSCONF_DIR at all?</div>
          <div><br>
          </div>
          <div>Any help here would be greatly appreciated! This looked
            like it was going to be a quick job and it turned into a
            frustrating full-day failure :(</div>
          <br>
          <div dir="ltr">
            <div dir="ltr">
              <table>
                <tbody>
                  <tr>
                    <td><a href="https://www.google.com/url?q=https://www.avenza.com/&source=gmail-html&ust=1678977468213000&usg=AOvVaw3ajVwWQPLnJ8kVQuKtUNKi" rel="noreferrer" target="_blank"><img alt="Avenza Systems
                          Logo" width="100"></a></td>
                    <td>
                      <p><b>Andrew Patterson</b><br>
                        Desktop Lead Architect</p>
                      <p>+1 (416) 487-5116 x401 <br>
                        84 Merton St., Toronto, ON, M4S 1A1</p>
                      <p>///<a href="https://www.google.com/url?q=https://www.avenza.com/about/contact/&source=gmail-html&ust=1678977468213000&usg=AOvVaw0_nt7MnUyk1lGZCRk6wICQ" rel="noreferrer" target="_blank">supply.founders.outreach</a></p>
                    </td>
                  </tr>
                  <tr>
                    <td colspan="3"><a href="https://www.google.com/url?q=https://www.avenza.com/user-conference/&source=gmail-html&ust=1678977468213000&usg=AOvVaw2Uj9MQv3vk5IzdDU7m0ycG" rel="noreferrer" target="_blank"><img alt="AvenzaUC2023
                          Banner"></a></td>
                  </tr>
                </tbody>
              </table>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </div>

_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><table cellspacing="0" cellpadding="0" border="0" style="font-family:Inter,sans-serif;width:400px;font-size:10pt"><tbody><tr><td valign="top" style="width:100px;font-size:10pt;border-right:1px solid rgb(146,146,146);vertical-align:top"><a href="https://www.google.com/url?q=https://www.avenza.com/&source=gmail-html&ust=1678977468213000&usg=AOvVaw3ajVwWQPLnJ8kVQuKtUNKi" rel="noreferrer" target="_blank"><img src="https://assets.avenza.com/Avenza_UC_2023/Avenza_Sytems_Logo_Email_Signature_w4MganGMc.png" alt="Avenza Systems Logo" width="100" border="0" style="border: 0px; height: auto; width: 100px;"></a></td><td style="padding-left:10px"><p style="font-size:14pt"><b>Andrew Patterson</b><br>Desktop Lead Architect</p><p style="color:rgb(146,146,146)">+1 (416) 487-5116 x401 <br>84 Merton St., Toronto, ON, M4S 1A1</p><p style="color:red">///<a href="https://www.google.com/url?q=https://www.avenza.com/about/contact/&source=gmail-html&ust=1678977468213000&usg=AOvVaw0_nt7MnUyk1lGZCRk6wICQ" rel="noreferrer" target="_blank">supply.founders.outreach</a></p></td></tr><tr style="width:370px"><td colspan="3" style="padding-top:10px"><a href="https://www.google.com/url?q=https://www.avenza.com/user-conference/&source=gmail-html&ust=1678977468213000&usg=AOvVaw2Uj9MQv3vk5IzdDU7m0ycG" rel="noreferrer" target="_blank"><img src="https://assets.avenza.com/Avenza_UC_2023/Email_Banner_cSlfQUB21U.png" alt="AvenzaUC2023 Banner" border="0" style="max-width: 370px; height: auto; border: 0px;"></a></td></tr></tbody></table></div></div>