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

How to build #48

Open oflebbe opened 4 years ago

oflebbe commented 4 years ago

User @Zakalicious asks how to build ... and mentions macos .

Right now macos does not work for me, since I got naming conflicts with MacOS specific headers. Do you really want to target macos ?

Zakalicious commented 4 years ago

@oflebbe it is lower priority, but there is a use case for me. iOS offline is definitely higher priority. Thank you for asking.

oflebbe commented 4 years ago

Updated the instructions in https://github.com/oflebbe/graphhopper-ios/blob/master/README.md Does it help you?

Zakalicious commented 4 years ago

Error in terminal:

make: *** No rule to make target `class-list'. Stop

FYI: "You're now ready to use GraphHopper on iOS and OS X." is still there. That's where I got the idea, I guess.

On Tue, Apr 21, 2020 at 3:06 PM Olaf Flebbe notifications@github.com wrote:

Updated the instructions in https://github.com/oflebbe/graphhopper-ios/blob/master/README.md Does it help you?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphhopper/graphhopper-ios/issues/48#issuecomment-617414017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5N5D7WBIZICWJ3GKTYOKLRNYDELANCNFSM4MNTMNIQ .

oflebbe commented 4 years ago

Huh ? What command did you use to get this error ? command has to be make class.list

Zakalicious commented 4 years ago

Had to start a new Terminal session after cloning. Now I see this in Terminal:

Slim:Downloads th_91320$ cd graphhopper-ios Slim:graphhopper-ios th_91320$ ls CONTRIBUTING.md NOTICE.md graphhopper-ios-sample screenshots CONTRIBUTORS.md README.md graphhopper.xcodeproj LICENSE.txt dependencies j2objc Makefile graphhopper make Slim:graphhopper-ios th_91320$ make class.list find graphhopper/core/src/main/java graphhopper/api/src/main/java dependencies/hppc/hppc/src/main/java dependencies/hppc/hppc/target/generated-sources dependencies/jackson-annotations dependencies/jts/modules/core/src/main/java -name '.java' | grep -vf dependencies/class-exclude.grep > class.list find: graphhopper/core/src/main/java: No such file or directory find: graphhopper/api/src/main/java: No such file or directory find: dependencies/hppc/hppc/target/generated-sources: No such file or directory find dependencies/fake_slf4j/src -name '.java' >> class.list

Zakalicious commented 4 years ago

still stuck at building graphhopper

export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION=11C504
export XCODE_VERSION_ACTUAL=1130
export XCODE_VERSION_MAJOR=1100
export XCODE_VERSION_MINOR=1130
export arch=undefined_arch
export variant=normal
/usr/bin/make -j3

make: No rule to make target /Users/th_91320/Library/Developer/Xcode/DerivedData/graphhopper-ios-sample-csasunkdwgblijcactizazkoshwt/Build/Intermediates.noindex/graphhopper.build/Debug-iphoneos/graphhopper.build/com/carrotsearch/hppc/BitUtil.o', needed bybuild/libgraphhopper.a'. Stop. make: Waiting for unfinished jobs.... Translating sources. error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:30: package com.carrotsearch.hppc.cursors does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:31: package com.carrotsearch.hppc.cursors does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:32: package com.carrotsearch.hppc.predicates does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:33: package com.carrotsearch.hppc.predicates does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:34: package com.carrotsearch.hppc.procedures does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:35: package com.carrotsearch.hppc.procedures does not exist error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:887: cannot find symbol symbol: class IntLookupContainer location: class com.carrotsearch.hppc.BitSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:1002: cannot find symbol symbol: class LongLookupContainer location: class com.carrotsearch.hppc.BitSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:9: cannot find symbol symbol: class ObjectHashSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:53: cannot find symbol symbol: class ObjectContainer location: class com.carrotsearch.hppc.ObjectIdentityHashSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:889: cannot find symbol symbol: class IntLookupContainer location: class com.carrotsearch.hppc.BitSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/BitSet.java:1004: cannot find symbol symbol: class LongLookupContainer location: class com.carrotsearch.hppc.BitSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:45: cannot find symbol symbol: variable orderMixer error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:46: cannot find symbol symbol: variable loadFactor error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:46: cannot find symbol symbol: method verifyLoadFactor(double) location: class com.carrotsearch.hppc.ObjectIdentityHashSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:47: cannot find symbol symbol: method ensureCapacity(int) location: class com.carrotsearch.hppc.ObjectIdentityHashSet error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:58: method does not override or implement a method from a supertype error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:61: cannot find symbol symbol: variable keyMixer error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:64: method does not override or implement a method from a supertype error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:76: reference to ObjectIdentityHashSet is ambiguous both constructor ObjectIdentityHashSet(int) in com.carrotsearch.hppc.ObjectIdentityHashSet and constructor ObjectIdentityHashSet() in com.carrotsearch.hppc.ObjectIdentityHashSet match error: dependencies/hppc/hppc/src/main/java/com/carrotsearch/hppc/ObjectIdentityHashSet.java:77: cannot find symbol symbol: method addAll(KType[]) location: variable set of type com.carrotsearch.hppc.ObjectIdentityHashSet make: *** [src/.translate_mark] Error 21

oflebbe commented 4 years ago

I am in the process to rewrite the Makefiles on my github.com/oflebbe/graphhopper-ios . This is in progress. In current branch dependencies are not correct. Please try "make translate" first.

innodeltech commented 3 years ago

@oflebbe Did you find the solution? I am facing the same issues while building.

Zakalicious commented 3 years ago

No. Unfortunately, I cannot compile any of the forks.

On Thu, Feb 11, 2021 at 7:13 PM innodeltech notifications@github.com wrote:

@oflebbe https://github.com/oflebbe Did you find the solution? I am facing the same issues while building.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/graphhopper/graphhopper-ios/issues/48#issuecomment-777956387, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN5N5D7ASW4YMJC6W5MWRQ3S6STIBANCNFSM4MNTMNIQ .

AF-cgi commented 3 years ago

is there any update? I can't compile any of the forks. I need an updated version which is compilable for Xcode 12 or 13.

@oflebbe What's the status with the rewrite of the Makefile.

ghost commented 3 years ago

It's complicated. I picked up the work a few weeks ago, but hit a major road block: See https://discuss.graphhopper.com/t/ios-port-could-be-updated-to-graphhopper-version-1-0/5761/8?u=olafflebbebosch