在Windows上用MinGW编译PDCurses

Compiling PDCurses on Windows with MinGW

本文关键字:编译 PDCurses MinGW 上用 Windows      更新时间:2023-10-16

当我在构建nmcurses-5.9时执行。/configure时,我得到了最奇怪的错误

问题是当我试图运行

CC="gcc -m32" LD="ld -m32" ./configure 
--prefix=/mingw 
--without-cxx-binding 
--without-ada 
--enable-warnings 
--enable-assertions 
--enable-reentrant 
--with-debug 
--with-normal 
--disable-home-terminfo 
--enable-sp-funcs 
--enable-term-driver 
--enable-interop 
--with-pthread

我得到的错误是

./configure: line 21016: D:Program: No such file or directory

${MAKE:-make} preinstall

我正在使用msys在MinGW中构建这个。

${MAKE:-make} preinstall中,表达式${MAKE:-make}展开为

如果设置了shell变量MAKE,则设置为make

所以MAKE被设置并展开为D:Program Files...,例如,带有嵌入空格的路径,它被解释为不同的标记D:ProgramFiles...在尝试执行预定的命令:

pathtomake preinstall

尝试执行带有参数Files... preinstall的程序D:Program并抱怨没有这样的程序存在。

对于GNU autotools,建议将工具安装在没有嵌入式空间。