我正在为一台旧的MS-DOS机器编写一个程序。我使用Linux(Fedora 19)作为我的开发机器和OpenWatcom 1.9来编译我的代码。
现在,我想将FreeType(2.5.2)用于我的项目,但是我无法使用OpenWatcom。像文档建议的那样运行make setup watcom
不起作用,它仍然会自动检测到unix系统:
$ make setup watcom
FreeType build system -- automatic system detection
The following settings are used:
platform unix
compiler cc
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
If this does not correspond to your system or settings please remove the file
`config.mk' from this directory then read the INSTALL file for help.
Otherwise, simply type `make' again to build the library,
or `make refdoc' to build the API reference (the latter needs python).
cd builds/unix; /bin/sh ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
...
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.status
config.status: creating unix-cc.mk
config.status: creating unix-def.mk
config.status: creating ftconfig.h
config.status: executing libtool commands
make: *** No rule to make target `watcom'. Stop.
使用./configure --host=i286-pc-msdos
也不会改变事物。问题似乎是FreeFype构建系统只与GCC进行交叉编译。我是否真的必须在DosBox中设置整个构建环境,或者FreeType是否可以说服使用OpenWatcom而不是GCC?
不幸的是,互联网上没有太多东西可以找到。几乎看起来没有人再使用DOS ......