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

时间:2015-01-03 13:35:35

标签: cygwin mapserver

在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论坛是什么?有没有?感谢您对此提出的任何提示,

1 个答案:

答案 0 :(得分:1)

由mapcache的开发者根据mapserver列表中的帖子更新此答案:

http://mail-archives.apache.org/mod_mbox/apr-dev/201209.mbox/%3C4994179EC7ED6843AAB0A30A1639E7F825143612EF@DGEX2V.dg.deltagroup.com%3E开始,似乎4月份cygwin不支持线程。目前mapcache不支持无​​线环境,因此如果不破解mapcache代码库,你无能为力。我相信这种变化不会非常广泛,因为源WMS提取只需要在core.c中进行顺序化而不是parralelized。

相关问题