Thread
:
ApkEnv support module development
View Single Post
liar
2013-09-18 , 22:02
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#
159
for anybody who wants to experiment:
a simple way to use nitdroid binaries (kind of):
* fetch a copy of nitdroid, unpack it on your n9
* setup an android build environment (preferably matching the nitdroid version)
* cd into the folder where the android source code is of the binary you want to use
* rename the "main" function to something else (eg. app_process_main)
* setup a makefile to compile the project into a so library
* then you can load that library using android_dlopen inside an harmattan application and load the renamed "main" function using android_dlsym, also change the android linker you're using to find the libraries inside your nitdroid environment, so that the project you're trying to use gets properly linked against it's dependencies
EDIT: the reason you need to rename the main function is that gcc treats functions differently if they are named main.
i hope this is helpful
Last edited by liar; 2013-09-19 at
14:09
.
Quote & Reply
|
The Following 3 Users Say Thank You to liar For This Useful Post:
Hariainm
,
Kozzi
,
nokiabot
liar
View Public Profile
Send a private message to liar
Find all posts by liar