[Interest] How to enable MTDEV for multi-touch

Agocs Laszlo laszlo.agocs at theqtcompany.com
Mon Feb 2 13:12:50 CET 2015


mtdev support (and some other components too) require pkg-config. Doesn't your system have it?


As a quick fix for your build adding -lmtdev in the config test and evdevtouch.pri is good enough.


The proper fix is probably


!contains(QT_CONFIG, no-pkg-config) {

    ...
} else {

    LIBS += ...
}


BR,

Laszlo

________________________________
From: nus1998 <nus1998 at yeah.net>
Sent: Monday, February 2, 2015 11:41 AM
To: nus1998
Cc: Agocs Laszlo; interest at qt-project.org
Subject: Re:Re: [Interest] How to enable MTDEV for multi-touch

If I change "PKGCONFIG_PRIVATE += mtdev" in qtbase/config.tests/unix/mtdev/mtdev.pro to "unix:LIBS += -lmtdev", then mtdev will be "yes", however, I don't know is it safe for this modification.

Best regards,
Jie


? 2015-02-02 17:45:16,"nus1998" <nus1998 at yeah.net> ??:
Hi Laszlo,

Thanks for your reply, I realized it and downloaded the mtdev source code and cross compiled it, and then I use -I and -R in configure for  the header file and library path respectively,
however, it is failed to active mtdev too.

Best regards
Jie





? 2015-02-02 16:04:39,"Agocs Laszlo" <laszlo.agocs at theqtcompany.com<mailto:laszlo.agocs at theqtcompany.com>> ??:

Hi,


You need the libmtdev headers and libraries present in the sysroot, not in your host environment.


What device are you cross-compiling for?


Best regards,

Laszlo


________________________________
From: interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org<mailto:theqtcompany.com at qt-project.org> <interest-bounces+laszlo.agocs=theqtcompany.com at qt-project.org<mailto:theqtcompany.com at qt-project.org>> on behalf of nus1998 <nus1998 at yeah.net<mailto:nus1998 at yeah.net>>
Sent: Monday, February 2, 2015 5:36 AM
To: interest at qt-project.org<mailto:interest at qt-project.org>
Subject: [Interest] How to enable MTDEV for multi-touch

Hi All,

I'm now compiling Qt 5.3.2, I have added the option "-mtdev" on configure, and there is no error encountered in the configure process. however, I found "mtdev .................. no" in the configure.summary after configure process is complete, which means "mtdev" is not enabled?

my host is ubuntu 12.04 and I installed libmtdev-dev, the complete configure command that I inputed is like below:

./configure -xplatform linux-arm-gnueabi-g++ -release -opensource -confirm-license -mtdev -make libs -prefix $PWD/_install

Thanks in advance for any tips.
Jie






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150202/59327dc8/attachment.html>


More information about the Interest mailing list