能够交叉编译Freetype2,现在呢? [英] Was able to cross compile Freetype2, now what?

查看:222
本文介绍了能够交叉编译Freetype2,现在呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能够使用以下指南为Android交叉编译Freetype2: https://bitbucket .org/javafxports/android/wiki/Building%20Freetype .现在如何将其包含在我的项目中?我需要通过修改后的步骤来重做它吗?

I was able to cross compile Freetype2 for android using this guide: https://bitbucket.org/javafxports/android/wiki/Building%20Freetype. How do now include it in my project? Do I need to redo it with a modified step, or what?

推荐答案

我只是想发布此内容,以防其他人遇到与我相同的问题.

I just wanted to post this in case someone else has the same problems as me.

我找到了本教程: https://en.wikibooks.org/wiki/OpenGL_Programming/Installation/Android_NDK#FreeType 然后跟着然后,将创建的freetype文件夹复制到项目中的jni文件夹中.然后,我将freetype文件夹中的Android.mk文件修改为:

I found this tutorial: https://en.wikibooks.org/wiki/OpenGL_Programming/Installation/Android_NDK#FreeType and followed it. Then I copied the freetype folder created to my jni folder in my project. I then modified the Android.mk file in the freetype folder to be this:

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := freetype
LOCAL_SRC_FILES := lib/libfreetype.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include/freetyp2 \
 $(LOCAL_PATH)/include/freetype2/freetype \
 $(LOCAL_PATH)/include/freetype2/freetype/config

include $(PREBUILT_STATIC_LIBRARY)

和我的本地Android.mk文件具有以下内容:

and my local Android.mk file to have this:

LOCAL_C_INCLUDES := freetype/include/freetype2/ \
 freetype/include/freetype2/freetype \
 freetype/include/freetype2/freetype/config
LOCAL_STATIC_LIBRARIES := freetype

花点时间,但是终于可以了!

Took a while, but it finally works!

这篇关于能够交叉编译Freetype2,现在呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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