mingw32-make尝试创建子文件夹.lib非法名称 [英] mingw32-make tries to create subfolder .lib an illegal name

查看:150
本文介绍了mingw32-make尝试创建子文件夹.lib非法名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译一个需要freetype库的项目,所以我想出了如何将freetype安装到mingw32上,更安全的方法是对其进行编译.

I am trying to compile a project that required freetype library so I was figuring out how to install freetype to mingw32 and the more safer way is to compile it.

无论如何,问题出在编译freetype-2.4.11 我进入了msys中提供的bash 我在freetype的主目录中做了./configure,一切看起来都很好 接下来,我做了mingw32-make从而导致了问题

Anyway the problem was compiling freetype-2.4.11 I went into bash provided in msys I did ./configure within freetype's main dir and everything looks fine next I did mingw32-make which created the problem

libtool: compile:  gcc -pedantic -ansi -Ig:/Downloads/freetype-2.4.11/objs -I./b
uilds/unix -Ig:/Downloads/freetype-2.4.11/include -c -Wall -g -O2 "-DFT_CONFIG_C
ONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" g
:/Downloads/freetype-2.4.11/src/base/ftsystem.c  -DDLL_EXPORT -DPIC -o g:/Downlo
ads/freetype-2.4.11/objs/.libs/ftsystem.o
Assembler messages:
Fatal error: can't create g:/Downloads/freetype-2.4.11/objs/.libs/ftsystem.o: No
such file or directory
g:/Downloads/freetype-2.4.11/builds/freetype.mk:198: recipe for target 'g:/Downl
oads/freetype-2.4.11/objs/ftsystem.lo' failed
mingw32-make[4]: *** [g:/Downloads/freetype-2.4.11/objs/ftsystem.lo] Error 1

g:/Downloads/freetype-2.4.11/objs/.libs/ftsystem.o似乎正在尝试使用Windows中非法的目录.

g:/Downloads/freetype-2.4.11/objs/.libs/ftsystem.o seemed like it is trying to use a directory that is illegal in windows.

预先感谢

推荐答案

尝试改用make(即MSYS发行版中的那个),并避免将来使用mingw32-make(来自MinGW发行版中)来保存自己时间和神经.从MinGW Wiki摘录:

Try to use make instead (i.e. the one from MSYS distribution), and avoid using mingw32-make (from MinGW distribution) in the future to save yourself time and nerves. Extract from MinGW Wiki:

make和mingw32-make有什么区别?

make的本机"(即:依赖于MSVCRT)端口缺少某些功能,并且由于Win32上缺少POSIX,因此已对其进行了修改. MSYS发行版中还存在一个依赖于MSYS运行时的make版本.该端口的运行与make预期的运行相同,并且在执行过程中减少了麻烦.基于此,MinGW开发人员/维护人员/打包人员决定最好重命名本机版本,以便可以同时显示本机"版本和MSYS版本,而不会出现文件名冲突.

The "native" (i.e.: MSVCRT dependent) port of make is lacking in some functionality and has modified functionality due to the lack of POSIX on Win32. There also exists a version of make in the MSYS distribution that is dependent on the MSYS runtime. This port operates more as make was intended to operate and gives less headaches during execution. Based on this, the MinGW developers/maintainers/packagers decided it would be best to rename the native version so that both the "native" version and the MSYS version could be present at the same time without file name collision.

这篇关于mingw32-make尝试创建子文件夹.lib非法名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