[postgis-tickets] [PostGIS] #2362: Support building with CMake

PostGIS trac at osgeo.org
Thu May 5 17:31:13 PDT 2016


#2362: Support building with CMake
------------------------------------+----------------------------
  Reporter:  robe                   |      Owner:  strk
      Type:  enhancement            |     Status:  new
  Priority:  medium                 |  Milestone:  PostGIS Future
 Component:  build/upgrade/install  |    Version:  trunk
Resolution:                         |   Keywords:
------------------------------------+----------------------------

Comment (by robe):

 I think GEOS detection needs some work. It doesn't like my GEOS 3.5.0 yet
 it does find it.


 {{{
 CMake Error at
 C:/ming64gcc48/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
 (message):
   Could NOT find GEOS: Found unsuitable version "", but required is at
 least
   "3.4" (found
   C:/ming64gcc48/projects/geos/rel-3.5.0w64gcc48/lib/libgeos_c.dll.a)
 Call Stack (most recent call first):
 C:/ming64gcc48/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386
 (_FPHSA_FAILURE_MESSAGE)
   cmake/FindGEOS.cmake:162 (find_package_handle_standard_args)
   cmake/FindAnyProject.cmake:82 (find_package)
   CMakeLists.txt:154 (find_anyproject)
 }}}


 I tried swithching to my GEOS 3.4.2 build and it didn't like that either:


 {{{
 PATH AFTER:
 /projects/gtkw64gcc48/bin:/projects/geos/rel-3.4.2w64gcc48/bin:/projects/gdal/rel-2.1.0w64gcc48/bin:/projects
 /rel-libiconv-1.13.1w64gcc48/lib:/projects/rel-
 libiconv-1.13.1w64gcc48/include:/projects/rel-lib
 Already up-to-date.
 -- ←[1;33mpostgis version 2.2 USE_GEOS=1 USE_PROJ=1 USE_STATS=1←[m
 --
 -- ←[1;4;34mConfiguring PostGIS:←[0m
 --
 -- Found PostgreSQL:
 C:/ming64gcc48/projects/postgresql/rel/pg9.6w64gcc48/lib/libpq.dll (found
 suitable version "9.6devel", minimum required is "9.1")
 -- Performing Test ICONV_HAVE_WERROR
 -- Performing Test ICONV_HAVE_WERROR - Success
 -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST
 -- Performing Test ICONV_SECOND_ARGUMENT_IS_CONST - Failed
 -- Found Iconv: C:/ming64gcc48/projects/rel-
 libiconv-1.13.1w64gcc48/lib/libiconv.dll.a
 -- Found PROJ4:
 C:/ming64gcc48/projects/proj/rel-4.9.1w64gcc48/lib/libproj.dll.a (found
 suitable version "4.9.1", minimum required is "4.6")
 CMake Error at
 C:/ming64gcc48/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
 (message):
   Could NOT find GEOS: Found unsuitable version "", but required is at
 least
   "3.4" (found
   C:/ming64gcc48/projects/geos/rel-3.4.2w64gcc48/lib/libgeos_c.dll.a)
 Call Stack (most recent call first):
 C:/ming64gcc48/cmake-3.5.2-win32-x86/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:386
 (_FPHSA_FAILURE_MESSAGE)
   cmake/FindGEOS.cmake:162 (find_package_handle_standard_args)
   cmake/FindAnyProject.cmake:82 (find_package)
   CMakeLists.txt:154 (find_anyproject)


 -- Configuring incomplete, errors occurred!
 See also
 "C:/ming64gcc48/projects/postgis/branches/2.3cmake/CMakeFiles/CMakeOutput.log".
 See also
 "C:/ming64gcc48/projects/postgis/branches/2.3cmake/CMakeFiles/CMakeError.log".

 }}}


 I'm building under mingw64-w64 and I built GEOS with CMake.  The others it
 detected correctly I built using standard autotools chain.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2362#comment:6>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list