[GEOS] #1061: Cannot build GEOS on Windows 10 under MinGW

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[GEOS] #1061: Cannot build GEOS on Windows 10 under MinGW

geos-2
#1061: Cannot build GEOS on Windows 10 under MinGW
------------------------+-----------------------------
 Reporter:  twrackers   |      Owner:  geos-devel@…
     Type:  defect      |     Status:  new
 Priority:  major       |  Milestone:
Component:  Default     |    Version:  3.6.2
 Severity:  Unassigned  |   Keywords:  MinGW geos make
------------------------+-----------------------------
 New issue: Under MinGW on Windows 10 host, ran following commands.

 export PROJECTS=/c/minGW/projects

 export GEOS_VER=3.8.1

 export OS_BUILD=64

 cmake -G "MSYS Makefiles" ../trunk -DCMAKE_BUILD_TYPE=Release \
 -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD} \
  -DHAVE_STD_ISNAN=1 -DHAVE_LONG_LONG_INT_64=1 -DDISABLE_GEOS_INLINE=ON \
 -DGEOS_ENABLE_TESTS=ON

 make

 Build terminates with:

 ...
 [ 99%] Building CXX object
 tools/astyle/CMakeFiles/astyle.dir/ASLocalizer.cpp.obj
 [100%] Building CXX object
 tools/astyle/CMakeFiles/astyle.dir/ASResource.cpp.obj
 [100%] Building CXX object
 tools/astyle/CMakeFiles/astyle.dir/astyle_main.cpp.obj
 In file included from
 c:/Users/609798/geos-3.8.1/trunk/tools/astyle/astyle_main.cpp:36:
 c:/Users/609798/geos-3.8.1/trunk/tools/astyle/astyle_main.h:74:4: error:
 #error - Use MinGW compiler version 4 or higher
    74 |   #error - Use MinGW compiler version 4 or higher
       |    ^~~~~
 make[2]: *** [tools/astyle/CMakeFiles/astyle.dir/astyle_main.cpp.obj]
 Error 1
 make[1]: *** [tools/astyle/CMakeFiles/astyle.dir/all] Error 2
 make: *** [all] Error 2

 I am using the most current MinGW compiler, 9.2.0.  How do I fix this?

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1061>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #1061: Cannot build GEOS on Windows 10 under MinGW

geos-2
#1061: Cannot build GEOS on Windows 10 under MinGW
-----------------------------+---------------------------
 Reporter:  twrackers        |       Owner:  geos-devel@…
     Type:  defect           |      Status:  new
 Priority:  major            |   Milestone:
Component:  Default          |     Version:  3.6.2
 Severity:  Unassigned       |  Resolution:
 Keywords:  MinGW geos make  |
-----------------------------+---------------------------

Comment (by twrackers):

 Sorry, pasted text in original ticket formatted badly.  I'm new to this
 site.

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1061#comment:1>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #1061: Cannot build GEOS on Windows 10 under MinGW

geos-2
In reply to this post by geos-2
#1061: Cannot build GEOS on Windows 10 under MinGW
-----------------------------+---------------------------
 Reporter:  twrackers        |       Owner:  geos-devel@…
     Type:  defect           |      Status:  new
 Priority:  major            |   Milestone:
Component:  Default          |     Version:  3.6.2
 Severity:  Unassigned       |  Resolution:
 Keywords:  MinGW geos make  |
-----------------------------+---------------------------

Comment (by robe):

 Sorry been distracted of late so just seeing this.  I haven't tested with
 the latest mingw64.  I've been using mingw64 gcc 8.1 and msys2.

 Which CMake are you using?  For some reason I could never get CMake to
 work with the ones I install in mingw as they seemed to be missing the
 msys makefiles.

 So I always used the 32-bit cmake windows binaries from
 https://cmake.org/download/

 I'm currently using the cmake-3.15.4-win32-x86 but the latest on the
 download site
 https://github.com/Kitware/CMake/releases/download/v3.19.1/cmake-3.19.1-win32-x86.zip
 should work fine.

 I'm guessing the 64-bit would work as well.  The main reason I use the
 32-bit is so I can use it under my msys 32-bit /mingw64-w32 builders.


 My build script looks like this very similar to yours.
 {{{
 export GCC_TYPE=81
   cmake -G "MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release
 -DCMAKE_INSTALL_PREFIX:PATH=${PROJECTS}/geos/rel-${GEOS_VER}w${OS_BUILD}${GCC_TYPE}
 -DHAVE_STD_ISNAN=1 -DHAVE_LONG_LONG_INT_64=1 -DDISABLE_GEOS_INLINE=ON  -
 ../${CMAKE_GEOS_VER}
 }}}

 I'm using GCC 8.1

--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1061#comment:2>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel
Reply | Threaded
Open this post in threaded view
|

Re: [GEOS] #1061: Cannot build GEOS on Windows 10 under MinGW

geos-2
In reply to this post by geos-2
#1061: Cannot build GEOS on Windows 10 under MinGW
-----------------------------+---------------------------
 Reporter:  twrackers        |       Owner:  geos-devel@…
     Type:  defect           |      Status:  new
 Priority:  major            |   Milestone:  3.8.2
Component:  Default          |     Version:  3.6.2
 Severity:  Unassigned       |  Resolution:
 Keywords:  MinGW geos make  |
-----------------------------+---------------------------
Changes (by pramsey):

 * milestone:  3.10.0 => 3.8.2


--
Ticket URL: <https://trac.osgeo.org/geos/ticket/1061#comment:4>
GEOS <http://trac.osgeo.org/geos>
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology Suite (JTS).

_______________________________________________
geos-devel mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/geos-devel