Log in or register to post comments

Vuforia and FreeType

November 19, 2013 - 7:38am #1

Hello,

I use Vuforia for 2 months now and I think the work the devs made is truly awesome.

 

I am starting an application which need to display some texts in augmented reality.

For this I plan using the library FreeType, that's why I cross-compiled it following this tutorial:  Cross-compile FreeType for Android ARM.

 

Everything went well until the step I had to use the library.

In order to be sure that the problem was from the library usage I used it on the ImageTargets sample.

 

I just added the following lines in the ImageTargets.cpp:

#include <ft2build.h>
#include FT_FREETYPE_H
... // We are now in a random function
FT_Library    library;
FT_Init_FreeType( &library );

 

 

But I got this error:

undefined reference to 'FT_Init_FreeType'
 
My Android.mk is as in the "ImageTargets" project, exept this part:
LOCAL_PATH := $(call my-dir)
 
 
# FREETYPE #######################################
 
include $(CLEAR_VARS)
LOCAL_MODULE := freetype
LOCAL_SRC_FILES := freetype/lib/libfreetype.a
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/freetype/include $(LOCAL_PATH)/freetype/include/freetype2
include $(PREBUILT_STATIC_LIBRARY)
 
 
# The following section is used for copying the libQCAR.so prebuilt library
# into the appropriate folder (libs/armeabi and libs/armeabi-v7a respectively)
# and setting the include path for library-specific header files.
 
include $(CLEAR_VARS)
LOCAL_MODULE := QCAR-prebuilt
LOCAL_SRC_FILES = ../../../build/lib/$(TARGET_ARCH_ABI)/libQCAR.so
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../../../build/include 
LOCAL_STATIC_LIBRARIES := freetype
include $(PREBUILT_SHARED_LIBRARY)
 
I truly don't get what I am doing wrong. Could someone enlight me, please?
 
Log in or register to post comments