Opened 4 years ago

Closed 4 years ago

#1060 closed defect (duplicate)

Cannot build GEOS on Windows 10 under MinGW

Reported by: twrackers Owned by: geos-devel@…
Priority: major Milestone:
Component: Default Version: 3.6.2
Severity: Unassigned Keywords: MinGW geos make
Cc:

Description

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?

Change History (1)

comment:1 by twrackers, 4 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.