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

2012-03-29 Thread chenliang wang
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



Chen-liang Wang
___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2012-03-29 Thread Even Rouault
Selon chenliang wang hi181904...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/gdal-dev



___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev


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

2012-03-29 Thread Even Rouault
Selon chenliang wang hi181904...@msn.com:

 Thanks for your reply. I have tried 'make clean' and then rebuild GDAL.
 And I have also modified GNUmakefile ,replaed '${GDAL_ROOTs}' for '.'
 and then 'make clean' and rebuild it again. Unfortunately, I failed
 again. I use command ' ./configure --prefix=. ' Should I need to add
 option '--host=mingw32' or '--without-libtool'?

I have not a mingw environment to test. Is it a compilation problem or a linking
problem ?


 于 2012-3-29 15:52, Even Rouault 写道:
  Selon chenliang wanghi181904...@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@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/gdal-dev
 
 
 
 



___
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev