zoukankan      html  css  js  c++  java
  • Eclipse中移除native层编译支持

    1. .project 文件

    删除全部包括 org.eclipse.cdt前缀的xml结点元素。以下是一个包括cdt的完整编译配置文件。

    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
    	<name>xapp</name>
    	<comment></comment>
    	<projects>
    	</projects>
    	<buildSpec>
    		<buildCommand>
    			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
    			<triggers></triggers>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>org.eclipse.jdt.core.javabuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>com.android.ide.eclipse.adt.ApkBuilder</name>
    			<arguments>
    			</arguments>
    		</buildCommand>
    		<buildCommand>
    			<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
    			<triggers>full,incremental,</triggers>
    			<arguments>
    			</arguments>
    		</buildCommand>
    	</buildSpec>
    	<natures>
    		<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
    		<nature>org.eclipse.jdt.core.javanature</nature>
    		<nature>org.eclipse.cdt.core.cnature</nature>
    		<nature>org.eclipse.cdt.core.ccnature</nature>
    		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
    		<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
    	</natures>
    </projectDescription>
    

    buildCommand。和natuve中的那些元素都要删掉。


    2. 删掉.cproject文件,这个文件是C/C++编译配置。


    3. 删掉与src/, res/同级文件夹的jni,以及jni下的armeabi


    4. 将project从工作区间中移除。然后再次导入。

    这一步非常重要,工作区间缓存了每一个project编译结果。仅仅有这样上面的全部改动才干生效。


    refhttp://pilcrowpipe.blogspot.com/2011/12/removing-native-support-from-android.html


  • 相关阅读:
    hdu 1253
    poj 2531 Network Saboteur
    rwkj 1501 数据结构:图的DFS遍历
    rwkj 1306 素数========拓展
    nyist 91 阶乘之和
    nyist 65 另一种阶乘问题
    nyist 31 5个数求最值
    nyist 22 素数求和
    向量 vector
    字符串 统计 ,删除,连接,变换
  • 原文地址:https://www.cnblogs.com/gavanwanggw/p/6803559.html
Copyright © 2011-2022 走看看