<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Indeed strange, thanks for the
      feedback!<br>
      <br>
      Peter.<br>
      <br>
    </div>
    <blockquote
cite="mid:CAEdjX9_0Dq7BuuC7Q4_fyYo=3h5JDkyz50ectTBdWjgd_04RCA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Figured it out. 
        <div><br>
        </div>
        <div>Just for future reference - apparently when I was trying to
          download Europe (europe-latest.osm.pbf) map (11GB) Chrome (<span
            style="color:rgb(48,57,66);font-family:'Lucida
            Grande',sans-serif;font-size:12px">Version 31.0.1650.63) </span>downloaded
          only a little bit more than 2GB of it and showed download file
          as finished and all ready. Tried to download it again 3 more
          times - twice the download was cancelled and once it finished
          again with only a little bit more than 2GB. </div>
        <div><br>
        </div>
        <div>I'm guessing it's some kind of weird bug since I'm running
          x64 OS X Lion. </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div>----------------------</div>
          <div><br>
          </div>
          <div>Ignas Kapočius</div>
          <div><br>
          </div>
        </div>
        <br>
        <br>
        <div class="gmail_quote">2013/12/16 Ignas Kapočius <span
            dir="ltr"><<a moz-do-not-send="true"
              href="mailto:kapocius.ignas@gmail.com" target="_blank">kapocius.ignas@gmail.com</a>></span><br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hello again, </div>
              <div><br>
              </div>
              removed the space and ran Custom -> install&run and
              it worked. thank you! 
              <div>had no idea that when you use maven you need to run
                it like that. need to catch up a little bit. </div>
              <div><br>
              </div>
              <div>just one more problem - when I ran <span
                  style="background-color:rgb(248,248,248);color:rgb(51,51,51);font-family:Consolas,'Liberation
Mono',Courier,monospace;font-size:12px;line-height:20px;white-space:nowrap">./graphhopper.sh
                  import <your-osm-file></span> I got these errors
                (see images)</div>
              <div><br>
              </div>
              <div>As I understand it's one of limitations as it's
                written in wiki - </div>
              <div>
                <ul style="padding:0px 0px 0px 30px;margin:15px
0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:15px;line-height:25px">
                  <li>
                    <p style="margin:15px 0px">For now OSMReader does
                      not work on Android due to some javax.xml
                      dependencies. But you can simply create the
                      graphhopper folder on your desktop and copy them
                      to the Android storage.</p>
                  </li>
                </ul>
              </div>
              <div>but what I don't understand is what should I copy
                there? Map(s)? </div>
              <div>As I understand - first you create routing data and
                only then add your map? </div>
              <div><br>
              </div>
              <div>Thank you for your extensive help so far. </div>
              <div><br>
              </div>
            </div>
            <div class="gmail_extra"><br clear="all">
              <div>
                <div>----------------------</div>
                <div><br>
                </div>
                <div>Ignas Kapočius</div>
                <div><br>
                </div>
              </div>
              <div>
                <div class="h5">
                  <br>
                  <br>
                  <div class="gmail_quote">2013/12/16 Peter K <span
                      dir="ltr"><<a moz-do-not-send="true"
                        href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>></span><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      Hi Ignas,<br>
                      <br>
                      looks like you've already managed some ugly stuff.
                      Regarding the current<br>
                      problem: try to avoid spaces in your path and see
                      if this helps.<br>
                      <div><br>
                        > I needed to change
                        maven-install-mapsforge.sh to<br>
                        maven-install-mapsforge.command<br>
                        <br>
                      </div>
                      Oh, really? That would be ugly - can you run the
                      normal graphhopper.sh<br>
                      script? Did you execute it from command line or
                      via some UI?<br>
                      <div><br>
                        <br>
                        > If it helps - I'm using NBAndroid plugin
                        for Netbeans.<br>
                        <br>
                      </div>
                      I don't use this although it surely will make
                      things easier. Currently<br>
                      you should try to run it via maven: right click
                      the project -> Custom -><br>
                      and click install+run<br>
                      <br>
                      OR on the command line do:<br>
                      cd android<br>
                      mvn clean install android:deploy android:run<br>
                      <br>
                      OR:<br>
                      ./graphhopper.sh android<br>
                      <br>
                      Regards,<br>
                      Peter.<br>
                      <div><br>
                        ><br>
                        > Okay, I've managed to get maven/mapsforge
                        going.<br>
                        ><br>
                        > I guess the problem was something really
                        silly - since I'm running OS<br>
                        > X 1.7.3 I needed to change
                        maven-install-mapsforge.sh<br>
                        > to maven-install-mapsforge.command in order
                        to run and when I ran it,<br>
                        > it did nothing but I just didn't notice
                        (sleep deprevation, huh). Saw<br>
                        > 'process completed' and that was enough for
                        me. So afterwards I just<br>
                        > extracted whole script, put it into
                        terminal, executed and it did the<br>
                        > work.<br>
                        ><br>
                        > Then I just ran mvn clean install at the
                        root folder.<br>
                        ><br>
                        > But now I'm facing another problem - after
                        I open project and do<br>
                        > Clean&build - it succeeds. But when I
                        try to run the selected project<br>
                        > (see image) it gives me back error with
                        some missing configuration.<br>
                        ><br>
                        > I'm also new to NetBeans and that could be
                        a problem. What I don't<br>
                        > understand is why can't I run 'GraphHopper
                        Android apk' that has<br>
                        > MainActivity.java in it?<br>
                        ><br>
                        > I mean, if I'm not mistaken - that's the
                        project for Android?<br>
                        ><br>
                        > If it helps - I'm using NBAndroid plugin
                        for Netbeans.<br>
                        ><br>
                        > Sorry for all the lame questions but I
                        haven't developed anything with<br>
                        > Java for years, neither have I worked with
                        Netbeans before.<br>
                        ><br>
                        ><br>
                        ><br>
                        > ----------------------<br>
                        ><br>
                        > Ignas Kapočius<br>
                        ><br>
                        ><br>
                        ><br>
                        > 2013/12/16 Ignas Kapočius <<a
                          moz-do-not-send="true"
                          href="mailto:kapocius.ignas@gmail.com"
                          target="_blank">kapocius.ignas@gmail.com</a><br>
                      </div>
                      > <mailto:<a moz-do-not-send="true"
                        href="mailto:kapocius.ignas@gmail.com"
                        target="_blank">kapocius.ignas@gmail.com</a>>><br>
                      ><br>
                      > Tried running /mvn clean install/ at the root
                      folder - got the<br>
                      <div>> same error "Failed to execute goal on
                        project graphhopper-android:<br>
                        > Could not resolve dependencies for project<br>
                        >
                        com.graphhopper:graphhopper-android:apk:0.3-SNAPSHOT:
                        Failure to<br>
                        > find
                        com.graphhopper:graphhoper:jar:0.3-SNAPSHOT in<br>
                        > <a moz-do-not-send="true"
                          href="https://oss.sonatype.org/content/repositories/snapshots"
                          target="_blank">https://oss.sonatype.org/content/repositories/snapshots</a>
                        was cached<br>
                        > in the local repository"<br>
                        ><br>
                        > Then I've installed Netbeans (7.4),
                        re-downloaded<br>
                        > graphopper-master project (in case I've
                        made some changes) and did<br>
                        > yours "in NetBeans you just open the
                        project and click<br>
                        > 'Clean&Build'". Got the same error (see
                        attachment).<br>
                        ><br>
                        > Or should I follow those three steps<br>
                        > from <a moz-do-not-send="true"
                          href="https://github.com/graphhopper/graphhopper/wiki/Android"
                          target="_blank">https://github.com/graphhopper/graphhopper/wiki/Android</a>
                        for<br>
                        > Netbeans (though it also gives some errors
                        when trying to install<br>
                        > mvn)?<br>
                        ><br>
                        > I was also wondering - could it because
                        there aren't actually<br>
                        > those necessary .jar's in <a
                          moz-do-not-send="true"
                          href="https://oss.sonatype.org/"
                          target="_blank">https://oss.sonatype.org/</a><..>
                        -<br>
                        > filenames are different and maybe Maven
                        just can't actually find it?<br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        ><br>
                        > ----------------------<br>
                        ><br>
                        > Ignas Kapočius<br>
                        ><br>
                        ><br>
                        ><br>
                      </div>
                      > 2013/12/15 Peter K <<a
                        moz-do-not-send="true"
                        href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>
                      <mailto:<a moz-do-not-send="true"
                        href="mailto:peathal@yahoo.de" target="_blank">peathal@yahoo.de</a>>><br>
                      <div>><br>
                        > Hi Ignas,<br>
                        ><br>
                        > would you mind to try on the command line
                        first? Go into the<br>
                        > root folder (not core or android) and type:<br>
                        ><br>
                        > mvn clean install<br>
                        ><br>
                        > But from the failure it looks like the jar
                        was not<br>
                        > automatically built inside Eclipse (or
                        whatever). Maybe the<br>
                        > command line procedure fixes this (as it
                        should produce all<br>
                        > necessary jars and install them into your
                        local maven<br>
                        > repository). If not, you should really
                        think about switching<br>
                        > the IDE ;) as e.g. in NetBeans you just
                        open the project and<br>
                        > click 'Clean&Build'. Or ask here again
                        if it still does not work.<br>
                        ><br>
                        > Regards,<br>
                        > Peter.<br>
                        ><br>
                        >><br>
                        >> Hello,<br>
                        >><br>
                        >> I've imported source code as Android
                        project, then followed<br>
                        >> this<br>
                        >> <a moz-do-not-send="true"
