QT调用OpenGL时的LNK错误

在Windows上编译Linux源代码时遇到了一系列LNK错误,涉及freetype、QGLWidget、GLEW和Q3FileDialog。解决方法包括引入相应头文件、拷贝freetype6.dll、添加QtOpenGLd4.lib、glew32.lib和Qt3Supportd4.lib库,并调整项目属性中的Additional Dependencies设置。通过这些步骤,所有链接错误均得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    从网上下载了"VisLink:Revealing Relationships Amongst Visualizations"论文的源代码。该代码是在Linux上写的,而我的系统是window7,自己建立一个VS2008工程后,发现有一堆bug:

 

FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Glyph_To_Bitmap referenced in function "void __cdecl freetype::make_dlist(struct FT_FaceRec_ *,char,unsigned int,unsigned int *)" (?make_dlist@freetype@@YAXPAUFT_FaceRec_@@DIPAI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Glyph referenced in function "void __cdecl freetype::make_dlist(struct FT_FaceRec_ *,char,unsigned int,unsigned int *)" (?make_dlist@freetype@@YAXPAUFT_FaceRec_@@DIPAI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Load_Glyph referenced in function "void __cdecl freetype::make_dlist(struct FT_FaceRec_ *,char,unsigned int,unsigned int *)" (?make_dlist@freetype@@YAXPAUFT_FaceRec_@@DIPAI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Get_Char_Index referenced in function "void __cdecl freetype::make_dlist(struct FT_FaceRec_ *,char,unsigned int,unsigned int *)" (?make_dlist@freetype@@YAXPAUFT_FaceRec_@@DIPAI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Done_FreeType referenced in function "public: void __thiscall freetype::font_data::init(char const *,unsigned int)" (?init@font_data@freetype@@QAEXPBDI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Done_Face referenced in function "public: void __thiscall freetype::font_data::init(char const *,unsigned int)" (?init@font_data@freetype@@QAEXPBDI@Z)

1>FreeType.obj : error LNK2019: unresolved external symbol __imp__FT_Set_Char_Size refere

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值