freetype-gl LNK1104无法打开文件'Debugfreetype-gl.lib'

freetype-gl LNK1104 cannot open file 'Debugfreetype-gl.lib'

本文关键字:freetype-gl Debug lib 文件 LNK1104      更新时间:2023-10-16

在过去的一个月里,我一直在努力在freetype-gl项目上运行cmake生成的示例解决方案中的项目。

https://code.google.com/p/freetype-gl/

我正在运行Visual Studio 14,当我尝试单独构建"ALL_BUILD"或任何其他项目时,我得到同样的错误:

LNK1104无法打开"Debug freettype -gl.lib"文件

这真的让我很沮丧,我已经找到了freetype-gl。我已经把它复制到/Debug/,但是Visual Studio仍然"无法打开文件"。

https://i.stack.imgur.com/KcJie.png

我真正注意到的唯一一件事是文件夹是windows锁定只读的,我不能从文件夹中删除属性…我也没有成功地使用cmd.exe中的属性命令。

您可以尝试使用最新版本https://github.com/rougier/freetype-gl

我是这样处理库的

首先,我将include和库目录添加到'configuration properties->vc++ directories'中,然后在'configuration properties->Linker->Input->Additional dependencies '中添加库文件的名称,在你的例子中是' freettype .lib'。

希望有帮助!