Chinaunix首页 | 论坛 | 博客
  • 博客访问: 104590
  • 博文数量: 26
  • 博客积分: 1060
  • 博客等级: 少尉
  • 技术积分: 300
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-04 10:32
文章分类

全部博文(26)

文章存档

2013年(1)

2011年(21)

2010年(4)

分类: LINUX

2011-01-07 15:01:07

啊k!
昨天那个恶心的问题终于搞定了。
因为arm-elf-gcc 没有default output file, PS:实际上我这里输出的是个名为 "-r” 的文件,这个文件很恶心, 删不掉看不了。
 
今天在编译 jpg 库的时候,沉下心去看了一下configure 明白了, 改掉configure,让他不再检查default output 文件 就可以了!呵呵---
 
另外还有一个偷懒的方法就是 先 加上在 CFLAGS加上 -o a.out 骗骗 configure,然后再在Makefile中去掉-o a.out 这个方法我没哟实验, 因为我看他创建了一大堆的 Makefile。
 
这个充分体现了自己基本功不扎实,另外遇到问题就google一阵子,按照别人做的教程走一遍,知其然不知其所以然, 造成自己遇到问题没有良好的解决方法。以后要改正这一点,合理利用google。
下面贴一下我改造的configure 部分代码:
 

干掉上面这一段。

#//ztl (ztlchina@foxmail.com) my arm-elf-gcc do not have default output file

#//ztl this is for arm-elf-gcc,The conmmand " arm-elf-gcc test.c "

#//ztl do not creat a.out, but a file that called "-r", so I don not check the default output file here

#{ echo "$as_me:$LINENO: result: $ac_file" >&5

#echo "${ECHO_T}$ac_file" >&6; }

#if test -z "$ac_file"; then

# echo "$as_me: failed program was:" >&5

#

#sed 's/^/| /' conftest.$ac_ext >&5

#

#{ { echo "$as_me:$LINENO: error: C compiler cannot create executables

#See \`config.log' for more details." >&5

#echo "$as_me: error: C compiler cannot create executables

#See \`config.log' for more details." >&2;}

# { (exit 77); exit 77; }; }

#fi


阅读(907) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-03-08 20:48:58

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com