2013年9月8日星期日

How will existing c + + project compiled into android platform . So shared library

Already have a c + + project , now is to compile it into android platform that can be used . So file , how to get ? ? ?
------ Solution ---------------------------------------- ----
dll thing is the windows , android is based on the Linux system , not compatible . To call , you must use the android -platform C + + compiler, such as this one:
https://play.google.com/store/apps/details?id=com.n0n3m4.droidc&hl=en
------ Solution --------- -----------------------------------

.... do not mislead people

Reference Android NDK inside the case . mainly mk file is written ..
------ Solution -------------------- ------------------------
get the source code, using arm-gcc recompile using the NDK, others to write C + + project you gotta so compiled into object files or executable files , or it
------ Solution ----------------------------- ---------------

arm-gcc compiler has been used to generate an executable file, then it will not get up , I will not c + +, great god can say point do ?  
The first goal must be clear, your C + + project in which what functions need to provide certain services to the upper layer called ? can use these functions together, and then compiled into so out to the upper use .
compiled into an executable file , unless it is the source environment to compile a set of systems , or feeling useless ah
------ Solution --------------- -----------------------------

oh , probably understand, thank you very much ! ! !   
But I have a problem, generate . so after the shared library , android how to call it ? By jni do ? What specific steps do ?  

so into the same level source directory libs / armeabi directory, so library with System.loadLibrary loaded first , and then through jni call , jni relevant knowledge can refer to my blog :
http://blog.csdn.net/dr8737010/article/details/7643994
------ For reference only ----------------- ----------------------
packaged into . dll files inside the android called
------ For reference only --- ------------------------------------
up knowledge of the
------ For reference only ---------------------------------------
android NDK
------ For reference only --------------------------------------- < br> new to this stuff , not at all understand the trouble you god can elaborate ah ? I found some of the knowledge about android ndk , I feel mostly to a simple c + + source file and then localize it , and then through the java call . But I was confused now someone else has already written a c + + project ported to android platform, and then through the java call .
------ For reference only -------------------------------------- -

arm-gcc compiler has been used to generate an executable file, then it will not get up , I will not c + +, great god can point you say ?
------ For reference only -------------------------------------- -
first goal must be clear, your C + + project in which what functions need to provide certain services to the upper layer called ? can use these functions together, and then compiled into so out to the upper use .
compiled into an executable file , unless it is the source environment to compile a set of systems , or feeling useless ah
oh , probably understand, thank you very much ! ! !
But I have a problem, generate . so after the shared library , android how to call it ? By jni do ? What specific steps do ?
------ For reference only -------------------------------------- -

oh , probably understand, thank you very much ! ! !
But I have a problem, generate . so after the shared library , android how to call it ? By jni do ? What specific steps do ?
------ For reference only ------------------------------------ ---


understand, thank you very much ! ! !
------ For reference only -------------------------------------- -
. so how files generated ? Advice.
------ For reference only -------------------------------------- -
Yes, I also have this requirement Yeah , out of my dying, it 's true that he is really a hard thing transplantation , the landlord does not know it wood have success , successful communication and communication Yeah
- ---- For reference only ---------------------------------------
< br /> have used arm-gcc compiler generates an executable file, then it will not get up , I will not c + +, great god can point you say ?   pro , I was engaged in it, it was stuck in here , how did you compile the c + + so , my c + + is more than one file, but a functional module

没有评论:

发表评论