用交叉编译器(已经更改为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方法都是可以使用的。
相关问答
更多-
Android Calendar获取日期问题[2023-09-12]
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 ...
-
日历日期Android(Calendar day of month Android)[2022-12-06]
假设您谈论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 ...
-
Android将日期添加到日历(Android Add date to calendar)[2021-11-01]
我知道这可能不是你想要的答案,但我最近一直在处理时间/日期操作,我安装了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 ...
-
阅读日历日期(reading Calendar date)[2022-05-05]
当你'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 ...