Page 2 of 2

Re: Irrlicht on Android.....How do I install this thing?

Posted: Thu Mar 13, 2014 2:47 pm
by Agent_X
reifsnyderb, I didn't mean to make it sound like you had to use the 32-bit version of everything! I was just telling you what my actual settings and installations were. Sorry for the information disconnect :oops:

On a side note, having the ability to boot into both Windows and Linux as needed is great from a developer standpoint. Personally I have 3 hard-drives: The first has Ubuntu, the second Windows, and the third has all my projects, libraries, resources, and stuff...makes it nice to have access to everything from both OS's. Both OS drives have a boot partition and their own flavor of boot-loader, but the Ubuntu drive is set as first in the boot order in the BIOS. This allows me to re-image and/or reinstall as needed without losing anything. I just have to disable the other drive during the re-install process to avoid the boot partition being over-written. No big deal though since I only end up doing that about every 6 months or so. Anyway, this is WAY off-topic.

Re: Irrlicht on Android.....How do I install this thing?

Posted: Sun Oct 18, 2015 12:50 am
by trivtn
My Android.mk (work in Window 7 ) , Hope this help !

Code: Select all

LOCAL_PATH := $(call my-dir)\\..
IRRLICHT_PROJECT_PATH := $(LOCAL_PATH)
 
include $(CLEAR_VARS)
LOCAL_MODULE := Irrlicht
LOCAL_SRC_FILES := $(IRRLICHT_PROJECT_PATH)\\..\\..\\lib\\Android\\libIrrlicht.a
include $(PREBUILT_STATIC_LIBRARY)
 
include $(CLEAR_VARS)
 
LOCAL_MODULE := HelloWorldMobile
 
LOCAL_CFLAGS := -D_IRR_ANDROID_PLATFORM_ -pipe -fno-exceptions -fno-rtti -fstrict-aliasing
 
ifndef NDEBUG
LOCAL_CFLAGS += -g -D_DEBUG
else
LOCAL_CFLAGS += -fexpensive-optimizations -O3
endif
 
ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_CFLAGS += -fno-stack-protector
endif
 
LOCAL_C_INCLUDES := ..\\..\\include
 
LOCAL_SRC_FILES := main.cpp android_tools.cpp
 
LOCAL_LDLIBS := -lEGL -llog -lGLESv1_CM -lGLESv2 -lz -landroid
 
LOCAL_STATIC_LIBRARIES := Irrlicht android_native_app_glue
 
include $(BUILD_SHARED_LIBRARY)
 
$(call import-module,android/native_app_glue)
 
# copy Irrlicht data to assets
 
$(shell mkdir $(IRRLICHT_PROJECT_PATH)\\assets)
$(shell mkdir $(IRRLICHT_PROJECT_PATH)\\assets\\media)
$(shell mkdir $(IRRLICHT_PROJECT_PATH)\\src)
$(shell cp -R $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\Shaders\\ $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\irrlichtlogo3.png $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\dwarf.x $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\dwarf.jpg $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\axe.jpg $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\fonthaettenschweiler.bmp $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)
$(shell cp $(IRRLICHT_PROJECT_PATH)\\..\\..\\media\\bigfont.png $(IRRLICHT_PROJECT_PATH)\\assets\\media\\)