Giter VIP home page Giter VIP logo

Comments (14)

gimse avatar gimse commented on May 17, 2024 6

If anyone wants to figure this out on their own, we're offering a $1,000 bounty for it.

Edit: Solved.
@jakehewitt Can you tell how you soled it?

from tileserver-gl.

acalcutt avatar acalcutt commented on May 17, 2024 2

I have been working on trying to get arm support in my maplibre-native fork and made a test tileserver-gl arm64 with it includes it. would anyone here be willing to test?

wifidb/tileserver-gl:v5.0.4
https://hub.docker.com/r/wifidb/tileserver-gl/tags

I am trying to get my changes upstream to maplibre so they can be used here, but that is still a work in progress.
maplibre/maplibre-native#535
maplibre/maplibre-native#520

from tileserver-gl.

jakehewitt avatar jakehewitt commented on May 17, 2024 1

If anyone wants to figure this out on their own, we're offering a $1,000 bounty for it.

Edit: Solved.

from tileserver-gl.

RedFiveAZ avatar RedFiveAZ commented on May 17, 2024

As a followup, when I try to install via npm I get this:

npm ERR! Linux 4.4.13-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--unsafe-perm" "-g" "tileserver-gl"
npm ERR! node v6.5.0
npm ERR! npm v3.10.3
npm ERR! path /usr/lib/node_modules/.staging/abbrev-4786dede
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-4786dede' -> '/usr/lib/node_modules/tileserver-gl/node_modules /abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-4786dede' -> '/usr/lib/node_modules/tileserver-gl/node_modules /abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /home/sysop/vectortiles/npm-debug.log
npm ERR! code 1

I have to run it using the --unsafe-perm flag because otherwise npm appears to have root permissions issues. This is a documented issue with npm.

Kind of at a loss here, not sure why I can't get this working. FWIW, I'm doing this on a Raspberry Pi 3.

from tileserver-gl.

petrsloup avatar petrsloup commented on May 17, 2024

Running full version of tileserver-gl on ARM is not supported at the moment.

It requires native dependencies, which are not easy to compile on ARM. So, AFAIK, it's not possible to create the compatible docker image either.

But! You should be able to run the tileserver-gl-light which has no native dependencies (see http://tileserver.readthedocs.io/en/latest/installation.html#tileserver-gl-light-on-npm).

from tileserver-gl.

RedFiveAZ avatar RedFiveAZ commented on May 17, 2024

I am looking to use the vector rasterization process, so tileserver-gl-light would not be appropriate for that. I am building a standalone device and need to store world-wide map detail and serve it to myself. Any other suggestions?

from tileserver-gl.

klokan avatar klokan commented on May 17, 2024

@RedFiveAZ If you need the rasterization, then you must install the full version with all dependencies - so the light version will not help you.
You have to take one binary library after another from npm - and ensure every single one does compile correctly on ARM platform and can be properly installed. As this project is 100% open-source it is technically possible - but you must put a non-trivial effort into the task.

First step is direct native installation with npm. Docker container specific for ARM platform could be created from npm trivially, once direct installation runs.

@klokantech team is not going to work on this unless there is a client who requires this explicitly. Feel free to jump on this task - and provide a pull request. We would be glad to review.

from tileserver-gl.

strech345 avatar strech345 commented on May 17, 2024

I've also the same error, running on osgeo (ubuntu) and also with --unsafe-perm flag = true

npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "tileserver-gl"
npm ERR! node v6.9.2
npm ERR! npm v3.10.9
npm ERR! path /usr/lib/node_modules/.staging/abbrev-4786dede
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename

npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-4786dede' -> '/usr/lib/node_modules/tileserver-gl/node_modules/abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename '/usr/lib/node_modules/.staging/abbrev-4786dede' -> '/usr/lib/node_modules/tileserver-gl/node_modules/abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /root/npm-debug.log
npm ERR! code 1

from tileserver-gl.

zifeo avatar zifeo commented on May 17, 2024

@petrsloup Can we reopen this issue? This is still a valid request.

from tileserver-gl.

luandro avatar luandro commented on May 17, 2024

Still having issues with arm, has this really been solved?

from tileserver-gl.

musamak avatar musamak commented on May 17, 2024

Until we get the official ARM release for "tileserver-gl" on the docker

I have tested the following workaround on Raspbian (arm64) and it is working fine.

sudo docker run --privileged --rm tonistiigi/binfmt --install amd64

sudo docker run --rm -it -v $(pwd):/data -p 8080:80 --platform linux/amd64 maptiler/tileserver-gl

PS: I know it is not an optimal solution.

from tileserver-gl.

luandro avatar luandro commented on May 17, 2024

Works on arm64 @acalcutt!

from tileserver-gl.

acalcutt avatar acalcutt commented on May 17, 2024

In theory, arm64 support should now be included in maptiler/tileserver-gl:v4.3.2 . Can anyone still interested in this give it a test.

from tileserver-gl.

luandro avatar luandro commented on May 17, 2024

Working well on arm64 for new releases.

from tileserver-gl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.