Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1227415
  • 博文数量: 479
  • 博客积分: 12240
  • 博客等级: 上将
  • 技术积分: 4999
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-24 17:12
文章分类

全部博文(479)

文章存档

2014年(1)

2013年(1)

2012年(1)

2011年(95)

2010年(177)

2009年(167)

2008年(16)

2007年(21)

分类: LINUX

2009-10-14 20:40:49

embededkonsole不正常

修改embeddedkonsole.pro文件,修改红色部分,增加所指定平台,或者干脆直接去掉平台指定。

contains(QMAKE_ARCH,x86)|contains(QMAKE_ARCH,generic)|contains(QMAKE_ARCH,ipaq)|contains(QMAKE_ARCH,sharp) {
    LIBS+=-lutil
    DEFINES+=HAVE_OPENPTY
}
 
 
src/server/main.cpp

#else // SINGLE_EXEC
#include
#include
#include
#include
void doCalibrate()
{
    const char *mouse_protocol = ::getenv("QWS_MOUSE_PROTO");
    if (mouse_protocol == 0) {
        return;
    }
    if (strstr(mouse_protocol, "TPanel") == 0) {
        return;
    }
    if(QFile::exists("/etc/pointercal")) {
        return;
    }
    pid_t pid;
    pid = ::fork();
    if(pid < 0) {
        perror("create process");
        exit(1);
    }
    if (pid == 0) {
        execl("/usr/local/bin/ts_calibrate", "ts_calibrate", 0);
    } else if (pid > 0) {
        waitpid(pid, 0, 0);
    }
    if(!QFile::exists("/etc/pointercal")) {
        fprintf(stderr, "cannot calibrate touch screen\n");
    }
}
int main( int argc, char ** argv )
{
#endif // SINGLE_EXEC
    signal( SIGCHLD, SIG_IGN );
    signal( SIGUSR2, SIG_IGN );
    doCalibrate();
    int retVal = initApplication( argc, argv );
阅读(1014) | 评论(0) | 转发(1) |
0

上一篇:Qtopia-2.2.0启动脚本

下一篇:Qte 编程

给主人留下些什么吧!~~