-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Linux build docs #295
Linux build docs #295
Conversation
Thanks @dwoznicki for taking the time to write this documentation. I followed your instructions on an ubuntu laptop but run into the following error
Any idea why this happens? |
1 similar comment
Thanks @dwoznicki for taking the time to write this documentation. I followed your instructions on an ubuntu laptop but run into the following error
Any idea why this happens? |
@wipfli could that be missing submodules? I feel like I got a similar error when I did a regular git clone without --recurse-submodules In my post at #280 (comment) I mentioned using |
Yeah, if you haven't cloned all the submodules as @acalcutt mentioned, please go ahead and try that. Also, it looks like I have
You could try |
Should we also setup a CI pipeline? |
That sounds like a great idea, Tadej. I installed the missing packages with the wget links and then with standard apt on ubuntu and then it worked (still compiling). Thanks for the help! |
It worked :) This is my first native map of Switzerland: Generated with ./build/bin/mbgl-render --style style.json --output out.png --zoom 6 --lat 47.36649 --lon 8.53908 Thanks @dwoznicki and @acalcutt for contributing these Linux native guidelines! |
I would like to check if we can use the demo tiles and the style from there for this example. @acalcutt do you know how to package the files from https://github.com/maplibre/demotiles into an mbtiles file? |
python3 mb-util --image_format=pbf /opt/demotiles/tiles demotiles.mbtiles Remove the .txt |
@wipfli , while you are testing. I'd be interested to know if this label issue shows when rendering that way #284 You could download the test data for that here https://github.com/acalcutt/tileserver-gl/releases/download/test_data/test_data_massachusetts.zip and the style wdb-osm is included in that. EDIT: now that i think about it this would probably only show one tile so without a few tiles next to each other it would be hard to tell if this is happening. feel free to ignore this... |
@dwoznicki do you think it is important to emphasis how to use a local mbtiles file? Because we could actually also just use the MapLibre demotiles style which uses the online demo tiles. Example:
creates this nice map: |
I think the local mbtiles was a good example. Good information I did not know. I like the from url example too. |
I just saw that the linux platform has a readme, see https://github.com/maplibre/maplibre-gl-native/tree/main/platform/linux Should we maybe update the linux platform readme instead of putting the info in the main readme? |
I agree, we should have platform specific instructions per platform and just link/refer to them from the main README. |
I'm not sure. It was important for my use case, but that may not be the same for others. Perhaps for the sake of simplicity, we should use the maplibre style for this demo, and note that you can use local files here or elsewhere. Also, I've found this library is quite happy to make network requests to load pretty much every resource, so we can just give the ./build/bin/mbgl-render --style https://raw.githubusercontent.com/maplibre/demotiles/gh-pages/style.json --output out.png
That works. I decided against it for this PR initially because that readme seems to be focused on building a GLFW app, whereas this one shows how to build and use the |
I think it is OK to replace the content of the platform linux README with something which actually works. Also, I like the idea of specifying the style URL in the command line. Thanks for you help, @dwoznicki! |
Modified instructions to load Maplibre style by default, with an additional section on how to use your own style/tiles
…clicking through can see the files, not just the README
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool, thanks a lot @dwoznicki :)
Nice README. I'm glad you left in the local mbtiles stuff. sometimes the small things are hard to piece together. |
This PR adds some more explicit instructions for building the maplibre-gl-native project on Debian (and to some extent, Ubuntu).