[Interest] QtCreator oddity

Roland Hughes roland at logikalsolutions.com
Fri Apr 20 15:00:56 CEST 2018



On 04/20/2018 07:55 AM, Konstantin Tokarev wrote:
>
> 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
>> ,
>>
>>
Yes, there is a force here. Having to inform the environment about a 
directory underneath /usr/include is a force. By design all directories 
in that tree are searched.

This is a bug.

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




More information about the Interest mailing list