我编的时候为开发板编译时出错了

为了账号安全,请及时绑定邮箱和手机
求Java大神帮忙编一下 我编了两个小时总是出错 希望能参考一下正确的代码
package com.imooc.
public class Student {
private String studentN
private Course[]
private int aveS
// 学生类的属性
public String getStudentName() {
return studentN
public void setStudentName(String studentName) {
this.studentName = studentN
public Course[] getCourses() {
public void setCourses(Course[] courses) {
this.courses =
public int getAveScore() {
return aveS
public void setAveScore(int aveScore) {
this.aveScore = aveS
// get/set方法
public Student(String studentName, Course[] courses) {
this.studentName = studentN
this.courses =
// 有参数的构造方法
public int aveScore(){
int i=0,sum=0;
while(i&3){
sum+=this.courses[i].getScore();
return sum/3;
// 求解平均成绩
public void changGrade(int i,int score){
if(i&0||i&2||score&0||score&100){
System.out.println("!you input the wrong number!the change is not successful");
this.courses[i].setScore(score);
System.out.println("you changed the score \n");
// 更改课程2的分数
public void display() {
this.aveScore();
System.out.println("the name of the student is "+this.studentName+"\n"+
this.courses[0].getCourseName()+":"+this.courses[0].getScore()+"\n"+
this.courses[1].getCourseName()+":"+this.courses[1].getScore()+"\n"+
this.courses[2].getCourseName()+":"+this.courses[2].getScore()+"\n"+
"the average of the three courses is "+this.aveScore()+"\n"
// 展示学生成绩的信息
}package com.imooc.
public class Course {
private String courseN
// 课程类的属性
public String getCourseName() {
return courseN
public void setCourseName(String courseName) {
this.courseName = courseN
public int getScore() {
public void setScore(int score) {
this.score =
// get/set方法设置和取得数据
public Course(String courseName, int score) {
this.courseName = courseN
this.score =
// 为了创建方便,使用有参数的构造器
}package com.imooc.
public class main {
public static void main(String[] args) {
Student student=new Student("tom",new Course[]{
new Course("chinese",83),
new Course("math", 98),
new Course("english", 87)
//使用含参数的构造器创建的学生类
student.display();
student.changGrade(1, 90);//改变成绩
student.display();
你还没有登录,请先登录或注册慕课网帐号
//课程类class Course { private String C
public String getCname() {
return C } public void setCname(String cname) {
Cname = } public int getScore() {
} public void setScore(int score) {
this.score = }}// 学生类class Student { private String S Course[] a = new Course[3];
public double getAverage() {
} public void setAverage(int average) {
this.average = } public String getSname() {
return S } public void setSname(String sname) {
Sname = } // 显示 void display() {
System.out.println(this.getSname() + "#" + this.a[0].getCname() + ":"
+ this.a[0].getScore() + "#" + this.a[1].getCname() + ":"
+ this.a[1].getScore() + "#" + this.a[2].getCname() + ":"
+ this.a[2].getScore() + "#" + "平均分:" + this.getAverage()); } // 求平均分 int average() {
return (this.a[0].getScore() + this.a[1].getScore() + this.a[2]
.getScore()) / 3; } // 改变第i门课成绩 void changeGrade(int i, int score) {
if (i &= 0 && i &= 2 && score &= 0 && score &= 100) {
a[i].setScore(score);
System.out.println("输入有误!");
} }}// 测试类public class Test { public static void main(String[] args) {
Student student = new Student();
student.setSname("小明");
Course course0 = new Course();
course0.setCname("语文");
course0.setScore(70);
student.a[0] = course0;
Course course1 = new Course();
course1.setCname("数学");
course1.setScore(80);
student.a[1] = course1;
Course course2 = new Course();
course2.setCname("英语");
course2.setScore(60);
student.a[2] = course2;
student.setAverage(student.average());
student.display();
student.changeGrade(2, 90);
student.setAverage(student.average());
student.display(); }}仅供参考,希望能够帮到你。
你还没有登录,请先登录或注册慕课网帐号
Course.javapublic class Course {
public String getName() {
public void setName(String name) {
this.name =
public int getScore() {
public void setScore(int score) {
this.score =
public Course(String name, int score) {
this.name =
this.score =
}Student.javapublic class Student {
private double aveS
private Course[]
public String getName() {
public void setName(String name) {
this.name =
public double getAveScore() {
aveScore = 0;
for (int i = 0; i & courses. i++) {
aveScore += courses[i].getScore();
return aveScore / courses.
public Course[] getCourses() {
public void setCourses(Course[] courses) {
this.courses =
public Student(String name, Course[] courses) {
this.name =
this.courses =
public void display() {
System.out.println("StudentName : " + this.name);
for (int i = 0; i & courses. i++) {
System.out.println(
"course" + (i + 1) + "Name:" + courses[i].getName() + "\tcourseScore:" + courses[i].getScore());
System.out.println("aveScore: " + getAveScore());
public void changGrade(int i, int score) {
if (i &= 2 && i &= 0) {
if (score &= 100 && score &= 0) {
this.courses[i].setScore(score);
}Test.javapublic class Test {
public static void main(String[] args) {
Student stu1 = new Student("张三", new Course[]{
new Course("语文", 30),
new Course("数学", 40),
new Course("英语", 50),
stu1.display();
stu1.changGrade(1, 90);
stu1.display();
你还没有登录,请先登录或注册慕课网帐号
78155人关注
Copyright (C) 2018 imooc.com All Rights Reserved | 京ICP备 号-11程序编写出错【java吧】_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:716,371贴子:
程序编写出错收藏
请大神帮忙鉴定一下,我报这个错是什么原因The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files本人英文实在不咋滴。我电脑是windows8系统,Myeclipse是10的版本。jdk是jdk-8u20-windows-x64的、求大神尽快帮忙解决。谢谢!!
软件培训公司,博为峰软件培训免费试听,0元入学,签署就业保障协议,不就业不收费!博为峰,真正的为年轻人服务的企业,14年间培训15万余名软件工程师,成绩斐然!
不是win8系统,不会,帮顶。。。
登录百度帐号代码出错的时候,程序员常有的30种反应
撰文:Hao Li
编辑:Afra Tao
专栏:九章算法
程序员是一份很有挑战的工作,没有人能做到完美,写错代码也是常有的事。
那么,当程序员发现自己辛辛苦苦码的代码出错的时候,会有哪些反应呢?
“是删除它,还是修改它呢?好纠结 T T”
如果选择删除,
那么就需要重新开始写,
但是如果选择修改,
那么就需要大量返工才能纠正错误。
有时候就会陷入选择删除,
还是修改的思想斗争,
这折磨着一批又一批的程序员。
“我应该检查 Github 来启动框架。”
大多数的程序员都知道 GitHub,GitHub 是一个面向开源及私有软件项目的托管平台,每天在 GitHub上都有新的海量的开源项目。
程序员可以用GitHub
从另外一个项目进行分支,或者
重新生产自己的代码。
GitHub是一个很棒的平台,
已经成为了管理软件开发以及发现
已有代码的首选。
“为什么这个脚本需要这么多的库?”
当使用更复杂的语言,
如 java 和 Objective-C 时,库文件的数量
会急剧增加。
建设一个好的框架,需要打好底子,
但是这就意味着
需要更多的附加文件,甚至一些 Java 插件
也需要大量的附加文件。
但这种杂乱无章的东西真的会让人跳脚。
“网上一定有解决的办法。”
碰到棘手问题时,
很多程序员的第一反应是:
上网查找解决办法。
他们会发布论坛帖子来讨论他们的问题,
最终得到解决办法。
Google可以根据你搜索的关键词,
从大量信息中
搜索出有用的内容。
但是网络不是万能的。
很多时候,
网上并没有太多与你碰到的
问题相关的信息。
“是否有可以使用的插件?”
插件是一个伟大的东西,
能用于任何程序和网站扩大用户界面。
还可以为开发人员提供一些
”定制服务”。
如果已有的插件中没有一个可用的,
为什么不自己开发一个?
“网上能找到办法,但是我不想使用IE浏览器。”
IE浏览器现在已经是IE10版了,
但是Web开发人员
还是害怕用IE浏览器进行调试,
好在微软在不断优化IE浏览器,
使得开发变得越来越方便。
“这个逻辑语句似乎不太合乎逻辑。”
if/else...
当代码中有很多逻辑语言时,
如果想要搞清楚其中的逻辑,
程序员完全可以把自己绕晕。
为了未来能更好理清思路,
需要经常回过头去
更新自己的逻辑表达。
“我花了30分钟写程序,却花了两个小时使它跑起来。”
写一个程序只需要花很短的时间,
如果在跑程序的时候发现程序跑不起来,
那么可能就需要花费很多精力了。
定位到错误,
再解决错误,
这个过程就是一个很麻烦的过程。
“看了别人的博客文章后,我才意识到自己从一开始就错了”
很多时候,程序员喜欢先用自己的
编程思想来思考问题。
但当事情不按计划进行时,
程序员就会去寻求博客或他人的帮助,
有时候就会发现
自己从一开始就已经错了!
磨刀不误砍柴工,
先做一点研究,
最后肯定能节省时间。
“ Stack Overflow可能能帮到我。”
很多人会通过
Stack Overflow
来解决难题。
Stack Overflow上有很多热心的大牛,
他们都愿意帮助你解决难题。
一般只要你敢问、
都能得到一些解决办法,
尤其是问关于
软件编程和前端/后端Web开发的问题,
绝对能得到
别的平台无法得到的
最棒的解决方案。
“所有的麻烦,都源于缺少了一个表示结束的右括号。”
调试是一个不断前进的过程,
后退一步,
前进两步,
最后完成项目。
有时候会发现
盯着代码数小时所寻找的错误原因,
只是缺少了一个右括号,
内心会有一万头草泥马奔过。
所有的时间都浪费了,
只是因为一个小的语法错误。
这时候会特别想拍死自己。
“我需要喝杯咖啡休息一下!”
在电脑前工作了很久
还是找不到错误,
选择喝杯咖啡休息一下,
或许能产生不一样的灵感。
大多数的健康指南都建议
每工作30-60分钟就休息一下。
但这都取决于你的内心
如果在工作过程中停下来
休息会使你生气,
那你还是不要停下来休息了。
“我应该搁置这个项目,以后再处理。”
如果你不想休息,
你也可以把项目先搁置,
可以去做别的工作,
这比起苦恼地盯着电脑看上一天
好太多了。
暂时解决不了,不如开始新工作,
这将是对时间和资源更好的分配方法。
“我不知道古典音乐是否会刺激我的编程能力。”
有一种观点认为,
古典音乐可以催生灵感。
古典音乐的复杂音符
和复杂的音乐理论,在世界各地的
人类文化中都占有一席之地。
在编程的同时听古典音乐,
可能会使调试过程更顺利,
但是这个得因人而异,
有些人并不喜欢古典音乐,
让他听古典音乐可能更是一种折磨。
“也许现在是检验巴尔默峰值理论的好时机。”
很多人都知道巴尔默峰值理论,即程序员在摄入一定量的酒精后,编码能力可以达到峰值。
很多人会把这个理论
当成是史蒂夫·鲍尔默这个酒鬼的胡扯。
至于这一理论是否有效,
实践一下就明白了。
“是有人篡改了我的源代码吗?”
这听起来有点像被害妄想症,
但当你毫无头绪时,
你就会严重质疑自己,
甚至会想通过
捏造一个不存在的人
来转移自己的情绪。
这个世界上
总有一些你永远记不住的东西
——即使是你上周刚刚看过的项目,
在真正需要被回忆起来的时候
也会变得毫无印象!
“我完全理不清这意味着什么。”
最坏的情况就是当你查看源代码时,
完全不知道该怎么做。
你在自己的项目和别人的项目中
都发现过同样的问题,
但是你就是搞不懂为什么。
这时候你必须决定是否值得
花更多的时间寻找一个替代方案,或是解剖脚本
以了解它是如何工作的。
“我需要Google一下错误信息。”
对于PHP工程师来说,
Google是调试问题时最好的朋友,
当然,Google对于
C、C++、java、python
和其他主要语言来说,
也是一样重要的。
了解错误信息是有用的,
至少可以知道
这个错误代码代表了什么意思。
“今天就到这儿了…但我真的想弄明白!”
当你想要放弃,
但是又不愿意放弃的时候,
这种感觉真的很绝望啊。
你想继续推进,
尝试调试出新的解决方案,
但又觉得自己能力有限
可能找不出解决方案,
但又感觉到放弃不是正确的选择。
这又是一个尴尬的境界,
对于有选择困难症的程序员来说
就是一个大灾难。
“哦,为什么我没有写注解?”
当涉及到基本的HTML/CSS/JS时,
并不总是需要写注解。
但遇到更复杂的脚本和程序时,
则需要写一些注解。
当你想在几个月,
甚至几年后回顾的时候,
这些注解能帮助你。
有时不写注解,当错误出现时,
就必须调试整个脚本才能找出解决方案。
但如果有一些有用的注解,
情况就会好很多。
“20分钟前它还是好的...”
最令人沮丧的部分可能是:
它会毫无征兆地
从正常工作变到突然卡壳。
有时还会出现
只是更新了一个小的代码,
却导致整个程序
崩溃、完全停止工作的情况。
你需要把它恢复到最新的工作副本,
重新从那里开始前进。
“我忘了一个分号,结果整个程序崩溃了。”
几乎每一种编程语言
都需要一个终止符号。
你可能觉得
一个终止分号并不重要,
加不加都无所谓,
但是语言分析程序并不理解这一点。
现在你又要花很多时间
来排除这个错误了,
虽然对于整个程序来说
只是缺少了一个分号,
但是对于你来说却是费力不讨好的。
“我想知道让别人来帮我修补错误,
要花多少钱?”
雇佣另一个开发者来帮忙
这样压倒性的想法是非常诱人的,
但显然在经济上几乎不可行。
如果是自己动手修补错误,
就能从这些错误中学到好多东西,
最终理解编程概念。
还是把钱留着,多学点东西吧。
“我需要看看黑客新闻来提高我的生产力。”
如果想要了解
软件和创业,程序员会首选
黑客新闻网站
那里有许多关于
自由职业、时间管理,软件开发、
创业和集资这样的内容。
虽然看黑客新闻
可以自我激励、自我教育,
但也会耗尽很多的时间,
如果每隔几个小时快速浏览一下
就不会那么糟糕了。
“这个API怎么没有文件?!”
使用插件或框架时
最令人沮丧的部分是没有好的文件,
你必须自己深入查看源代码。
有些开发人员会花时间
专门设计一个可用文档页的项目。
所有参数和选项都会被注释,
甚至可能在一些示例代码片段中被使用。
但是很多人不会那么做,
最后碰到问题了就会泪奔了。
“我真希望我已经保存了那个数据库的备份副本…”
对数据进行备份是很必要的,
可确保在发生一些变化时能及时返回,
尤其是对那些实时变化的内容。
时刻记住保存网站文件和数据库到本地,
以防意外的发生!
这可能是一个烦人的任务,
但这比重建一个
损坏的SQL数据库好太多了。
“有没有最快的解决办法,能使它正常工作?”
每个程序员都希望能找到一个
起效最快最快、效果最好的解决方案,
能够百分百地实现工作。
然而,这会是很困难的。
“我打赌更新我的软件会解决这个问题。”
有些时候只需更新
PHP / Ruby / Python / SQL版本,
即可解决调试问题。
除非你的版本完全过时了,
本地更新对于
帮助修复源代码中的bug作用会很小。
不过,这个办法还是值得一试!
“我应该更系统得学习Git…恩,下周我一定会的。”
Git在程序员中非常流行,
为开发者提供更多的便利。
对于初学者来说,
Git的学习有一个陡峭的入门曲线,
一旦你了解了基本的命令,
Git便是小菜一碟。
而且,它能使
调试与版本控制更加清晰。
如果能系统地
会使工作变得更高效,
“废了它,我从头开始。”
经过几个小时的尝试解决后,
有些容易冲动的程序员就会
Delete it,从头开始。
前面几个小时的辛苦工作
都将付之东流,
对于这种,你开心就好,
从头开始没准更有用呢~
更多精彩内容
回复“简历”,查看简历撰写指南,获取“简历模板”
回复“冷冻期”,查看北美各大IT企业冷冻期信息和注意事项
回复“Career”, 查看Caireer Fair 攻略 check list
回复“薪资”,查看北美各大IT企业New Grades Engineer 薪资水平;
回复“项目”,查看7-14天可以搞定的小项目推荐
回复“评分”,查看系统设计评分指南
回复“behavior”,查看behavior interview指南
回复“晋升”,查看Engineer晋升机制
《九章算法班》| 本周免费试听
面试中的常见误区
从面试官的角度分析面试的考察点
从Subset中了解算法面试中模板的重要性
面试常见问题答疑
2017年秋招备战进行时
赢在起跑线!
报名登陆官网 www.jiuzhang.com
责任编辑:
声明:该文观点仅代表作者本人,搜狐号系信息发布平台,搜狐仅提供信息存储空间服务。
今日搜狐热点后使用快捷导航没有帐号?
查看: 10676|回复: 9
我在编译海思给的例程时,出现这个错误,怎么解决?
root@Ubunut10:~/hi3518/mpp/sample/venc# make
ls: 无法访问/hiwork/osdrvhi3518.C01: 没有那个文件或目录
请问什么原因?该怎么解决?
这个错误不用管!&&直接忽略就行了!编译不会报错的!
编绎OSDRV也错!
root@Ubunut10:~/hiwork/osdrv# make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a all
mkdir /root/hiwork/osdrv/pub/image_uclibc -p
mkdir /root/hiwork/osdrv/pub/bin/board_uclibc -p
mkdir /root/hiwork/osdrv/pub/bin/pc -p
mkdir /root/hiwork/osdrv/pub/bin/board_uclibc/hifat -p
---------task [1]& & & & build boot
rm /root/hiwork/osdrv/uboot/u-boot-2010.06 -rf
tar xzf /root/hiwork/osdrv/uboot/u-boot-2010.06.tgz -C /root/hiwork/osdrv/uboot
find /root/hiwork/osdrv/uboot/u-boot-2010.06 | xargs touch
make -C /root/hiwork/osdrv/uboot/u-boot-2010.06 ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- hi3518a_config
make[1]: 正在进入目录 `/root/hiwork/osdrv/uboot/u-boot-2010.06'
Configuring for hi3518a board...
make[1]:正在离开目录 `/root/hiwork/osdrv/uboot/u-boot-2010.06'
pushd /root/hiwork/osdrv/uboot/u-boot-2010.06;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- -j 20 &/dev/popd
/bin/sh: pushd: not found
make[2]: warning: jobserver unavailable: using -j1.&&Add `+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.&&Add `+' to parent make rule.
make[2]: warning: jobserver unavailable: using -j1.&&Add `+' to parent make rule.
/bin/sh: pushd: not found
make[2]: warning: jobserver unavailable: using -j1.&&Add `+' to parent make rule.
/bin/sh: pushd: not found
chmod: 无法访问&./configure&: 没有那个文件或目录
/bin/sh: popd: not found
make[2]: *** [hipctools_clean] 错误 127
/bin/sh: popd: not found
make[1]: *** [hiboardtools_clean] 错误 127
/bin/sh: popd: not found
make: *** [hiboot] 错误 127
编绎OSDRV也错!
root@Ubunut10:~/hiwork/osdrv# make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a&&...
make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a all SHELL=bash
你回神奇的发现,能编译了。。。。。请叫我红领巾
真的能编译了,谢谢楼上的!
make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3518a all SHELL=bash
你回神奇的发现,能编译了 ...
为什么我不能编译。
a@ubuntu:~/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv$ sudo make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3520d all SHELL=bash
mkdir /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/pub/image_uclibc -p
mkdir /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/pub/bin/board_uclibc -p
mkdir /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/pub/bin/pc -p
---------task [1]& & & & build boot
rm /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06 -rf
tar xzf /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06.tgz -C /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot
find /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06 | xargs touch
make -C /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06 ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- hi3520d_config
make[1]: Entering directory `/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06'
Configuring for hi3520d board...
make[1]: Leaving directory `/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06'
pushd /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06;make ARCH=arm CROSS_COMPILE=arm-hisiv100nptl-linux- -j 20 &/dev/popd
~/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06 ~/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: line 3: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: line 3: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** No rule to make target `.depend', needed by `_depend'.&&Stop.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
bash: line 2: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** No rule to make target `.depend', needed by `_depend'.&&Stop.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
bash: arm-hisiv100nptl-linux-gcc: command not found
dirname: missing operand
Try 'dirname --help' for more information.
make[2]: *** [hello_world.o] Error 127
make[1]: *** [examples/standalone] Error 2
make[1]: *** Waiting for unfinished jobs....
bash: arm-hisiv100nptl-linux-gcc: command not found
make[2]: *** [start.o] Error 127
make[1]: *** [arch/arm/cpu/hi3520d/start.o] Error 2
kwbimage.c: In function ‘kwbimage_verify_header’:
kwbimage.c:350:10: warning: variable ‘calc_exthdrcsum’ set but not used [-Wunused-but-set-variable]
&&uint8_t calc_
& && && & ^
/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06/lib/md5.c: In function ‘MD5Final’:
/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06/lib/md5.c:156:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
&&((__u32 *) ctx-&in)[14] = ctx-&bits[0];
/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06/lib/md5.c:157:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
&&((__u32 *) ctx-&in)[15] = ctx-&bits[1];
make[1]: *** wait: No child processes.&&Stop.
~/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv
cp /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06/u-boot.bin /home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/pub/image_uclibc
cp: cannot stat ‘/home/a/Desktop/Hi3520D_SDK_V1.0.5.0/osdrv/uboot/u-boot-2010.06/u-boot.bin’: No such file or directory
make: *** [hiboot] Error 1
bash: arm-hisiv100nptl-linux-gcc: command not found
就是说,没有找到交叉编译器,可以检查下面两点
1.交叉编译器是否安装
2.交叉编译器所在的路径是否放到PATH中
大神,小弟hi3520a编译也遇到这样的问题,
“root@ubuntu:/home/will/Hi3520A_SDK_V1.0.7.0/drv/hisi-irda# make OSDRV_CROSS=arm-hisiv100nptl-linux CHIP=hi3520a all SHELL=bash
ls: 无法访问/hiwork/osdrvhi3520A.C01: 没有那个文件或目录
make: *** 没有规则可以创建目标“all”。 停止。
root@ubuntu:/home/will/Hi3520A_SDK_V1.0.7.0/drv/hisi-irda#
bash: arm-hisiv100nptl-linux-gcc: command not found
就是说,没有找到交叉编译器,可以检查下面两点
可是,我使用echo $PATH命令后,发现能够找到交叉编译器,依然会弹出这个提示。
我是在普通用户下编译的,已经添加sudo
可是,我使用echo $PATH命令后,发现能够找到交叉编译器,依然会弹出这个提示。
我是在普通用户下编译的 ...
先执行sudo -i;
然后make OSDRV...

我要回帖

更多关于 烹饪编译影片时间出错 的文章

 

随机推荐