[gdal-dev] fail to build gdal 1.9 with minGW

Even Rouault even.rouault at mines-paris.org
Thu Mar 29 03:52:40 EDT 2012


Selon chenliang wang <hi181904665 at msn.com>:

> hi:
> I failed to build gdal 1.9 with minGW. I modified 'cpl_multiproc.h' with
> the patch.But there are still errors with build:cpl_multiproc.cpp:73:
> undefined reference to `CPLCreateOrAcquireMutex' .Pls help me out.Thanks!
>
-------------------------------------------------------------------------------
> #if defined(WIN32) && !defined(CPL_MULTIPROC_STUB)
> # define CPL_MULTIPROC_WIN32
> /* MinGW can have pthread support, so disable it to avoid issues */
> /* in cpl_multiproc.cpp */
> # undef CPL_MULTIPROC_PTHREAD
> #endif
>
------------------------------------------------------------------------------------

Did you 'make clean' after applying the patch and before rebuilding GDAL ? The
reporter of https://trac.osgeo.org/gdal/ticket/4430 confirmed that the above
patch fixed building for him.

>
>
> Chen-liang Wang
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>




More information about the gdal-dev mailing list