[GraphHopper] Need help compiling map with Cygwin64

Nico Nijman nico.nijman at gmail.com
Mon Mar 9 18:34:18 UTC 2015


Hello,

I think I got myself fooled by using windows. My maven was installed in
c:\program files\maven.
After checking for the jar file I downloaded the new release and ran the
script again. This time i noticed some remarks about looking for maven in
c:\program\bin . It seems the script can't handle the space in the default
file address on windows, so I moved maven to c:\temp\maven and updated the
system variables and that made it work.

Thanks for your help.

Kind regards, Nico



2015-03-09 19:04 GMT+01:00 Nico Nijman <nico.nijman at gmail.com>:

> Hello,
>
> I found some jars in \core\target
> 08-03-2015  15:06         3.257.441 graphhopper-0.4.0-RC1-android.jar
> 07-03-2015  22:57         1.093.221 graphhopper-0.4.0-RC1-tests.jar
> 08-03-2015  15:05           560.152 graphhopper-0.4.0-RC1.jar
> No with dependencies.
>
> In \tools\target i found
> Directory of C:\temp\graphhopper-0.4\tools
> 07-03-2015  22:20    <DIR>          .
> 07-03-2015  22:20    <DIR>          ..
> 03-03-2015  23:49             2.514 pom.xml
> 07-03-2015  22:20    <DIR>          src
>                1 File(s)          2.514 bytes
>                3 Dir(s)
> No jar with dependencies, actually no jars at all. Are there some tricks
> to generate the missing jar?
>
> Kind regards, Nico Nijman
>
>
>
> 2015-03-09 11:36 GMT+01:00 Peter <graphhopper at gmx.de>:
>
>>  can you check what
>> ls tools/target/*jar
>>
>> gives you? There should be a jar-with-dependencies
>>
>> Peter
>>
>>
>> On 08.03.2015 16:56, Nico Nijman wrote:
>>
>> Hello,
>>
>>  I am trying to compile/build a small map on a windows 7 machine, using
>> cygwin64. I managed to compile/build a map with version 0.3, but since
>> there now is a nice 0.4 version I would like to use that in my app and this
>> results in a message that errors occurred when loading the map.
>>
>>  I can understand this, so I would like to re-compile my map with
>> graphhopper version 0.4. When I tried to run "./graphhopper.sh import
>> map_son.pbf" I got a bunch of error messages that have to do with the line
>> ends ( {\r is considered an unknown command), I could get around this by
>> removing some linebreaks.
>>
>>  In the end I got "graphhopper.sh" to the point where I think it should
>> start to do something, but then it gave me this output:
>>  ====================================================
>>  Nico at Nijman /cygdrive/c/temp/graphhopper-0.4
>>  $ ./graphhopper.sh import map_son.pbf
>> ## using java  from C:\Program Files\Java\jdk1.7.0_71\
>> ## using existing osm file map_son.pbf
>> ## now building graphhopper jar:
>> core/target/graphhopper-0.4.0-RC1-jar-with-dependencies.jar
>> ## using maven at C:\Program files\maven
>> ## now import. JAVA_OPTS=-XX:PermSize=60m -XX:MaxPermSize=60m -Xmx1000m
>> -Xms1000m -server
>> Error: Could not find or load main class com.graphhopper.tools.Import
>>
>>  Nico at Nijman /cygdrive/c/temp/graphhopper-0.4
>> $
>>  ====================================================
>>
>>  The jar files were succesfully created, but it seems the script can't
>> access them.
>>
>>  Does anyone know where I could look to solve this problem?
>> Does anyone have experience with the use of this script in combination
>> with windows and cygwin64?
>>
>>  Thanks in advance for any advice.
>>
>>  Kind regards, Nico
>>
>>
>>
>> _______________________________________________
>> GraphHopper mailing listGraphHopper at openstreetmap.orghttps://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>>
>> _______________________________________________
>> GraphHopper mailing list
>> GraphHopper at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/graphhopper
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20150309/2c529480/attachment.html>


More information about the GraphHopper mailing list