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 );

相关文章:

  • 2021-05-14
  • 2021-05-30
  • 2021-04-14
  • 2021-06-10
  • 2021-06-15
  • 2021-04-12
  • 2021-09-17
猜你喜欢
  • 2022-02-17
  • 2021-08-09
  • 2022-02-05
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案