免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1891 | 回复: 0
打印 上一主题 下一主题

[应用] jpeg2000,kakaku移植问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-02-05 17:44 |只看该作者 |倒序浏览
大家好,移植卡卡库之中遇到了一些问题,请给位帮忙!
  
首先介绍下JPEG2000/Software的目录结构
/bin     
/Documentation     
     Compiling_Instruxtions.txt     
     Kakadu.pdf
     Overview.txt     
/Executables        各种平台下,已经编译好的可执行二进制文件
     /Linux
     Usage_Examples.txt
/Kakadu_V2.2.3    这是源代码目录
     /apps        各种工程文件
     /bin            
     /coresys        核心代码全部在这个目录
     /lib            
/nolib         
     Updates.txt
/nolib_generated         
     /Kdu_compress
     /Kdu_expand
/static_bin            二进制可执行程序
     Kdu_compress.exe
     Kdu_compress.ilk         
     Kdu_expad.exe
     Ldu_expand.ilk
/v2_generated         
     /compress
         /debug
License.pdf
  
思路是这样的,在coresys目录下生成一个静态链接库libkdu.a,这个步骤没有问题。然后再利用apps文件夹下的makefile来生成可执行程序(他们会引用那个静态链接库)。由于无论是arm平台,还是pc平台,用的编译器都是一致的,应该可以排除编译器的问题吧?
1:当是用交叉编译器编译的,为的是能够在arm平台下运行。但在这一步出现了如下错误:
/opt/arm-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: ../../lib/libkdu.a(analysis.o): Relocations in generic ELF (EM: 3)
../../lib/libkdu.a: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [kdu_compress] 错误 1
  
2:如果改成gcc(ubuntu10.04)gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1),就会出现如下错误。
/usr/bin/ld: args.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: args.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: args.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: args.o: Relocations in generic ELF (EM: 40)
args.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [kdu_compress] 错误 1
  
如论如何,感谢能给我提供意见的人!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP