我正在尝试升级到 GNAT GPL 2017(从 2016 年开始)。我在 Windows 8.1 上运行。
一个应用程序使用 gnatcoll.xref。
2016 年,发现于:
gnat/include/gnatcoll/gnatcoll_sqlite.static/gnatcoll-xref.ads
但是,在 2017 安装中找不到该文件。请注意,2017 年的“gnat-...-bin.exe”安装程序包括 gnatcoll,而在 2016 年,它是一个单独的安装程序。
2017 年的 gnatcoll 用户指南 (share/doc/gnatcoll/GNATColl.pdf) 第 25 章说 gnatcoll.xref 应该在那里(它在示例代码中使用)。
还有其他人遇到过这个吗?是否有修复/解决方法?
最佳答案
我通过从源代码安装 gnatcoll 来修复它,覆盖二进制安装。 gnatcoll.xref 现在需要 iconv(2016 年不需要),所以我必须在 mingw32 中安装它,并说服 gnat 使用它。这是一个简短的总结:
mingw32 包:
mingw-w64-i686-make
mingw-w64-i686-iconv
mingw-w64-i686-pkg-config
libiconv-devel
在 mingw32 外壳中:
export PATH=/d/Apps/GNAT-gpl_2017/bin:$PATH
./configure --build=mingw32 --prefix=/d/Apps/GNAT-gpl_2017 --with-iconv=d:/msys32/mingw32/
在 Cygwin shell 中(mingw32 搞砸了,不知道为什么):
make
make install
关于ada - GNAT GPL 2017 gnatcoll.xref 消失了吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44706053/