我似乎无法获得在 Windows 10 (mingw) 上使用 expat 构建 gdb 的正确语法。我下载了外籍人士的源代码,构建起来没有任何问题。 expat.h 文件位于 /usr/local/include 中,expat 库(libexpat.a 和 libexpat.dll.a)最终位于 /usr/local/lib 中
我的配置是: ../gdb-7.7.1/configure --target=arm-linux-gnueabihf --prefix /c/sysGCC/output --with-python --with-expat --with-libexpat-prefix=/usr/local /lib --disable-nls
但无论我尝试什么,我总是会收到一个 make 错误“libexpat 丢失或无法使用”。有人发现错误了吗???
正如 Tom Tromey 指出的那样,
--with-libexpat-prefix
应该是 /usr/local
而不是 /usr/local/lib
,并且 config.log
是失败后调试的绝佳来源。 (主要是发帖将此标记为已回答。)