在Windows上用MinGW编译PDCurses
Compiling PDCurses on Windows with MinGW
当我在构建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}
展开为
MAKE
,则设置为make
。所以MAKE
被设置并展开为D:Program Files...
,例如,带有嵌入空格的路径,它被解释为不同的标记D:Program
和Files...
在尝试执行预定的命令:
pathtomake preinstall
尝试执行带有参数Files... preinstall
的程序D:Program
并抱怨没有这样的程序存在。
对于GNU autotools
,建议将工具安装在没有嵌入式空间。