osm2pgrouting (#24) - Compliling problems osm2pgrouting (#249) - Message List
Dear users,
I try to compile osm2pgrouting on debian etch.
I have succesfully installed postgresql, postgis and pgrouting. I get the ltest version of osm2pgrouting from svn, but when I do a "make" I get:
g++ -c src/Export2DB.cpp src/math_functions.cpp src/Node.cpp src/OSMDocumentParserCallback.cpp src/Way.cpp src/OSMDocument.cpp src/Type.cpp src/Class.cpp src/Configuration.cpp src/ConfigurationParserCallback.cpp -I./ -Isrc -I/usr/include/pgsql -I/usr/include/postgresql -ggdb3 In file included from src/Export2DB.cpp:22:
src/Export2DB.h:25:22: error: libpq-fe.h: Datei oder Verzeichnis nicht gefunden
src/Export2DB.h:84: error: ISO C++ forbids declaration of ‘PGconn’ with no type
src/Export2DB.h:84: error: expected ‘;’ before ‘*’ token
src/Export2DB.cpp: In constructor ‘Export2DB::Export2DB(std::string,
std::string, std::string, std::string, std::string)’:
src/Export2DB.cpp:27: error: class ‘Export2DB’ does not have any field named ‘mycon’
src/Export2DB.cpp: In destructor ‘Export2DB::~Export2DB()’:
src/Export2DB.cpp:38: error: ‘mycon’ was not declared in this scope
src/Export2DB.cpp:38: error: ‘PQfinish’ was not declared in this scope
src/Export2DB.cpp: In member function ‘int Export2DB::connect()’:
src/Export2DB.cpp:45: error: ‘mycon’ was not declared in this scope
src/Export2DB.cpp:45: error: ‘PQconnectdb’ was not declared in this scope
etc. etc.
Doesn anybody know what this means? Thank you in advance, Kai