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

使用cygwin在mapcache中编译core.c时出错,cygwin,mapserver,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/ma

在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\u thread\t和cywgin时,我发现了一些指向apache错误的页面,但不确定apache是否与此有关


你对此有什么想法吗?什么是mapcache论坛?有吗?感谢您的提示,

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


从这个角度来看,cygwin上的Apr似乎不支持线程。目前mapcache不支持无线程环境,因此如果不破解mapcache代码库,您将无能为力。我相信这个变化不会太大,因为源WMS回迁只需要在core中顺序化,而不是并行化。c

apr
安装并尝试了
-DWITH_APACHE=0
,但同样的错误。我用了
cmake-DCMAKE_LEGACY_CYGWIN_WIN32=0-DWITH_SQLITE=0-DWITH_MAPSERVER=1-DMAPSERVER_LIBRARY=“/opt/MAPSERVER/MAPSERVER-6.4.1/build/libmapserver.dll.a”-DCMAKE_PREFIX_PATH=“/opt/MAPSERVER/MAPSERVER-6.4.1;”-DWITH APACHE=0-DWITH_VERSION\u STRING=0-DWITH\u FCGI=0-DWITH\u FCGI=0
,所以不知道,我怎么知道问题是否真的存在,我会在mapserver列表上问这个问题,因为这个模块的开发人员监视这个列表,我不确定他是否看到stackoverflow。可能cygwin apr包的版本太旧了。谢谢Stephen,我在mapserver论坛上读了Andy的回答,我也读了你的帖子,谢谢你,我认为我们应该关注那里的讨论并在这里发布解决方案,这里是链接: