This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mapnik.gyp b/mapnik.gyp | |
index 3bd6c49..ae3dc89 100644 | |
--- a/mapnik.gyp | |
+++ b/mapnik.gyp | |
@@ -535,7 +535,10 @@ | |
"libraries":[ | |
"<(boost_filesystem_lib)", | |
"<(boost_system_lib)", | |
- "cairo.lib" | |
+ "cairo.lib", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes you've got a working C++11 compiler | |
# installs all OSRM deps (and cmake too) locally in ./mason_packages | |
# and then builds OSRM against them | |
git clone --depth 10 https://github.com/Project-OSRM/osrm-backend -b masonize | |
cd osrm-backend | |
source ./bootstrap.sh | |
mkdir build && cd build | |
../mason_packages/.link/bin/cmake ../ \ | |
-DBoost_NO_SYSTEM_PATHS=ON \ | |
-DTBB_INSTALL_DIR=${MASON_HOME} \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
COVERITY_VERSION="7.6.0" | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
# https://scan.coverity.com/download | |
# https://scan.coverity.com/download/cxx/mac-OS-X | |
export PATH=${HOME}/cov-analysis-macosx-${COVERITY_VERSION}/bin/:$PATH | |
RESULTS_DIR="$(pwd)/cov-int" | |
rm -rf $RESULTS_DIR/* | |
mkdir -p $RESULTS_DIR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone [email protected]:Project-OSRM/node-osrm.git | |
cd node-osrm | |
git checkout sudo-false | |
source ./bootstrap.sh | |
npm install --build-from-source --clang=1 | |
wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf | |
iprofiler -timeprofiler ./lib/binding/osrm-extract berlin-latest.osm.pbf -p test/data/car.lua |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
in a terminal enter a database with psql that is postgis enabled | |
$ psql <database name> | |
now you should be in the psql interpreter (aka prompt) | |
here you can run sql queries interactively and explore the results | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls /cores/ | |
$ ulimit -c unlimited -S | |
$ npm install crash | |
| | |
> [email protected] install /Users/dane/projects/node-fontnik/node_modules/crash | |
> node-gyp rebuild | |
CXX(target) Release/obj.target/crash/src/crash.o |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test | |
sudo apt-get update -q | |
sudo apt-get install -y libstdc++6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var path = require('path'); | |
var fontnik = require('../'); | |
var Benchmark = require('benchmark'); | |
var opensans = path.resolve(__dirname + '/../fonts/open-sans/OpenSans-Regular.ttf'); | |
var suite = new Benchmark.Suite(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// current | |
function composite(buffers, headers) { | |
var vtile = new mapnik.VectorTile(+z, +x, +y); | |
try { | |
vtile.composite(buffers, {buffer_size: 256, tolerance: 1}); | |
} catch (err) { | |
return callback(err); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone --depth 1 [email protected]:mapnik/mapnik-packaging.git | |
cd mapnik-packaging | |
export LTO=true | |
export CXX11=true | |
source build.sh | |
build_mapnik |