首页 \ 问答 \ 用交叉编译器(已经更改为arm-linux-gcc) 编译内核;但是提示gcc没有找到?

用交叉编译器(已经更改为arm-linux-gcc) 编译内核;但是提示gcc没有找到?

我用的arm-linux-gcc 3.4.3,想编译2.6.14的kernel;(http://ubi.cs.washington.edu/wiki/index.php/Compiling_the_iMote2_kernel)按照上面的提示一步步安装的;补丁包按提示都已经打好了,没有错误,而且交叉编译器也能编译像helloworld的小程序;但是要编译内核的时候;用 make ARCH=arm CROSS_COMPILE=arm-linux- oldconfig 却总是提示 gcc:not command;这是为什么?网上有说更改Makefile文件;在ARCH?=arm;CROSS_COMPILE?=arm-linux- 就可以用交叉编译器编译;但是还是提示上面的错误?还是说更改的时候,哪儿有什么空格没有空好?希望大虾,能够给我指示一下; 以前不知道 编译内核还要gcc编译器;现在安装了能够继续运行; 但是弹出很多配置选项;想问问这个过程是必须的?还是我的.config文件没有弄对?
更新时间:2022-04-10 08:04

最满意答案

SharedPreferences sp = getSharedPreferences("guozitv2", Context.MODE_PRIVATE);			
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String spilt[] = df.format(new Date()).toString().split("-");
if (Update(spilt)) {
	Editor editor = sp.edit();
	editor.putInt("year", Integer.valueOf(spilt[0]));
	editor.putInt("month", Integer.valueOf(spilt[1]));
	editor.putInt("day", Integer.valueOf(spilt[2]));
	editor.commit();
       }
        public boolean Update(String[] spilt) {
		int year = sp.getInt("year", 0);
		int month = sp.getInt("month", 0);
		int day = sp.getInt("day", 0);
		int yearNow = Integer.valueOf(spilt[0]);
		int monthNow = Integer.valueOf(spilt[1]);
		int dayNow = Integer.valueOf(spilt[2]);
		if (year > yearNow) {
			return false;
		} else if (year < yearNow) {
			return true;
		} else {
			if (month > monthNow) {
				return false;
			} else if (month < monthNow) {
				return true;
			} else {
				if (day >= dayNow) {
					return false;
				} else {
					return true;
				}
			}
		}
	}

其他回答

calendar日历对象,在android里面是可以直接new的,因为android系统内部用的就是java语言,所以java的api方法都是可以使用的。

相关问答

更多
  • SharedPreferences sp = getSharedPreferences("guozitv2", Context.MODE_PRIVATE); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); String spilt[] = df.format(new Date()).toString().split("-"); if (Update(spilt)) { Editor editor = sp.edit(); editor.pu ...
  • 这就是我实施的检索事件: if (Integer.parseInt(Build.VERSION.SDK) >= 8 || Integer.parseInt(Build.VERSION.SDK) <= 13 ) { uri = "content://com.android.calendar/events"; CALENDAR_URI = Uri.parse(uri); } else if(Integer.parseInt(Build.VERS ...
  • 假设您谈论GregorianCalendar类 - 而不是calendar1.add(Calendar.MONTH, 1)尝试也调用以下方法作为解决方法: static GregorianCalendar moveToEndOfMonth(GregorianCalendar gcal) { gcal.add(Calendar.MONTH, 1); // moving to some day of next month gcal.set(Calendar.DAY_OF_MONTH, 1); // mo ...
  • 一个选项是SimpleDateFormat Calendar calendar = Calendar.getInstance(); SimpleDateFormat dataFormater = new SimpleDateFormat(); dataFormater.applyPattern("dd.MM.yyyy"); String date = dataFormater.format(calendar.getTime()); dataFormater.applyPattern("hh:mm:ss ...
  • 我知道这可能不是你想要的答案,但我最近一直在处理时间/日期操作,我安装了Joda-time API。 控制起来要容易得多。 http://joda-time.sourceforge.net/ I know this may not directly be the answer you want but I've recently been working with time/date manipulation and I installed the Joda-time API. It's a lot eas ...
  • 使用SimpleDateFormat类, String date = SimpleDateFormat.getDateInstance().format(new Date()); Use SimpleDateFormat class, String date = SimpleDateFormat.getDateInstance().format(new Date());
  • 问题是您对TimePicker和DatePicker使用相同的日历对象mCalendarAlarm 。 尝试为两个选择器使用Calendar类的不同对象。 例如: 用于DatePicker mTimeAlarm为TimePicker创建新的Calendar对象mTimeAlarm 如果你有多个init mCalendarAlarm = Calendar.getInstance(); 删除不必要的内容。 The issue is you are using same calendar object mCale ...
  • String mytime="20120215102400"; SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyyMMddhhmmss"); try { Date myDate = dateFormat.parse(mytime); } catch (ParseException e) { e.printStackT ...
  • 当你'setText'时,你正在使用'Calendar.getInstance();'中的变量。 根据当前日,月和年设置这些变量。 相反,您应该使用由datePicker设置的变量。 代替: datee.setText(year + ":" + month + ":" + day); 用这个: datee.setText(year + ":" + monthOfYear + ":" + dayOfMonth); 此外,Calendar.Month返回的月份是一个(10而不是11),因为Java日历从0到 ...
  • Calendar类使用从零开始的数组,通过查看Calendar.JANUARY和Calendar.DECEMBER值可以看出January为0 ,12月为11 。 第12个月只是溢出到下一年(12月+ 1个月),这就是价值变化的原因。 The Calendar class uses a zero-based array meaning January is 0 and December is 11 as can be seen by looking at the Calendar.JANUARY and C ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。