pgRouting / osm2pgrouting

Import tool for OpenStreetMap data to pgRouting database
https://pgrouting.org
GNU General Public License v2.0
293 stars 111 forks source link

Suggested addition to readme for building on mac with libpq installed from brew #304

Open eddspark opened 4 months ago

eddspark commented 4 months ago

Problem Building from source on M2 mac doesn't work without linking the libpq libraries manually.

Improvement Add the following suggested CMAKE flags when using brew to install libpq and postgresql

mkdir build
cd build
cmake ..  -DPOSTGRESQL_INCLUDE_DIR:PATH=/opt/homebrew/opt/libpq/include -DPOSTGRESQL_LIBRARIES=/opt/homebrew/opt/libpq/lib/libpq.dylib 

This might help people as finding the locations for the libraries took a bit of time