0
回答
mingw不能编译?

按照README里面的说明来编译Dao 2.0,编译总是出错,使用如下命令:

make -f Makefile.daomake mingw

错误提示:

cd ./tools/daomake/bootstrap && make mingw
make[1]: Entering directory `/d/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
make DEBUG= SYSCFLAGS="-DWIN32" SYSLIBS="-lwinmm" EXESUFFIX=".exe"
make[2]: Entering directory `/d/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
cc -c  -O0 -DWIN32 -DDAO_WITH_REGEX -I../../../kernel ../../../kernel/daoConst.c -o daoConst.o
make[2]: cc: Command not found
make[2]: *** [daoConst.o] Error 127
make[2]: Leaving directory `/d/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
make[1]: *** [mingw] Error 2
make[1]: Leaving directory `/d/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
make: *** [mingw] Error 2

mingw32-make -f Makefile.daomake mingw 

错误提示:

cd ./tools/daomake/bootstrap && C:/msys/1.0/mingw/bin/mingw32-make mingw
mingw32-make[1]: Entering directory 'd:/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
C:/msys/1.0/mingw/bin/mingw32-make DEBUG= SYSCFLAGS="-DWIN32" SYSLIBS="-lwinmm" EXESUFFIX=".exe"
mingw32-make[2]: Entering directory 'd:/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
cc -c  -O0 -DWIN32 SYSLIBS=-lwinmm EXESUFFIX=.exe -DDAO_WITH_REGEX -I../../../kernel ../../../kernel/daoConst.c -o daoConst.o
makefile:74: recipe for target 'daoConst.o' failed
process_begin: CreateProcess(NULL, cc -c -O0 -DWIN32 SYSLIBS=-lwinmm EXESUFFIX=.exe -DDAO_WITH_REGEX -I../../../kernel ../../../kernel/daoConst.c -o daoConst.o, ...) failed.
make (e=2): 系统找不到指定的文件。
mingw32-make[2]: *** [daoConst.o] Error 2
mingw32-make[2]: Leaving directory 'd:/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
makefile:130: recipe for target 'mingw' failed
mingw32-make[1]: *** [mingw] Error 2
mingw32-make[1]: Leaving directory 'd:/dao-2.0-beta1-2013-05-28/tools/daomake/bootstrap'
Makefile.daomake:48: recipe for target 'mingw' failed
mingw32-make: *** [mingw] Error 2



举报
Carols
发帖于5年前 0回/1K+阅
顶部