Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build #48

Open
oflebbe opened this issue Apr 21, 2020 · 11 comments
Open

How to build #48

oflebbe opened this issue Apr 21, 2020 · 11 comments

Comments

@oflebbe
Copy link
Contributor

oflebbe commented Apr 21, 2020

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
Copy link

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

@oflebbe
Copy link
Contributor Author

oflebbe commented Apr 21, 2020

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

@Zakalicious
Copy link

Zakalicious commented Apr 21, 2020 via email

@oflebbe
Copy link
Contributor Author

oflebbe commented Apr 23, 2020

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

@Zakalicious
Copy link

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
Copy link

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 by build/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
Copy link
Contributor Author

oflebbe commented May 17, 2020

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
Copy link

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

@Zakalicious
Copy link

Zakalicious commented Feb 12, 2021 via email

@AF-cgi
Copy link

AF-cgi commented Sep 21, 2021

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
Copy link

ghost commented Sep 23, 2021

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

@graphhopper graphhopper deleted a comment from ReyZhang Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants