简体   繁体   English

我们如何将freetype库链接到Embedded Projects?

[英]How can we link freetype library to Embedded Projects?

I am a newbie to freetype and embedded system too. 我也是freetype和嵌入式系统的新手。 I want to use freetype functions in my embedded application (Details are given below). 我想在我的嵌入式应用程序中使用freetype函数(下面提供了详细信息)。

At first i tried the instructions given in " http://www.freetype.org/freetype2/docs/tutorial/step1.html ". 首先,我尝试了“ http://www.freetype.org/freetype2/docs/tutorial/step1.html ”中给出的说明。

I could successfully complete ac project as in "example1.c" (given in freetype tutorial) in ubuntu, which can display the raster image created by the freetype . 我可以像ubuntu的“ example1.c”(在freetype教程中给出的那样)成功完成ac项目,它可以显示由freetype创建的光栅图像。

But I don't know how to link freetype library to keil ide or coocox ide. 但是我不知道如何将自由类型库链接到keil ide或coocox ide。

I have freetype 2.5.5 source as in http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz 我有freetype 2.5.5源,如http://download.savannah.gnu.org/releases/freetype/freetype-2.5.5.tar.gz

I added the include directory to coocox include directory. 我将包含目录添加到了coocox包含目录。 But it created error "undefined reference to `FT_Init_FreeType' " etc. 但是它创建了错误“未定义对FT_Init_FreeType的引用”等。

I tried copying "libfreetype.so" file from ubuntu and linked it in the coocox project. 我尝试从ubuntu复制“ libfreetype.so”文件,并将其链接到coocox项目中。 Also made include path to freetype include directory. 还使包含路径指向freetype包含目录。 The header files are included.But it cannot identify the library. 头文件已包含在内,但无法识别库。

Now I guess the library files are different for different toolchain. 现在,我猜对于不同的工具链,库文件是不同的。 I read the documentation in the downloaded source. 我阅读了下载源中的文档。 Unfortunately didn't understand how to create library file for arm toolchain. 不幸的是不了解如何为arm工具链创建库文件。

Can you please explain the way to link freetype to either keil or Coocox ide? 您能否解释将自由类型链接到keil或Coocox ide的方法?

Project Details: Controller : LPC1768 IDE : Keil uvision 4, uvision 5 or CoIDE 1.3.1 everyone 项目详细信息:控制器:LPC1768 IDE:Keil uvision 4,uvision 5或CoIDE 1.3.1每个人

Thank you, 谢谢,

Tintu Thomas 廷图·托马斯(Tintu Thomas)

I got a solution. 我有解决办法。 It is freetype amalgamate project. 这是自由型融合项目。 I think it is better than a library. 我认为这比图书馆要好。 Here all the source files are amalgamated. 这里所有源文件都合并了。

Here is the link freetype amalgamate 这是链接freetype amalgamate

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使BOLD文本在Flash CS5中以“经典动态文本”(嵌入字体)工作? - How can we get BOLD text to work in Classic Dynamic Text (embedded font) in Flash CS5? 如何使用freetype从“Segoe UI Emoji”渲染彩色字形? - How can I render colored glyphs from “Segoe UI Emoji” with freetype? 光栅器实际上是什么? Freetype是Linux操作系统的一部分还是单独的库? - What actually is a rasterizer? and is freetype part of linux OS or separate library? 如何在freetype中绘制粗体和斜体字体 - how to draw font with bold and italic in freetype 如何在FreeType中将笛卡尔坐标转换为图像坐标 - How to convert the Cartesian coordinate to image coordinate in FreeType 如何在 Rust 中使用自由类型绑定? - How do I use freetype bindings in Rust? 嵌入时我们可以使用与导入时相同的方式使用Google字体吗? - Can we use Google Fonts when embedded in the same way as when we import 我们可以使用 Ghostscript 将包含嵌入式 Fonts 的 PDF 转换为 NonEmbedded(标准字体)PDF 文档吗? - can we convert PDF containing Embedded Fonts to NonEmbedded(standard fonts) PDF document using Ghostscript? 如何将 Glyphs 沿基线与 Freetype 对齐? - How do I align Glyphs along the baseline with Freetype? 如何在 Freetype 中呈现正在运行的文本 animation? - How do I render running text animation in Freetype?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM