graphhopper / graphhopper-ios

iOS Port of the GraphHopper road routing engine
https://www.graphhopper.com/open-source/
Apache License 2.0
69 stars 28 forks source link

IntDoubleBinHeap.java, needed by src/.translate_mark Stop #20

Closed tnmendes closed 7 years ago

tnmendes commented 7 years ago

I am having bad time trying to put the sample to work :-/

This is the error that is giving me while compiling:

make: *** No rule to make target `graphhopper/core/src/main/java/com/graphhopper/coll/IntDoubleBinHeap.java', needed by `src/.translate_mark'.  Stop.
Command /usr/bin/make failed with exit code 2

So I did download the project by the GIT way, then I have change to TAG 0.8.2 and run the terminal line:

./graphhopper-ios-sample/import-sample.sh

result:

./graphhopper-ios-sample/import-sample.sh
Downloading http://download.geofabrik.de/europe/romania-latest.osm.pbf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  165M  100  165M    0     0  8486k      0  0:00:19  0:00:19 --:--:-- 9619k
Previous HEAD position was fe358725... Merge tag '0.8.2' into ios-compat
HEAD is now at 9a81eb5f... release 0.8.2
## using java 1.8.0_131 (64bit) from 
## using existing osm file graph-data.osm.pbf
## building parent
## now building graphhopper jar: tools/target/graphhopper-tools-0.8.2-jar-with-dependencies.jar
## using maven at /usr/local/Cellar/maven/3.5.0/libexec
## now import. JAVA_OPTS=-Xmx1000m -Xms1000m -server
2017-07-17 17:06:44,850 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - version 0.8.2|2017-07-17T16:05:59Z (5,14,4,3,3,2)
2017-07-17 17:06:44,862 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - graph CH|car|RAM_STORE|2D|NoExt|,,,,, details:edges:0(0MB), nodes:0(0MB), name:(0MB), geo:0(0MB), bounds:1.7976931348623157E308,-1.7976931348623157E308,1.7976931348623157E308,-1.7976931348623157E308, CHGraph|fastest|car, shortcuts:0, nodesCH:(0MB)
2017-07-17 17:06:44,892 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - start creating graph from graph-data.osm.pbf
2017-07-17 17:06:44,893 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - using CH|car|RAM_STORE|2D|NoExt|,,,,, memory:totalMB:958, usedMB:25
2017-07-17 17:06:58,918 [main] INFO  com.graphhopper.reader.osm.OSMReader - creating graph. Found nodes (pillar+tower):5 293 912, totalMB:966, usedMB:346
2017-07-17 17:07:07,154 [main] INFO  com.graphhopper.reader.osm.OSMReader - 20 243 945, now parsing ways
2017-07-17 17:07:19,503 [main] INFO  com.graphhopper.reader.osm.OSMReader - 21 882 658, now parsing relations
2017-07-17 17:07:19,517 [main] INFO  com.graphhopper.reader.osm.OSMReader - finished way processing. nodes: 763676, osmIdMap.size:5296523, osmIdMap:66MB, nodeFlagsMap.size:2611, relFlagsMap.size:0, zeroCounter:2582 totalMB:977, usedMB:843
2017-07-17 17:07:19,518 [main] INFO  com.graphhopper.reader.osm.OSMReader - time pass1:14s, pass2:20s, total:34s
2017-07-17 17:07:19,520 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - start finding subnetworks, totalMB:977, usedMB:843
2017-07-17 17:07:20,367 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - car findComponents time:0.8445935, size:3358
2017-07-17 17:07:20,744 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - 12989 subnetworks found for car, totalMB:978, usedMB:700
2017-07-17 17:07:20,893 [main] INFO  com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks - optimize to remove subnetworks (12989), unvisited-dead-end-nodes (10875), maxEdges/node (8)
2017-07-17 17:07:21,046 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - edges: 958758, nodes 750705, there were 12989 subnetworks. removed them => 12971 less nodes
2017-07-17 17:07:22,786 [main] INFO  com.graphhopper.storage.index.LocationIndexTree - location index created in 1.7330688s, size:1 392 856, leafs:632 983, precision:300, depth:5, checksum:750705, entries:[64, 64, 64, 4, 4], entriesPerLeaf:2.2004635
2017-07-17 17:07:22,840 [main] INFO  com.graphhopper.routing.ch.CHAlgoFactoryDecorator - 1/1 calling prepare.doWork for fastest|car ... (totalMB:978, usedMB:783)
2017-07-17 17:07:24,849 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 0, updates:0, nodes: 750 705, shortcuts:0, dijkstras:3 329 412, t(dijk):0.78, t(period):0.0, t(lazy):0.0, t(neighbor):0.0, meanDegree:1, algo:11MB, totalMB:978, usedMB:843
2017-07-17 17:07:25,510 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 150 140, updates:0, nodes: 600 565, shortcuts:25, dijkstras:3 400 368, t(dijk):1.1, t(period):0.0, t(lazy):0.0, t(neighbor):0.41, meanDegree:1, algo:11MB, totalMB:978, usedMB:849
2017-07-17 17:07:35,869 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 300 280, updates:1, nodes: 450 425, shortcuts:87 354, dijkstras:6 590 828, t(dijk):9.68, t(period):7.89, t(lazy):0.0, t(neighbor):1.43, meanDegree:2, algo:11MB, totalMB:978, usedMB:908
2017-07-17 17:07:47,935 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 450 420, updates:2, nodes: 300 285, shortcuts:198 810, dijkstras:9 079 223, t(dijk):17.41, t(period):14.48, t(lazy):0.0, t(neighbor):2.63, meanDegree:1, algo:11MB, totalMB:978, usedMB:150
2017-07-17 17:07:59,381 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 600 560, updates:3, nodes: 150 145, shortcuts:366 982, dijkstras:11 436 865, t(dijk):26.98, t(period):20.39, t(lazy):0.0, t(neighbor):5.2, meanDegree:3, algo:11MB, totalMB:978, usedMB:213
2017-07-17 17:08:20,426 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - 750 700, updates:4, nodes: 24 036, shortcuts:548 434, dijkstras:14 458 084, t(dijk):45.65, t(period):26.64, t(lazy):4.38, t(neighbor):10.81, meanDegree:3, algo:11MB, totalMB:978, usedMB:269
2017-07-17 17:08:36,356 [fastest_car] INFO  com.graphhopper.routing.ch.PrepareContractionHierarchies - took:73, new shortcuts: 614 975, prepare|fastest, dijkstras:16388861, t(dijk):60.44, t(period):29.19, t(lazy):9.0, t(neighbor):16.98, meanDegree:1, initSize:750705, periodic:20, lazy:10, neighbor:20, totalMB:978, usedMB:288
2017-07-17 17:08:36,357 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - flushing graph CH|car|RAM_STORE|2D|NoExt|5,14,4,3,3, details:edges:958 758(30MB), nodes:750 705(9MB), name:(2MB), geo:7 988 190(31MB), bounds:20.198656325012216,29.71282909913724,43.57884754044222,48.43948535858434, CHGraph|fastest|car, shortcuts:614 975, nodesCH:(6MB), totalMB:978, usedMB:290)
2017-07-17 17:08:36,782 [main] INFO  com.graphhopper.reader.osm.GraphHopperOSM - flushed graph totalMB:978, usedMB:330)
Previous HEAD position was 9a81eb5f... release 0.8.2
Branch ios-compat set up to track remote branch ios-compat from origin.
Switched to a new branch 'ios-compat'

Then i had open the graphhopper-ios-sample.xcodeproj and click on build. The xcode did a lot of things related with graphhoper but then this error:

make: *** No rule to make target `graphhopper/core/src/main/java/com/graphhopper/coll/IntDoubleBinHeap.java', needed by `src/.translate_mark'.  Stop.
Command /usr/bin/make failed with exit code 2

I already cleaned the project but the same error continues, i don't know what to do any suggestion?

Thank you in advance

clns commented 7 years ago

Do a git submodule update once again after using the import script. These are all the commands you need to run it on 0.8.2:

git clone https://github.com/graphhopper/graphhopper-ios
cd graphhopper-ios/
git checkout 0.8.2
git submodule update --init
./graphhopper-ios-sample/import-sample.sh
git submodule update
tnmendes commented 7 years ago

thanks @clns, it did work. Now i am going try to add this to my project.