[Interest] QtCreator oddity

Roland Hughes roland at logikalsolutions.com
Fri Apr 20 14:19:40 CEST 2018



On 04/20/2018 06:40 AM, Thiago Macieira wrote:
> On Wednesday, 18 April 2018 10:18:05 PDT Konstantin Tokarev wrote:
>> #include <libusb-1.0/libusb.h>
> DO NOT write that. The correct line for libusb is:
>
> #include <libusb.h>
>
> If that file is not in your default search path, then add it to INCLUDEPATH or
> via pkg-config.
>
> PKGCONFIG += libusb-1.0
The problem isn't the default search path. The problem is QtCreator 
cannot handle directories with a "." in their name underneath 
/usr/include. One has to force it in with

INCLUDEPATH +=/usr/include/libusb-1.0

By default, everything under /usr/include should be found and, if the 
directory doesn't have a . in the name it is.

-- 
Roland Hughes, President
Logikal Solutions
(630)-205-1593

http://www.theminimumyouneedtoknow.com
http://www.infiniteexposure.net
http://www.johnsmith-book.com
http://www.logikalblog.com
http://www.interestingauthors.com/blog
http://lesedi.us/
http://onedollarcontentstore.com
  

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


More information about the Interest mailing list