[Interest] QtCreator oddity

Konstantin Tokarev annulen at yandex.ru
Fri Apr 20 14:55:26 CEST 2018

20.04.2018, 15:19, "Roland Hughes" <roland at logikalsolutions.com>:
> 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

There is no force here. You cannot #include <libusb.h> unless compiler is provided with -I/usr/include/libusb-1.0 option instructing it to look in this directory.

> 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
> ,
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest


More information about the Interest mailing list