Open GoogleCodeExporter opened 8 years ago
[deleted comment]
Building on Linux is not very different.
just do a
sudo apt-get install build-essential ragel libtool libcairo2-dev
Download the source from the respective git repos as described in
http://indic-text-renderer.googlecode.com/git/HowToBuild.txt
Before building change the jni/harfbuzz-ng/Android.mk code to the following and
it works!!
Great work guys.
------------------
#
# Copyright © 2012 Shiva Kumar H R
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included
# in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
#
# Modified by RKVS Raman
BASE_PATH := $(call my-dir)
LOCAL_PATH:= $(call my-dir)
#############################################################
# build the harfbuzz library
#
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
LOCAL_MODULE_TAGS := optional
LOCAL_CPP_EXTENSION := .cc
LOCAL_CFLAGS := -DHAVE_OT
LOCAL_SRC_FILES:= \
src/hb-blob.cc \
src/hb-buffer.cc \
src/hb-common.cc \
src/hb-fallback-shape.cc \
src/hb-font.cc \
src/hb-ft.cc \
src/hb-ot-layout.cc \
src/hb-ot-map.cc \
src/hb-ot-shape.cc \
src/hb-ot-shape-complex-arabic.cc \
src/hb-ot-shape-complex-indic.cc \
src/hb-ot-shape-complex-misc.cc \
src/hb-ot-shape-normalize.cc \
src/hb-ot-tag.cc \
src/hb-set.cc \
src/hb-shape.cc \
src/hb-tt-font.cc \
src/hb-unicode.cc \
src/hb-shape-plan.cc \
src/hb-ot-shape-fallback.cc \
src/hb-shaper.cc \
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/src $(LOCAL_PATH)/../freetype/include
LOCAL_MODULE:= libharfbuzz
LOCAL_STATIC_LIBRARIES := ft2
include $(BUILD_STATIC_LIBRARY)
#include $(BUILD_SHARED_LIBRARY)
-------------------
Original comment by rkvsra...@gmail.com
on 24 Sep 2012 at 3:56
Do we need to change freetype/Android.mk file too for building in linux?
Original comment by dipendra...@gmail.com
on 20 Jul 2013 at 1:33
[deleted comment]
I'm having this problem on Ubuntu. Please help!
----------------------------------------------
In file included from jni/freetype/src/sfnt/sfnt.c:31:0:
jni/freetype/src/sfnt/pngshim.c:30:17: fatal error: png.h: No such file or
directory
compilation terminated.
make: *** [obj/local/armeabi/objs/ft2/src/sfnt/sfnt.o] Error 1
Original comment by Mr.aungt...@gmail.com
on 5 Sep 2014 at 1:59
I am also having same issue jni/freetype/src/sfnt/pngshim.c:30:17: fatal error:
png.h: No such file or directory
compilation terminated.
any solution??
Original comment by deshmukh...@gmail.com
on 23 Sep 2014 at 5:51
Original issue reported on code.google.com by
mugunth
on 23 Jun 2012 at 12:37