[Tile-serving] [osm2pgsql] Add cmake build scripts and appveyor.yml (#460)
alex85k
notifications at github.com
Fri Oct 23 16:52:12 UTC 2015
My report from exotic system: RedHat 6.1, no root, with installed old gcc, old boost , old lua etc.
Done this (with multiple trial-and-errors):
- Built fresh cmake 3.3.1
- Built gcc 5.2.0 in custom directory
- Built all the libraries with it, placing libs and includes together with gcc. (bzip2, zlib, expat, proj, geos 3.5.0 (no SVN!))
- Built Boost 1.59 and Postgresql 9.4.5 in separate folders
To get rid of system libs for cmake had to do this:
```
GCC_HOME=/gpfs/soft/gcc/5.2.0-rh6
export LD_LIBRARY_PATH=${GCC_HOME}/lib64:${GCC_HOME}/lib:$LD_LIBRARY_PATH
export LD_RUN_PATH=${GCC_HOME}/lib64:${GCC_HOME}/lib:$LD_LIBRARY_PATH
export PATH=${GCC_HOME}/bin:$PATH
export C_INCLUDE_PATH=${GCC_HOME}/include
export CPLUS_INCLUDE_PATH=${GCC_HOME}/include
export CC=/gpfs/soft/gcc/5.2.0-rh6/bin/gcc
export CXX=/gpfs/soft/gcc/5.2.0-rh6/bin/g++
export CMAKE_PREFIX_PATH=/gpfs/soft/postgresql/v945_gcc520
cmake .. -DBOOST_ROOT=/gpfs/soft/boost/gcc520 -DCMAKE_BUILD_TYPE=Release -DBoost_ADDITIONAL_VERSIONS="1.57;1.58;1.59" -DBUILD_TESTS=ON
make -j8
ctest -VV -L NoDB
```
It worked!
Notes:
- gcc from git 3.5.0 branch is incompatible - GeometryFactory had been made protected
- cmake does not find boost 1.59 automatically for now - we may need to add it to CMakeLists.txt
- all the custom-built lib should be placed together with custom gcc or listed in export CMAKE_PREFIX_PATH .
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/460#issuecomment-150631341
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151023/db32ca12/attachment.html>
More information about the Tile-serving
mailing list