天嵌 ARM开发社区

 找回密码
 注册
查看: 3089|回复: 2

编译libqte.so.2.3.7失败啊

[复制链接]
lufthansa 发表于 2009-9-9 18:18:20 | 显示全部楼层 |阅读模式
错误在这里
kernel/qwindowsystem_qws.cpp:1810: error: comparison between distinct pointer types ‘QWSServer::QWSInputMethod*’ and ‘QWSInputMethod*’ lacks a cast
kernel/qwindowsystem_qws.cpp:1812: error: cannot convert ‘QWSServer::QWSInputMethod*’ to ‘QWSInputMethod*’ in assignment

static QWSInputMethod *current_IM = 0;   // current_IM 定义

void QWSServer::setCurrentInputMethod( QWSInputMethod *im )
{
    if ( current_IM_State != IMEnd && (QWSInputMethod*)im != current_IM && qwsServer )      // 1810行
        qwsServer->sendIMEvent( IMEnd, "", -1, 0 );
    current_IM = (QWSInputMethod*)im;    //1812行
}

感觉应该是c++的语法问题感觉,加了(QWSInputMethod*)转化im的类型也不行啊.怎么修改呢,有没人遇见过啊
亚瑟王 发表于 2009-9-16 10:36:55 | 显示全部楼层
用的哪个编译器?
回复

使用道具 举报

 楼主| lufthansa 发表于 2009-9-16 10:46:07 | 显示全部楼层
搞好了.是声明放到了类声明里面了,结果编译器认为是内部声明所以指针类型不对了.
我是在suse10.2简单安装下编译的,重新装了,e2fs,jpeg这些库,安装了gcc3.3.6就都能编译过了.

那个原代码下载里面,0525那个不能下,能不能修理下啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-17 05:43 , Processed in 2.040014 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表