href="https://lists.openstreetmap.org/pipermail/graphhopper/2013-November/000501.html"
                          target="_blank">https://lists.openstreetmap.org/pipermail/graphhopper/2013-November/000501.html</a><br>
                        >> but it still does not work.<br>
                        >><br>
                        >> I think, I have some problems with
                        mapsforge installation<br>
                      </div>
                      >> because when I try /mvn clean install/ or
                      /mvn<br>
                      >> eclipse:eclipse/ at the root of 'android'
                      folder, it gives me<br>
                      <div>>> back this error:<br>
                        >><br>
                        >> Failed to execute goal on project
                        graphhopper-android: Could<br>
                        >> not resolve dependencies for project<br>
                        >>
                        com.graphhopper:graphhopper-android:apk:0.3-SNAPSHOT:
                        Failure<br>
                        >> to find
                        com.graphhopper:graphhoper-parent:jar:0.3-SNAPSHOT
                        in<br>
                        >> <a moz-do-not-send="true"
                          href="https://oss.sonatype.org/content/repositories/snapshots"
                          target="_blank">https://oss.sonatype.org/content/repositories/snapshots</a>
                        <...><br>
                        >><br>
                        >> I don't know if this is related but I
                        also see errors at<br>
                        >> pom.xml (android folder) - see attached
                        images.<br>
                        >><br>
                        >> I'm absolutely new to Maven, so could
                        you help me out with<br>
                        >> how should I build/add everything after
                        i've imported source<br>
                        >> files and converted 'core' and
                        'android' projects to Java<br>
                        >> Facet and Maven?<br>
                        >><br>
                        >> Thank you for your help,<br>
                        >><br>
                        >> ----------------------<br>
                        >><br>
                        >> Ignas Kapočius<br>
                        >><br>
                        >><br>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>