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

Project does not build #19

Closed
eriadam opened this issue Jul 2, 2017 · 4 comments
Closed

Project does not build #19

eriadam opened this issue Jul 2, 2017 · 4 comments

Comments

@eriadam
Copy link

eriadam commented Jul 2, 2017

After cloning it, the project does not build.
The import com.carrotsearch cannot be resolved
And this results in 382 other errors.

Can you please advise.

@clns
Copy link
Contributor

clns commented Jul 3, 2017

After cloning, switch to the 0.8.2 tag since master is using GraphHopper 0.9.0, but we're not there yet.

git checkout tags/0.8.2
git submodule update --recursive

@ugochirico
Copy link

I tried as you suggested by switching to 0.8.2 but it still doesn't compile

git checkout tags/0.8.2
git submodule update --recursive

I got 36 errors

error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:26: The import org.apache.xmlgraphics cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:27: The import org.apache.xmlgraphics cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:28: The import org.apache.xmlgraphics cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:32: The import java.awt cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:225: Raster cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:226: SeekableStream cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:236: SeekableStream cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:237: TIFFImageDecoder cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:237: TIFFImageDecoder cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/CGIARProvider.java:237: TIFFDecodeParam cannot be resolved to a type
...
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:22: The import javax.imageio cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:23: The import java.awt cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:24: The import java.awt cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:126: ImageIO cannot be resolved
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:126: The method makeARGB() from the type HeightTile refers to the missing type BufferedImage
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:129: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:131: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:131: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:131: BufferedImage cannot be resolved to a variable
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:132: Graphics cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:140: Color cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:149: Color cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:157: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:159: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:159: BufferedImage cannot be resolved to a type
error: graphhopper/core/src/main/java/com/graphhopper/reader/dem/HeightTile.java:159: BufferedImage cannot be resolved to a variable
...
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:94: The method reallocateMemory(long, long) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:101: The method setMemory(long, long, byte) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:182: The method freeMemory(long) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:187: The method putInt(Object, long, int) in the type Unsafe is not applicable for the arguments (long, int)
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:192: The method getInt(Object, long) in the type Unsafe is not applicable for the arguments (long)
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:197: The method getShort(long) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:202: The method putShort(long, short) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:208: The method putByte(long, byte) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/storage/UnsafeDataAccess.java:216: The method getByte(long) is undefined for the type Unsafe
error: graphhopper/core/src/main/java/com/graphhopper/util/Helper.java:394: The method gc() is undefined for the type System

@clns
Copy link
Contributor

clns commented Aug 9, 2017

Try these sequence of commands (as explained in #20 (comment)):

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

@clns
Copy link
Contributor

clns commented Sep 28, 2017

Since there's no more activity on this issue, I'll close it for now.

@clns clns closed this as completed Sep 28, 2017
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

3 participants