entire source code. If it is executed in a sub-directory under the root directory of the Android source code, it will start from this sub-directory and go up to a directory until the root directory to find whether there is an Android. mk file. If so, compile the modules described in the Android. mk file using the make command.
Mmm: It can be followed by one or more directories. It is the compilation module
\ intermediates \ classes \ debug) to classpath. In actual development, if you cannot find the class, add classpath on your own. Note that the classpath is separated by semicolons. In addition, if you think it is too troublesome to knock so many commands each time, you can also configure the classpath above to the system's environment variables. As for how to get it, I believe everyone is OK! This is not detailed here.
4. Implement the native METHOD
Create a hello. c file in the jni directory t
dependency library for Android:
The official documentation is as follows:
(Note this might not be the same as the previous section, but you can do it by navigating to the proj. android directory and run thebuild_native.py scripts .)
The general meaning is that when you create an empty cocos2d-x project first to compile its library, how to compile this library, can enter proj. run the build_native.py script in the android folder.
Cmd enters dos. Cd C: \ cocos2d-x-3.0 \ templates \ cpp-templa
transplantation. The C/C ++ library can be easily used on other embedded platforms. Especially some apps with high performance requirements, such as mobile games, are generally developed using the Native language.
3. Windows environment Configuration(1) download NDK Development Kit: From the ndk-7, Google has improved the ndk operation, do not need to use cygwin to cross-compile, which greatly improves our development speed. Now the NDK has been output to r10e, directly from the kernel:
(2) c
Cut Edge: directly search (mark the reverse side), find the mark, and V is the cut edge if the time stamp U-> V is greater than U.
For (I = head [u]; I! =-1; I = edge [I]. next) {If (edge [I]. mk) continue; edge [I ^ 1]. mk = 1; V = edge [I]. v; If (! Mark [v]) DFS (V); Dep [u] = f_min (DEP [u], DEP [v]); If (DEP [v]> now [u]) {// edge [I] is a cut edge} edge [I ^ 1].
Reference: http://blog.csdn.net/belyxiong/article/details/5875993 adds underlying core services for Android
The information in the blog post is incomplete and has a small problem. This article will make some preparations for the entire process and complete and correct the content.
User @ Ubuntu:/$ sudo ADB Shell
Root @ Android:/# cd system/lib --> service library file
Root @ Android:/# cd system/bin --> Service Executable File
Root @ Android:/# Cat init. RC --> service configuration file
Servi
^ = m;} while (x Return X;}Mixed Position Selection:ABCD efgh ijkl mnop-> AABB ccdd eeff gghh iijj kkkll mmnn ooppUnsigned PS (unsigned X){Unsigned T;T = (x ^ (x> 8) 0x0000ff00; X = x ^ t ^ (T T = (x ^ (x> 4) 0x00f000f0; X = x ^ t ^ (T T = (x ^ (x> 2) 0x0c0c0c0c; X = x ^ t ^ (T T = (x ^ (x >>1) 0x22222222; X = x ^ t ^ (T Return X;}Bit compression:Select and right shift the 1-bit corresponding to the mask M, for example, compress (abcdefgh, 01010101) = 0000 bdfhCompress_left (x, m) operation
com_hello_jnitest_nadd.o
Obtain the libnadd. So file.
The preceding steps are completed in Ubuntu.
5. Push the corresponding dynamic library file to system/lib of AVD: ADB push libnadd. So/system/lib. If the read-only file system error is prompted, run the ADB remount command.
ADB push libnadd. So/system/lib
6. Run the original application in cmdsh.
The preceding steps are completed in windows.
You can also use the second method to compile the so file generated in step 1 into the APK package. Y
show fields from `yejr`2 Query show table status like 'yejr'2 Query SELECT /*!40001 SQL_NO_CACHE */ * FROM `yejr`2 Quit
For more information about the isolation level, see the manual 13.2.10.3. InnoDB and transaction isolation level, or the previous article: [InnoDB series]-instance parsing Innodb isolation level and lock mode.
AboutSTART TRANSACTION WITH CONSISTENT SNAPSHOTYou can refer to the following manual description:
The WITH CONSISTENT SNAPSHOT clause starts a consiste
name is prod )Access IP: port, default password omadmin:omd login650) this.width=650; "Width=" 554 "height=" "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>1.2Client Installation1.2.1Reference Documentshttp://www.zouliblog.cn/?p=103 (Nagios based on OMD- basic configuration)1.2.2installationAgent(Yuminstallation)# Note Check the version and service side of the same,
:
**************************************** ********************
You are attempting to build on a 32-bit system.
Only 64-bit build environments are supported beyond froyo/2.2.
**************************************** ********************
This is because the CPU length is detected in makefile. I will comment out the following in build/CORE/Main. mk:
# Ifneq (64, $ (findstring 64, $ (build_arch )))
# $ (Warning ************************************
, create the ASM soft link to the ASM-arm. CD. /include Rm-f asm ln-s ASM-$2 asmfi # Delete the old arch link Rm-f asm-$2/arch under the target platform # if the length of the 6th parameter is 0 or its value is null, create a link from arch-$3 to ASM-$2. For command #". /mkconfig smdk2410 arm ARM920T smdk2410 null s3c24x0 "# $6 = s3c24x0 not empty #$3 = ARM920T $2 = arm # The final command executed is" ln-s arch-s3c24x0 ASM- ARM/arch "If [-z" $6 "-o" $6 "=" null "]; then ln-S $ {lnprefix} arch-$
= (hd0, 0)/GRUB/splash.xpm.gzHiddenmenuTitle centos (2.6.18-128. EL5)Root (hd0, 0)Kernel/vmlinuz-2.6.18-128.el5 Ro root =/dev/volgroup00/logvol00rhgb quietInitrd/initrd-2.6.18-128.el5.imgTitle xen 3.3.1/xenlinux 2.6.18Kernel/xen-3.3.1.gzModule/vmlinuz-2.6.18.8-xen Ro console = tty0Module/initrd-2.6.18.8-xen.img
Restart: a warning is displayed during the restart, indicating that the current simulation does not support memory accesses. We recommend that you change/lib/TLS to/lib/TLS. Disabled. St
the code segment, and the _ start symbol in the file is the entry point. (Note: The symbol itself is an absolute address. During the link, the connector replaces the symbol with an absolute address. The _ start symbol indicates that the absolute address is the loading address of uboot in Ram, in the config. MK file definition: text_base = 0x33f80000 ).
Well, let's talk a little bit about it. Go to the start. s file and start the first stage of uboot.
The last translation of the official Android compilation system manual (http://blog.csdn.net/a345017062/archive/2010/12/24/6096795.aspx), the original is relatively simple, after the original translation, the actual use of a more in-depth understanding, Here detailed record, what to remember.
Local_module_tags
It may have four values: User, Eng, tests, and optional. This value determines the mode in which the module will be compiled.
When compiling a module (whether C/C ++ or Java), if you want
/packaging/systemimage_intermediates/system. img
Install system FS image: Out/target/product/generic/system. img
Target RAM disk: Out/target/product/generic/ramdisk. img
Target userdata FS image: Out/target/product/generic/userdata. img
Installed file list: Out/target/product/generic/installed-files.txt
2. problems that may occur during compilation.
Question 1: You are attempting to build on a 32-bit system.Modify the main. mk file in the build/Core
_ included_jnitest
# DEFINE _ included_jnitest
# Ifdef _ cplusplus
Extern "C "{
# Endif
/*
* Class: jnitest
* Method: plus
* Signature: (ii) I
*/
Jniexport jint jnicall java_jnitest_plus
(Jnienv *, jobject, jint, jint );
# Ifdef _ cplusplus
}
# Endif
# Endif
The signature corresponding to the native function in Java is automatically generated here. You can use it in C code. Xiao Jin: Remember to change the package name
If java_org_eshock_jnitest_jnitest_plus is inconsistent w
configurations, But it supports resumable data transfer.
2. Compile the android source code
Before compiling the android source code, you need to modify several files.
1. Because the android source code is compiled on a 64-bit PC by default, You need to modify the following files:
/External/clearsilver/cgi/Android. mk
/External/clearsilver/CS/Android. mk
/External/clearsilver/Java-JNI/Android.
jobject. one exception is the String class, whose corresponding classes are jstring Ljava/lang/String; String jstring Ljava/net/Socket; Socket jobject if the JAVA function is located in an embedded class, $ is used as the separator between class names. For example, "(Ljava/lang/String; Landroid/OS/FileUtils $ FileStatus;) Z" 2 ). register for different native functions in the class • Custom registerNativeMethods functions: static int functions (JNIEnv * env, const char * className, JNINativeMet
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.