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 <string.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h>
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 );
posted on 2012-04-28 15:22  风行雪舞  阅读(236)  评论(0编辑  收藏  举报
无觅相关文章插件,快速提升流量