Error while installing osm2pgrouting Ubuntu14.04

المشرف العام

Administrator
طاقم الإدارة
I'm trying to install osm2pgrouting. I have installed all the required packages and i also have changed the #include "libpq-fe.h" to #include postgresql/libpq-fe.h" in the src/Export2DB.h. However when i'm trying to do "make" i get this error:

Linking CXX executable osm2pgroutingCMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function Export2DB::~Export2DB()':Export2DB.cpp:(.text+0x2ea): undefined reference toPQfinish'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function Export2DB::connect()':Export2DB.cpp:(.text+0x38c): undefined reference toPQconnectdb'Export2DB.cpp:(.text+0x3a2): undefined reference to PQstatus'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In functionExport2DB::createTables()':Export2DB.cpp:(.text+0x46f): undefined reference to PQexec'Export2DB.cpp:(.text+0x47f): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x49b): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x4d1): undefined reference toPQclear'Export2DB.cpp:(.text+0x5f2): undefined reference to PQexec'Export2DB.cpp:(.text+0x602): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x618): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0x636): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0x66c): undefined reference to PQclear'Export2DB.cpp:(.text+0x6fd): undefined reference toPQexec'Export2DB.cpp:(.text+0x70d): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0x729): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0x75f): undefined reference to PQclear'Export2DB.cpp:(.text+0x7e7): undefined reference toPQexec'Export2DB.cpp:(.text+0x7f7): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0x813): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0x849): undefined reference to PQclear'Export2DB.cpp:(.text+0x8cb): undefined reference toPQexec'Export2DB.cpp:(.text+0x8db): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0x8f7): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0x92d): undefined reference to PQclear'Export2DB.cpp:(.text+0x9af): undefined reference toPQexec'Export2DB.cpp:(.text+0x9bf): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0x9db): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0xa11): undefined reference to PQclear'Export2DB.cpp:(.text+0xa93): undefined reference toPQexec'Export2DB.cpp:(.text+0xaa3): undefined reference to PQresultStatus'Export2DB.cpp:(.text+0xabf): undefined reference toPQerrorMessage'Export2DB.cpp:(.text+0xaf5): undefined reference to PQclear'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In functionExport2DB::dropTables()':Export2DB.cpp:(.text+0x117a): undefined reference to PQexec'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In functionExport2DB::exportNodes(std::map, std::allocator > >&)':Export2DB.cpp:(.text+0x1563): undefined reference to PQexec'Export2DB.cpp:(.text+0x1573): undefined reference toPQclear'Export2DB.cpp:(.text+0x16c5): undefined reference to PQputline'Export2DB.cpp:(.text+0x1706): undefined reference toPQputline'Export2DB.cpp:(.text+0x1718): undefined reference to PQendcopy'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In functionExport2DB::exportRelations(std::vector >&, osm::Configuration*)':Export2DB.cpp:(.text+0x187d): undefined reference to PQexec'Export2DB.cpp:(.text+0x188d): undefined reference toPQclear'Export2DB.cpp:(.text+0x1b19): undefined reference to PQputline'Export2DB.cpp:(.text+0x1b84): undefined reference toPQputline'Export2DB.cpp:(.text+0x1b96): undefined reference to PQendcopy'Export2DB.cpp:(.text+0x1c10): undefined reference toPQexec'Export2DB.cpp:(.text+0x1c20): undefined reference to PQclear'Export2DB.cpp:(.text+0x1d30): undefined reference toPQputline'Export2DB.cpp:(.text+0x1d8f): undefined reference to PQputline'Export2DB.cpp:(.text+0x1da1): undefined reference toPQendcopy'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function Export2DB::exportWays(std::vector&, osm::Configuration*)':Export2DB.cpp:(.text+0x1fbf): undefined reference toPQexec'Export2DB.cpp:(.text+0x1fcf): undefined reference to PQclear'Export2DB.cpp:(.text+0x21f4): undefined reference toPQputline'Export2DB.cpp:(.text+0x225f): undefined reference to PQputline'Export2DB.cpp:(.text+0x2271): undefined reference toPQendcopy'Export2DB.cpp:(.text+0x22fa): undefined reference to PQexec'Export2DB.cpp:(.text+0x2a2d): undefined reference toPQputline'Export2DB.cpp:(.text+0x2a74): undefined reference to PQputline'Export2DB.cpp:(.text+0x2a86): undefined reference toPQendcopy'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In function Export2DB::exportTypesWithClasses(std::map&)':Export2DB.cpp:(.text+0x2e40): undefined reference toPQexec'Export2DB.cpp:(.text+0x2e50): undefined reference to PQclear'Export2DB.cpp:(.text+0x2ef5): undefined reference toPQputline'Export2DB.cpp:(.text+0x2f39): undefined reference to PQputline'Export2DB.cpp:(.text+0x2f4b): undefined reference toPQendcopy'Export2DB.cpp:(.text+0x2fcb): undefined reference to PQexec'Export2DB.cpp:(.text+0x2fdb): undefined reference toPQclear'Export2DB.cpp:(.text+0x31ad): undefined reference to PQputline'Export2DB.cpp:(.text+0x320f): undefined reference toPQputline'Export2DB.cpp:(.text+0x3221): undefined reference to PQendcopy'CMakeFiles/osm2pgrouting.dir/src/Export2DB.cpp.o: In functionExport2DB::createTopology()':Export2DB.cpp:(.text+0x33b8): undefined reference to PQexec'Export2DB.cpp:(.text+0x33c8): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x33e4): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x341a): undefined reference toPQclear'Export2DB.cpp:(.text+0x3494): undefined reference to PQexec'Export2DB.cpp:(.text+0x34a4): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x34c0): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x34f6): undefined reference toPQclear'Export2DB.cpp:(.text+0x35d3): undefined reference to PQexec'Export2DB.cpp:(.text+0x35e3): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x35ff): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x3635): undefined reference toPQclear'Export2DB.cpp:(.text+0x3712): undefined reference to PQexec'Export2DB.cpp:(.text+0x3722): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x373e): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x3774): undefined reference toPQclear'Export2DB.cpp:(.text+0x3848): undefined reference to PQexec'Export2DB.cpp:(.text+0x3858): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x3874): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x38aa): undefined reference toPQclear'Export2DB.cpp:(.text+0x3966): undefined reference to PQexec'Export2DB.cpp:(.text+0x3976): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x3992): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x39c8): undefined reference toPQclear'Export2DB.cpp:(.text+0x3a33): undefined reference to PQexec'Export2DB.cpp:(.text+0x3a43): undefined reference toPQresultStatus'Export2DB.cpp:(.text+0x3a5f): undefined reference to PQerrorMessage'Export2DB.cpp:(.text+0x3a95): undefined reference toPQclear'collect2: error: ld returned 1 exit statusmake[2]: * [osm2pgrouting] Error 1make[1]: * [CMakeFiles/osm2pgrouting.dir/all] Error 2make: *** [all] Error 2

any help?



أكثر...
 
أعلى