主题 : qtopia移植的问题,急,马上要交毕业设计结果了!!!!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 5806
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-05-09
最后登录: 2011-11-24
楼主  发表于: 2009-05-22 09:49

 qtopia移植的问题,急,马上要交毕业设计结果了!!!!!

管理提醒: 本帖被 arm9home 从 Linux技术交流专区 移动到本区(2009-09-10)
请问我在redhat9.0,ipaq-qtopia下编译通过了一个图形界面的程序,下载到板子执行的时候怎么会出现错误啊?/opt/q topia/bin/lab: /opt/q topia/bin/lab: 1: Syntax error: "(" unexpected

另外mini2440的串口2能否直接接一个TTL3.3v的zigbee通眩块,不做电平转换么?

麻烦知道的大虾们予以指点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-05-22 10:18
似乎是下载过程中文件损坏了,确认一下板子上的文件大小和你PC上的是否一样。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-05-22 10:19
另外mini2440的串口2能否直接接一个TTL3.3v的zigbee通眩块,不做电平转换么?

不要把一堆不相关的问题放在同一个帖子里
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5806
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-05-09
最后登录: 2011-11-24
3楼  发表于: 2009-05-22 13:59

 回 2楼(kasim) 的帖子

抱歉,我只是想到了,随便问了下
级别: 新手上路
UID: 5806
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-05-09
最后登录: 2011-11-24
4楼  发表于: 2009-05-22 14:02

 回 1楼(kasim) 的帖子

文件大小一样的,我用U盘cp编译成功的lab程序到板子的/opt/qtopia/bin/下的,相应的。desktop放在了/opt/qtopia/apps/Application下
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-05-22 15:20
在你的Linux PC上用readelf -h lab, 看看输出的结果
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5806
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-05-09
最后登录: 2011-11-24
6楼  发表于: 2009-05-23 09:55

 回 5楼(kasim) 的帖子

  
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x804bfd0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1608872 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         6
  Size of section headers:           40 (bytes)
  Number of section headers:         35
  Section header string table index: 32
而且板子一开机就不停执行lab,还报错,那个错
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2009-05-24 17:08
Machine:                           Intel 80386

你不能在ARM的开发板上执行x86的可执行文件。交叉编译成ARM格式的再说吧
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5806
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-05-09
最后登录: 2011-11-24
8楼  发表于: 2009-05-26 09:13

 回 7楼(kasim) 的帖子

经过您的点拨后我试图编译ARM格式的,我的初始程序是在fedora下的Qt3里编写的,我想把现有的程序在板子提供的arm编译环境下编译,可是通不过.请问这样的想法是否可行,如果可行,应该做些什么步骤,比如说添加什么库和设置环境变量,不胜感谢!!!!!
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2009-05-26 09:34
,我想把现有的程序在板子提供的arm编译环境下编译,可是通不过.

Qt3理论上可以兼容Qt2的接口,不过你得告诉大家为什么编译通不过。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."