Merge pull request #973 from mapbox/render

Fix mbgl-render tool build
This commit is contained in:
Konstantin Käfer
2015-03-11 14:33:03 +01:00
2 changed files with 8 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ Finally, install Boost. If you're running Ubuntu 12.04 or older, you need to ins
Otherwise, you can just install
sudo apt-get install libboost-dev
sudo apt-get install libboost-dev libboost-program-options-dev
Once you're done installing the build dependencies, you can get started by running

View File

@@ -14,7 +14,14 @@
#include <mbgl/platform/default/log_stderr.hpp>
#endif
#pragma GCC diagnostic push
#ifndef __clang__
#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
#pragma GCC diagnostic ignored "-Wshadow"
#endif
#include <boost/program_options.hpp>
#pragma GCC diagnostic pop
namespace po = boost::program_options;
#include <cassert>
@@ -95,7 +102,6 @@ int main(int argc, char *argv[]) {
map.setClasses(classes);
view.resize(width, height, pixelRatio);
map.resize(width, height, pixelRatio);
map.setLatLngZoom({ lat, lon }, zoom);
map.setBearing(bearing);