problem porting ttf library to android.

Aici puteti sta la un pahar de vorba cu ceilalti membri despre orice subiect.

problem porting ttf library to android.

Mesajde rolandbaker » 20 Apr 2017, 15:59

hello all.
I'm having some trouble with porting the ttf library to android.
I installed the source/header/android.mk file in it's own SDL2_ttf folder in jni (sdl2/androidprojects/jni/sdl2_ttf). So glfont.c , sdl_ttf.c, sdl_ttf.h,showfont.c , and ft2build.h inside sdl2_ttf. Then inside the sdl2_ttf directory I added the freetype folder with the config , internal , and src folders .
I added the src folder to the freetype folder , as I think that was needed. it was first in the external folder?

i changed the jni/src/android.mk to include the local paths:
LOCAL_C_INCLUDES := $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/../SDL2_image $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/../SDL2_mixer $(LOCAL_PATH)/$(SDL_PATH)/include $(LOCAL_PATH)/../SDL2_ttf
and local shared libraries:
LOCAL_SHARED_LIBRARIES := SDL2 SDL2_image SDL2_mixer SDL2_ttf
I also updated the android.mk file in jni/sdl2_ttf :
FREETYPE_LIBRARY_PATH := ../freetype
But I get this error when running ndk-build:
no rule to make target /src/autofit/autofit.c , needed by obj/local/armeabi/objs/SDl2_ttf //src/autofit/autofit.o stop.
what did I do wrong ?

Thanks.
I didn't find the right solution from the internet.
References:
- http://www.cplusplus.com/forum/general/213684/


- Animated Consumer Insight Video Examples
rolandbaker
Junior
Junior
 
Mesaje: 29
Membru din: 25 Feb 2017, 15:38
Judet: Vaslui

Înapoi la Discutii

Cine este conectat

Utilizatorii ce navighează pe acest forum: Niciun utilizator înregistrat şi 2 vizitatori

cron