build

三、编译第一步 make xxx_defconfig——Makefile.build 脚本

我的未来我决定 提交于 2020-02-23 05:15:48
3.1 上章分析回顾 3.1 上章分析出的参数 3.1.1 变量 MAKECMDGOALS = xxx_defconfig KBUILD_EXTMOD = version_h := include/generated/version_autogenerated.h timestamp_h := include/generated/timestamp_autogenerated.h no-dot-config-targets := clean clobber mrproper distclean help %docs check% coccicheck ubootversion backup tests config-targets := 1 mixed-targets := 0 dot-config := 1 KBUILD_SRC = build := -f ./scripts/Makefile.build obj 3.1.2 环境变量 KBUILD_DEFCONFIG := sandbox_defconfig KBUILD_KCONFIG = 3.1.3 需要进行分析的地方 (1)scripts_basic 目标执行的命令   make -f ./scripts/Makefile.build obj=scripts/basic (2)%config 目标执行的命令   make

Multiple commands produce \"*.framework\"

会有一股神秘感。 提交于 2020-02-22 23:45:57
参考链接 记录个问题,这是xcode10后新build系统导致的,新系统帮我们检查了很多东西,最优化我们的构建, 两种方案 1.用旧的系统(不推荐) 2.这个是build setting->build phases->[CP] Embed Pods Frameworks这里面output files里多了一行,删掉即可 这东西要灵活,注意看提示信息 转自: https://www.jianshu.com/p/0431736772cd 来源: https://www.cnblogs.com/huangzs/p/11527667.html

初学Android的几个常见问题

我与影子孤独终老i 提交于 2020-02-22 15:14:24
1、关于开发环境搭配,可以到网站 http://developer.android.com/sdk/index.html 下载adt-bundle-windows-x86-20131030.zip,里面包含了Eclipse以及最新版的SDK。 其他步骤参考相关书籍或其他资料即可。 2、让模拟器支持中文,对于新版的Andriod4.4模拟器,要支持中文显示,要在模拟器中设置系统语言为中文,并设置默认输入法为谷歌拼音输入法。 Android模拟器无法弹出软键盘是由于,在默认状态下,模拟器关闭了软件盘的弹出。 打开方式:settings→Language&input→Default 在Hardware右边点击”on”按钮即可 3、修改Eclipse配置,增强代码提示功能: 在Eclipse中,选择菜单“window”→“Preferences”, 选择“java”,展开,“Editor”,选择“Content Assist”, 选择“Content Assist”,然后看到右边,右边的“Auto-Activation”下面的“Auto Activation triggers for java”这个选项。其实就是指触发代码提示的就是“.”这个符号。建议在点后加上 abcdefghijklmnopqrstuvwxyz(, 另外, 自动提示弹出的时间最好改成100毫秒以下。 4、

maven解决“Could not calculate build plan”问题

