[英]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.