[postgis-tickets] [PostGIS] #2333: Can't compile under mingw64 (neither mingw64 or mingw32)
PostGIS
trac at osgeo.org
Tue May 21 06:49:07 PDT 2013
#2333: Can't compile under mingw64 (neither mingw64 or mingw32)
--------------------+-------------------------------------------------------
Reporter: robe | Owner: colivier
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: sfcgal | Version: trunk
Keywords: |
--------------------+-------------------------------------------------------
Comment(by robe):
here is what it looks like at the end before the linker chokes:
{{{
:
[100%] Building CXX object
src/CMakeFiles/SFCGAL.dir/SFCGAL/version.cpp.obj
cd /C/ming32/projects/CGAL/SFCGAL-0.2/build/mingw/src &&
/c/ming32/mingw32/bin/g++.exe -DBOOST_ALL_NO_LIB -DBOOST_THREAD_USE_LIB
-DSFCGAL_EXPORTS -Wall -Wno-long-long -pedantic
@CMakeFiles/SFCGAL.dir/includes_CXX.rsp -frounding-math -o
CMakeFiles/SFCGAL.dir/SFCGAL/version.cpp.obj -c
/C/ming32/projects/CGAL/SFCGAL-0.2/src/SFCGAL/version.cpp
Linking CXX shared library libSFCGAL.dll
cd /C/ming32/projects/CGAL/SFCGAL-0.2/build/mingw/src &&
/c/ming32/cmake-2.8.10.2-win32-x86/bin/cmake.exe -E remove -f
CMakeFiles/SFCGAL.dir/objects.a
cd /C/ming32/projects/CGAL/SFCGAL-0.2/build/mingw/src &&
/c/ming32/mingw32/bin/ar.exe cr CMakeFiles/SFCGAL.dir/objects.a
@CMakeFiles/SFCGAL.dir/objects1.rsp
cd /C/ming32/projects/CGAL/SFCGAL-0.2/build/mingw/src &&
/c/ming32/mingw32/bin/g++.exe -shared -o libSFCGAL.dll -Wl,--out-
implib,libSFCGAL.dll.a -Wl,--major-image-version,0,--minor-image-version,0
-Wl,--whole-archive CMakeFiles/SFCGAL.dir/objects.a -Wl,--no-whole-archive
-L/c/ming32/projects/CGAL/rel-cgal-4.2w32/lib -L/c/ming32/projects/boost
/rel-1_49_0w32/lib /c/ming32/projects/CGAL/rel-
gmp-5.1.1w32/bin/libgmp-10.dll /c/ming32/projects/CGAL/rel-
mpfr-3.1.2w32/lib/libmpfr.dll.a /c/ming32/projects/CGAL/rel-
cgal-4.2w32/lib/libCGAL.a /c/ming32/projects/CGAL/rel-
cgal-4.2w32/lib/libCGAL_Core.a /c/ming32/projects/boost/rel-1_49_0w32/lib
/libboost_date_time-mgw45-mt-1_49.a /c/ming32/projects/boost/rel-
1_49_0w32/lib/libboost_system-mgw45-mt-1_49.a /c/ming32/projects/boost
/rel-1_49_0w32/lib/libboost_thread-mgw45-mt-1_49.a
/c/ming32/projects/boost/rel-1_49_0w32/lib/libboost_serialization-
mgw45-mt-1_49.a -lkernel32 -luser32 -lgdi32 -lwinspool -lshell32 -lole32
-loleaut32 -luuid -lcomdlg32 -ladvapi32
}}}
This one is trying to use 1.49 again. I've been flip flopping between 1.49
and 1.53 with much the same error. Unfortunately I'm not having much luck
getting boost to compile dynamically under mingw if I leave out static --
it naturally compiles statically and if I put in explicit dynamic I get a
whole slew of errors at the boost compile phase.
For pgrouting I use 1.46 compiled statically and CGAL 3.9 and that seems
to work fine together.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2333#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