荒凉一梦 提交于 2020-02-21 12:09:51
错误提示如下:(eclipse+maven) Could not calculate build plan: Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.7.1 from/to central (http://repo1.maven.org/maven2): Access denied to http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/maven-surefire-plugin-2.7.1.pom. Error

Android Studio工程目录介绍

给你一囗甜甜゛ 提交于 2020-02-21 11:41:41
来自知乎: Android Studio工程目录结构 .gradle 是gradle运行以后生成的缓存文件夹。 .idea 是android studio/Intellij IDEA工程打开以后生成的工作环境配置文件夹 ,包括一些copyright复制版权,编译,编码语言,运行配置,工作空间等配置。 app 文件夹是你的application module ,其中包含你的源码src以及编译生成的东西 build文件夹(这个里面又有四个文件夹,其中outputs为生成的apk包存放的地方 ,其它,另外generated文件夹也会有某些aidl生成的java文件在这里面), 以及libs库 build 文件夹为编译时的缓存文件夹,每次运行时都会生成,同时在运行了gradle clean 的任务以后它会被删除清理掉。有一个generated文件夹和intermediates文件夹 ,在我的工程中,也没有看到什么重要的东西。 gradle 文件夹中包含的是gradle-wrapper.jar文件,通过配置其中的 gradle-wrapper.properties中的distributionUrl 可以给你的项目指定需要使用 的gradle版本,这个是个远程的地址,我的是 https://services.gradle.org/distributions/gradle-2.10-all

How to add String parameter to Jenkins with optional checkbox

扶醉桌前 提交于 2020-02-21 10:11:19
问题 I'm trying to add a String parameter to my jenkins build, but i can't find an option to make it optional, on the Jenkins WIKI i found a screeshot and there was an option to make it optional: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build . 回答1: All parameters are "optional". Unless it's a Validating String Parameter, Jenkins doesn't care what value you've entered or if you've entered anything at all. The only thing that cares about the parameters is your job implementation, i

关于极光推送遇到的小问题整理

喜欢而已 提交于 2020-02-20 14:18:32
1.ios端收不到消息 极光推送分开发环境和生产环境,注意这里的开发和生产和我们自己的开发,测试,生产环境不一致。我们的开发测试生产可能用的都是极光的生产环境; 前后端一定要对清楚,不然会费很多时间定位问题: 这里的apnsProduction 设置为true 为生产环境 payload = PushPayload.newBuilder() .setPlatform(Platform.android()) .setAudience(Audience.alias(accounts)) .setNotification(Notification.newBuilder() .addPlatformNotification(AndroidNotification.newBuilder() .setAlert(alert) .setStyle(1) .setBigText(alert) .setTitle(notificationTitle) .build()) .build() ) .setMessage(cn.jpush.api.push.model.Message.newBuilder() .setMsgContent(content) .setTitle(contentTitle) .addExtras(message.getBusinessContent()) .build())

1.3.6 详解build.gradle文件——Android第一行代码(第二版)笔记

限于喜欢 提交于 2020-02-19 14:29:09
不同于Eclipse,Android Studio是采用Gradle来构建项目的。Gradle是一个非常先进的项目构建工具,它使用了一种基于Groovy的领域特定语言(DSL)来声明项目设置。 首先看项目最外层目录下的build.gradle文件,代码如下所示: ~~~ buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } ~~~ 这些代码是自动生成的, 首先两处,repositories的闭包中都声明了jcenter()这个配置。jcenter是一个代码托管仓库。 接下来,dependencies闭包中使用classpath声明一个Gradle插件。因为Gradle并不是专门为构建Android项目而开发的,因此如果我们要想使用它来构建Android项目,则需要声明 com.android.tools.build:gradle:3.1.3 这个插件。其中最后面的部分是版本号。

1.3.6 详解build.gradle文件——Android第一行代码(第二版)笔记

≡放荡痞女 提交于 2020-02-19 13:42:17
不同于Eclipse,Android Studio是采用Gradle来构建项目的。Gradle是一个非常先进的项目构建工具,它使用了一种基于Groovy的领域特定语言(DSL)来声明项目设置。首先看项目最外层目录下的build.gradle文件,代码如下所示:~~~buildscript {repositories {google()jcenter()}dependencies {classpath 'com.android.tools.build:gradle:3.1.3'}}allprojects {repositories {google()jcenter()}}task clean(type: Delete) {delete rootProject.buildDir}~~~这些代码是自动生成的,首先两处,repositories的闭包中都声明了jcenter()这个配置。jcenter是一个代码托管仓库。接下来,dependencies闭包中使用classpath声明一个Gradle插件。因为Gradle并不是专门为构建Android项目而开发的,因此如果我们要想使用它来构建Android项目,则需要声明 com.android.tools.build:gradle:3.1.3 这个插件。其中最后面的部分是版本号。 下面我们来看app目录下的build.gradle文件

Header files with prefix in CMake project

筅森魡賤 提交于 2020-02-19 11:43:49
问题 I have set up a CMake project whose directory structure looks as follows: src/ --CMakeLists.txt --libA/ ----CMakeLists.txt ----foo.h ----foo.cpp --main/ ----CMakeLists.txt ----main.cpp src/CMakeLists.txt uses add_subdirectory to pull in libA and main . libA/CMakeLists.txt uses add_library to define a library called libA , which exports foo.h via target_include_directories . If I now link against libA in main using target_link_library , I can include foo.h via #include <foo.h> in main.cpp .