使用 Cygwin 在 mapcache 中编译错误 core.c



在cygwin中安装mapcache时,make产生:

/opt/mapcache/mapcache-rel-1-2-1/lib/core.c: In function ‘mapcache_prefetch_tiles’:
/opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:3: error: unknown type name ‘apr_thread_t’
   apr_thread_t **threads;
   ^
/opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:3: error: unknown type name ‘apr_threadattr_t’
   apr_threadattr_t *thread_attrs;
   ^
/opt/mapcache/mapcache-rel-1-2-1/lib/core.c:83:7: warning: unused variable ‘nthreads’ [-Wunused-variable]
   int nthreads;
       ^
/opt/mapcache/mapcache-rel-1-2-1/lib/core.c:82:21: warning: unused variable ‘thread_attrs’ [-Wunused-variable]
   apr_threadattr_t *thread_attrs;
                     ^
/opt/mapcache/mapcache-rel-1-2-1/lib/core.c:81:18: warning: unused variable ‘threads’ [-Wunused-variable]
   apr_thread_t **threads;
                  ^

我搜索了有关此错误的一些提示,但没有找到任何内容。寻找apr_thread_t和cywgin,我发现一些页面指向apache的错误,但不确定apache是否在这里有所作为。

请对此有任何想法吗? 什么是地图缓存论坛? 有吗? 感谢您对此的任何提示,

根据

mapcache开发人员从mapserver列表中的帖子更新此答案:

从 http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3C4994179EC7ED6843AAB0A30A1639E7F825143612EF@DGEX2V.dg.deltagroup.com%3E 来看,四月在 cygwin 上似乎不支持线程。目前mapcache不支持非线程环境,因此如果不破解mapcache代码库,您将无能为力。我相信更改不会非常广泛,因为源 WMS 获取只需要按顺序化而不是在 core.c 中并列化

最新更新