<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need help seeing my include]]></title><description><![CDATA[<p dir="auto">I am in #inlcude hell</p>
<p dir="auto">My original project works alone as expected.<br />
After converting it to library and adding to my subproject tree<br />
I am getting usual missing #include file - first  time it is referenced .</p>
<p dir="auto">I am still not very comfortable with SUBDIRS  "include" stricture and could use some help to figure out what is missing.</p>
<p dir="auto">I am not sure what is "include"  hierarchy  telling me.</p>
<p dir="auto">I suspect the main pro and its subproject project which uses the library is missing another "level " of include.</p>
<p dir="auto">Build fails  in "device.h" , first "include" reference when used as library.</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/7c9be5a2-c4f6-42e0-9949-1f93221910a9.png" alt="35370dda-fe70-413e-8c2c-58f5ca9f50c0-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">OK in project alone</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/e58055d2-7e40-439e-a391-26a184a358b6.png" alt="b2137a8c-f9cf-4ad5-b327-7a33f2ff702d-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Obviously my build does not get this far , it stops at device.h</p>
<pre><code>#include "device.h"
#include "service.h"

#include &lt;qbluetoothaddress.h&gt;
#include &lt;qbluetoothdevicediscoveryagent.h&gt;
#include &lt;qbluetoothlocaldevice.h&gt;
#include &lt;QMenu&gt;
#include &lt;QDebug&gt;
</code></pre>
]]></description><link>https://forum.qt.io/topic/126988/need-help-seeing-my-include</link><generator>RSS for Node</generator><lastBuildDate>Sat, 03 Oct 2026 06:48:04 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126988.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 May 2021 23:30:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need help seeing my include on Mon, 31 May 2021 02:09:00 GMT]]></title><description><![CDATA[<p dir="auto">I have given up.</p>
<p dir="auto">Trying to add plain project and converting it  to library is futile.<br />
I now have main SUBDIR project with "added library".<br />
The library is build as SUBDIR internal library and added as such to main SUDBIR project. Works as expected.<br />
I'll we transferring "btscanner" code  example piece by piece to my library, hopefully learning more about Bluetooth in the process.</p>
<p dir="auto"><strong>I would like to express my appreciation to all who helped</strong> , albeit unsuccessfully , to fix this problem.</p>
<p dir="auto">CASE closed</p>
]]></description><link>https://forum.qt.io/post/662485</link><guid isPermaLink="true">https://forum.qt.io/post/662485</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Mon, 31 May 2021 02:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 22:37:02 GMT]]></title><description><![CDATA[<p dir="auto">I have rebuild my SUDIRS project .<br />
I have a main (widget) application and first subproject - widget application converted to library and another subproject - a real library crreated by Qt.</p>
<p dir="auto">No problem using the real library.<br />
Same problem using the converted library.</p>
<p dir="auto">Now the error is what has been suspect from get go</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/8a80262f-4fd8-4521-affc-254f6ea37e3b.png" alt="bb4ab957-cb8c-463e-a1f1-8c48629d3818-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">So a same error / story but now official.<br />
Hope I find the missing link soon...</p>
]]></description><link>https://forum.qt.io/post/662475</link><guid isPermaLink="true">https://forum.qt.io/post/662475</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sun, 30 May 2021 22:37:02 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 20:11:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> said in <a href="/post/662438">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">@AnneRanch said in <a href="/post/662417">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">It looks as linker is creating .a (shared ?)   library.</p>
</blockquote>
<p dir="auto">That's an archive, a.k.a. a static library.</p>
<blockquote>
<p dir="auto">now SUDDIRS  adds .pro</p>
</blockquote>
<p dir="auto"><code>SUBDIRS</code> is simply a tree-like build for <code>qmake</code>. It doesn't have to do with code at all. Each project is built separately and all considerations for stand-alone projects apply. The <code>INCLUDEPATH</code> is necessary for the compiler so it has the declarations avaialble, without it names (i.e. identifiers) mean nothing to it. <code>LIBS</code> is necessary for the linker, whenever it starts to resolve the objects it needs to know what symbol is defined in which binary (library, object file, executable).</p>
<blockquote>
<p dir="auto">HOWEVER, I now have another issue<br />
if I add<br />
CONFIG += staticlib - as recommended in other forum</p>
</blockquote>
<p dir="auto">Don't do that. Stick to dynamic libraries, it's simpler. Otherwise you need to satisfy the dependencies on the client side for the linking.<br />
Also on linux it's necessary as far as I recall to add the archive to the <code>PRE_TARGETDEPS</code>.</p>
</blockquote>
<p dir="auto">Thanks for sticking with this mess.</p>
<p dir="auto">I decided to actually check if the .so library is built and where.<br />
<strong>Now I need to verify if that is for real as far as SUDIRS go</strong>.</p>
<p dir="auto">I really believe , I am convinced,    I have created this myself by adding<br />
TEMPLATE = lib to the project.</p>
<p dir="auto">I have no issue using / accessing the real library , created by Qt SUDBIRS .</p>
<p dir="auto">There are copies of libbtscanner .so files :</p>
<p dir="auto">qe@qe-desktop:~$ find ./ -name "*<a href="http://btscanner.so" target="_blank" rel="noopener noreferrer nofollow ugc">btscanner.so</a>"<br />
./Qt_5/Examples/Qt-6.2.0/bluetooth/btscanner/libbtscanner.so<br />
./Qt/Examples/Qt-5.15.2/bluetooth/build-btscanner-Desktop-Debug/libbtscanner.so<br />
qe@qe-desktop:~$</p>
]]></description><link>https://forum.qt.io/post/662453</link><guid isPermaLink="true">https://forum.qt.io/post/662453</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sun, 30 May 2021 20:11:41 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 18:49:10 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/662417">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">It looks as linker is creating .a (shared ?)   library.</p>
</blockquote>
<p dir="auto">That's an archive, a.k.a. a static library.</p>
<blockquote>
<p dir="auto">now SUDDIRS  adds .pro</p>
</blockquote>
<p dir="auto"><code>SUBDIRS</code> is simply a tree-like build for <code>qmake</code>. It doesn't have to do with code at all. Each project is built separately and all considerations for stand-alone projects apply. The <code>INCLUDEPATH</code> is necessary for the compiler so it has the declarations avaialble, without it names (i.e. identifiers) mean nothing to it. <code>LIBS</code> is necessary for the linker, whenever it starts to resolve the objects it needs to know what symbol is defined in which binary (library, object file, executable).</p>
<blockquote>
<p dir="auto">HOWEVER, I now have another issue<br />
if I add<br />
CONFIG += staticlib - as recommended in other forum</p>
</blockquote>
<p dir="auto">Don't do that. Stick to dynamic libraries, it's simpler. Otherwise you need to satisfy the dependencies on the client side for the linking.<br />
Also on linux it's necessary as far as I recall to add the archive to the <code>PRE_TARGETDEPS</code>.</p>
]]></description><link>https://forum.qt.io/post/662438</link><guid isPermaLink="true">https://forum.qt.io/post/662438</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Sun, 30 May 2021 18:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 18:40:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> This is a very good point .</p>
<p dir="auto">"normal " code has<br />
header<br />
source file</p>
<p dir="auto">relations.</p>
<p dir="auto">now SUDDIRS  adds .pro</p>
<p dir="auto">and default project  mimic  the</p>
<p dir="auto">header<br />
source file</p>
<p dir="auto">relation in .pro file</p>
<p dir="auto">without  changing anything - not sure about that - done that few versions ago</p>
<p dir="auto">I can "include"<br />
a library  header file  in my .cpp file - the <strong>client reference point to library</strong>   ( my inherited definition ) - editor(!)  will complain if an attempt to include inaccessible file is made (nice real time feature kidos ) ,<br />
intelisense will display  ONLY accessible files .</p>
<p dir="auto">What is suggested that IN ADDITION to C++ relations between client and library</p>
<p dir="auto">there need to be manually added  "stuff " to .pro  file where access to libray is desired.</p>
<p dir="auto"><strong>I would expect this to be done  by SUBDIR option "add library" .<br />
Easy to</strong> verify.</p>
<p dir="auto">Sounds reasonable.</p>
<p dir="auto">HOWEVER, I now have another issue<br />
if I add<br />
CONFIG += staticlib  - as recommended in other forum</p>
<p dir="auto">I get  bscanner.a   = not <a href="http://btscanner.so" target="_blank" rel="noopener noreferrer nofollow ugc">btscanner.so</a></p>
<p dir="auto">So I got two issues right now.<br />
This will take some time to fix  stand by...</p>
]]></description><link>https://forum.qt.io/post/662434</link><guid isPermaLink="true">https://forum.qt.io/post/662434</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sun, 30 May 2021 18:40:34 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 17:31:46 GMT]]></title><description><![CDATA[<p dir="auto">I am making some progress</p>
<p dir="auto">Here is part of the compiler / linker .<br />
It looks as linker is creating .a (shared ?)   library.</p>
<p dir="auto">I have added -Wl --verbose , much needed tool to track what is happening ,and do not the see  "<a href="http://btscanner.so" target="_blank" rel="noopener noreferrer nofollow ugc">btscanner.so</a>"  library build at all.</p>
<p dir="auto">I am going to see how adding the  HEADER and INCLUDE to .pro file make a difference.</p>
<p dir="auto">IT SHOULD - I have been missing that from get go !!!</p>
<p dir="auto">/home/qe/Qt_5/6.2.0/gcc_64/libexec/moc -DBTSCANNER_PROJECT_LIBRARY -DQT_QML_DEBUG -DQT_BLUETOOTH_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/moc_predefs.h -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtNetwork -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtDBus -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include service.h -o moc_service.cpp<br />
g++ -c -pipe -g -fPIC -std=gnu++1z -Wall -Wextra -D_REENTRANT -DBTSCANNER_PROJECT_LIBRARY -DQT_QML_DEBUG -DQT_BLUETOOTH_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtNetwork -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtDBus -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o moc_device.o moc_device.cpp<br />
g++ -c -pipe -g -fPIC -std=gnu++1z -Wall -Wextra -D_REENTRANT -DBTSCANNER_PROJECT_LIBRARY -DQT_QML_DEBUG -DQT_BLUETOOTH_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtNetwork -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtDBus -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o moc_service.o moc_service.cpp<br />
rm -f libbtscanner.a<br />
ar cqs libbtscanner.a main.o device.o service.o moc_device.o moc_service.o</p>
]]></description><link>https://forum.qt.io/post/662417</link><guid isPermaLink="true">https://forum.qt.io/post/662417</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sun, 30 May 2021 17:31:46 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sun, 30 May 2021 00:08:33 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/662286">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">but I can see the build in compiler output ...</p>
</blockquote>
<p dir="auto">The compiler complains that it doesn't know what the <code>btscanner</code> identifier means. It is missing a declaration or a definition, which usually means that the includes are wrong (somehow). Is this a function?</p>
<blockquote>
<p dir="auto">g++ -Wl,-rpath,/home/qe/Qt_5/6.2.0/gcc_64/lib -shared -Wl,-soname,libbtscanner.so.1 -o libbtscanner.so.1.0.0 main.o device.o service.o moc_device.o moc_service.o  /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Bluetooth.so -pthread /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Network.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6DBus.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Widgets.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Gui.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Core.so -lpthread -lGL</p>
</blockquote>
<p dir="auto">That's the linker call, so the library is in <code>/home/qe/Qt_5/6.2.0/gcc_64/lib</code>, assuming that the rpath's set to the build directory.</p>
<blockquote>
<p dir="auto">I did add  DEFINES  but not sure what the does.</p>
</blockquote>
<p dir="auto">I don't follow. What defines and why?</p>
<blockquote>
<p dir="auto">PS Looks as "tick tack toe" make a mess when copying . I am sure there is a hack to fix that.<br />
[snip]</p>
</blockquote>
<p dir="auto">If that's the project file that's supposed to use the <code>btscanner</code> library, then it is missing the proper <code>INCLUDEPATH</code> and the <code>LIBS</code> variables being filled in. It doesn't matter if that's an application or library (template) it still needs to link against the dependency to be able to use it.</p>
<p dir="auto">Should look something like this:</p>
<pre><code>HEADERS += \
    TEST_LIBRARY_global.h \
    test_library.h

INCLUDEPATH += /home/qe/&lt;...&gt;/include&lt;...&gt;                   # Wherever the headers reside
LIBS += -L/home/qe/Qt_5/6.2.0/gcc_64/lib -lbtscanner
</code></pre>
]]></description><link>https://forum.qt.io/post/662336</link><guid isPermaLink="true">https://forum.qt.io/post/662336</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Sun, 30 May 2021 00:08:33 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sat, 29 May 2021 15:01:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> Here is a screen shot of the error , ignore the extra ")" error.<br />
I'll check  the path...<br />
but I can see the build  in compiler  output ...<br />
Should I post it ?</p>
<p dir="auto"><img src="https://ddgobkiprc33d.cloudfront.net/6012fccd-89dd-4e7c-98af-a3041c7b5583.png" alt="b63d89fa-cb49-4e14-b541-7eadc7e5726e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I decided to post part of the compiler output.<br />
Could you give me an idea where in the output is the resulting library path?</p>
<p dir="auto">-DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/qe/Qt_5/6.2.0/gcc_64QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtNetwork -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtDBus -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o moc_device.o moc_device.cpp<br />
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DBTSCANNER_PROJECT_LIBRARY -DQT_QML_DEBUG -DQT_BLUETOOTH_LIB -DQT_NETWORK_LIB -DQT_DBUS_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I/home/qe/Qt_5/6.2.0/gcc_64QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtBluetooth -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtNetwork -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtDBus -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o moc_service.o moc_service.cpp<br />
rm -f libbtscanner.so.1.0.0 <a href="http://libbtscanner.so" target="_blank" rel="noopener noreferrer nofollow ugc">libbtscanner.so</a> libbtscanner.so.1 libbtscanner.so.1.0<br />
g++ -Wl,-rpath,/home/qe/Qt_5/6.2.0/gcc_64/lib -shared -Wl,-soname,libbtscanner.so.1 -o libbtscanner.so.1.0.0 main.o device.o service.o moc_device.o moc_service.o  /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Bluetooth.so -pthread /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Network.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6DBus.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Widgets.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Gui.so /home/qe/Qt_5/6.2.0/gcc_64/lib/libQt6Core.so -lpthread -lGL<br />
ln -s libbtscanner.so.1.0.0 <a href="http://libbtscanner.so" target="_blank" rel="noopener noreferrer nofollow ugc">libbtscanner.so</a><br />
ln -s libbtscanner.so.1.0.0 libbtscanner.so.1<br />
ln -s libbtscanner.so.1.0.0 libbtscanner.so.1.0<br />
09:37:11: The process "/usr/bin/make" exited normally.<br />
09:37:11: Elapsed time: 00:22.</p>
<p dir="auto">Here is how library  project looks when built  from scratch by Qt<br />
Notice removal of gui  and the<br />
Default rules for deployment.</p>
<p dir="auto">I did add  DEFINES  but not sure what the does.</p>
<p dir="auto">I do not have  either in my project I build from "normal" project by adding<br />
TEMPLATE = lib</p>
<p dir="auto">PS Looks as "tick tack toe" make a mess when copying . I am sure there is a hack to fix that.</p>
<pre><code>QT -= gui

TEMPLATE = lib
DEFINES += TEST_LIBRARY_LIBRARY

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    test_library.cpp

HEADERS += \
    TEST_LIBRARY_global.h \
    test_library.h

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target

</code></pre>
]]></description><link>https://forum.qt.io/post/662286</link><guid isPermaLink="true">https://forum.qt.io/post/662286</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sat, 29 May 2021 15:01:37 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sat, 29 May 2021 09:16:24 GMT]]></title><description><![CDATA[<p dir="auto">What's the exact errors?</p>
<p dir="auto">Check the names and the paths, there should be <code>libbtscanner.so</code> inside <code>$$OUT_PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source</code> or it won't build (drop the trailing <code>/</code> too).</p>
<p dir="auto">If this library is a static one, you may want to force it within the <code>PRE_TARGETDEPS</code>[1].</p>
<p dir="auto">[1] <a href="https://doc.qt.io/qt-5/qmake-variable-reference.html#pre-targetdeps" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qmake-variable-reference.html#pre-targetdeps</a></p>
]]></description><link>https://forum.qt.io/post/662252</link><guid isPermaLink="true">https://forum.qt.io/post/662252</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Sat, 29 May 2021 09:16:24 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Sat, 29 May 2021 02:09:10 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch OK, I have one more request  for help.<br />
My project builds, I have added the library to one of the projects.<br />
I   have the library linked in .pro file.</p>
<p dir="auto">unix:!macx: LIBS += -L$$OUT_PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/ -lbtscanner</p>
<p dir="auto">INCLUDEPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source<br />
DEPENDPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source</p>
<p dir="auto">unix:!macx: LIBS += -L$$OUT_PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/ -lbtscanner</p>
<p dir="auto">INCLUDEPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source<br />
DEPENDPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source<br />
.</p>
<p dir="auto">unix:!macx: LIBS += -L$$OUT_PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/ -lbtscanner</p>
<p dir="auto">INCLUDEPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source<br />
DEPENDPATH += $$PWD/../../../../../QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source</p>
<p dir="auto">I still cannot use the library.</p>
<p dir="auto">The editor does not recognize<br />
"btscanner"<br />
I am still missing something and running out of ideas.</p>
]]></description><link>https://forum.qt.io/post/662233</link><guid isPermaLink="true">https://forum.qt.io/post/662233</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Sat, 29 May 2021 02:09:10 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 18:10:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> said in <a href="/post/662182">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">Looking at the defines, I'm pretty sure you forgot to add the module to list in the .pro file (the <code>QT</code> variable).</p>
</blockquote>
<p dir="auto">You found the problem you are the man...<br />
It complies and tun !</p>
<p dir="auto">AS a poor excuse - I did not think the client using the library needs the module.<br />
Lesson learn.<br />
THANKS</p>
]]></description><link>https://forum.qt.io/post/662188</link><guid isPermaLink="true">https://forum.qt.io/post/662188</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Fri, 28 May 2021 18:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 17:48:51 GMT]]></title><description><![CDATA[<p dir="auto">Looking at the defines, I'm pretty sure you forgot to add the module to list in the .pro file (the <code>QT</code> variable).</p>
]]></description><link>https://forum.qt.io/post/662182</link><guid isPermaLink="true">https://forum.qt.io/post/662182</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Fri, 28 May 2021 17:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 16:40:20 GMT]]></title><description><![CDATA[<p dir="auto">I am not sure about the code copy.<br />
Anyway - I need to compare the library compile output, but I will not copy it here unless asked for.</p>
]]></description><link>https://forum.qt.io/post/662178</link><guid isPermaLink="true">https://forum.qt.io/post/662178</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Fri, 28 May 2021 16:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 16:17:01 GMT]]></title><description><![CDATA[<p dir="auto">I am posting this in case somebody smarter than me can see the problem</p>
<p dir="auto">I am not sure the answer is there , but it is a real place to check stuff.</p>
<p dir="auto">AND I DO APOLOGIZE FOR TAKING SO MUCH MEMORY</p>
<pre><code>I am posting this in case somebody smarter than me can see the problem 

I am not sure the answer is there , but it is a real place to check stuff.

AND I DO APOLOGIZE FOR TAKING SO MUCH MEMORY 






&lt;pre&gt;11:05:54: Running steps for project TEST_SUB...
11:05:54: Starting: "/usr/bin/make" clean -j4
rm -f moc_predefs.h
rm -f moc_mainwindow.cpp
rm -f ui_mainwindow.h
rm -f main.o mainwindow.o moc_mainwindow.o
rm -f *~ core *.core
11:05:54: The process "/usr/bin/make" exited normally.
11:05:55: Starting: "/home/qe/Qt_5/6.2.0/gcc_64/bin/qmake" /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB/FIRST_SUB.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
11:05:55: The process "/home/qe/Qt_5/6.2.0/gcc_64/bin/qmake" exited normally.
11:05:55: Starting: "/usr/bin/make" -f /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/build-TEST_SUB-Desktop_Qt_6_2_0_GCC_64bit-Debug/FIRST_SUB/Makefile qmake_all
make: Nothing to be done for 'qmake_all'.
11:05:55: The process "/usr/bin/make" exited normally.
11:05:55: Starting: "/usr/bin/make" -j4
/home/qe/Qt_5/6.2.0/gcc_64/libexec/uic ../../TEST_SUB/FIRST_SUB/mainwindow.ui -o ui_mainwindow.h
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../TEST_SUB/FIRST_SUB -I. -I../../TEST_SUB/TEST_PROJECT -I../../TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -IQTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o main.o ../../TEST_SUB/FIRST_SUB/main.cpp
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../TEST_SUB/FIRST_SUB -I. -I../../TEST_SUB/TEST_PROJECT -I../../TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -IQTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../../TEST_SUB/FIRST_SUB/mainwindow.cpp
g++ -pipe -g -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h /home/qe/Qt_5/6.2.0/gcc_64/mkspecs/features/data/dummy.cpp
/home/qe/Qt_5/6.2.0/gcc_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/build-TEST_SUB-Desktop_Qt_6_2_0_GCC_64bit-Debug/FIRST_SUB/moc_predefs.h -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/TEST_PROJECT -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB/QTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../../TEST_SUB/FIRST_SUB/mainwindow.h -o moc_mainwindow.cpp
In file included from ../../TEST_SUB/FIRST_SUB/main.cpp:14:
/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/device.h:56:10: fatal error: qbluetoothlocaldevice.h: No such file or directory
   56 | #include &lt;qbluetoothlocaldevice.h&gt;
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:1084: main.o] Error 1
make: *** Waiting for unfinished jobs....
11:06:03: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project TEST_SUB (kit: Desktop Qt 6.2.0 GCC 64bit)
When executing step "Make"
11:06:03: Elapsed time: 00:09.
&lt;/pre&gt;
</code></pre>
<p dir="auto">&lt;pre&gt;11:05:54: Running steps for project TEST_SUB...<br />
11:05:54: Starting: "/usr/bin/make" clean -j4<br />
rm -f moc_predefs.h<br />
rm -f moc_mainwindow.cpp<br />
rm -f ui_mainwindow.h<br />
rm -f main.o mainwindow.o moc_mainwindow.o<br />
rm -f *~ core *.core<br />
11:05:54: The process "/usr/bin/make" exited normally.<br />
11:05:55: Starting: "/home/qe/Qt_5/6.2.0/gcc_64/bin/qmake" /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB/FIRST_SUB.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug<br />
11:05:55: The process "/home/qe/Qt_5/6.2.0/gcc_64/bin/qmake" exited normally.<br />
11:05:55: Starting: "/usr/bin/make" -f /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/build-TEST_SUB-Desktop_Qt_6_2_0_GCC_64bit-Debug/FIRST_SUB/Makefile qmake_all<br />
make: Nothing to be done for 'qmake_all'.<br />
11:05:55: The process "/usr/bin/make" exited normally.<br />
11:05:55: Starting: "/usr/bin/make" -j4<br />
/home/qe/Qt_5/6.2.0/gcc_64/libexec/uic ../../TEST_SUB/FIRST_SUB/mainwindow.ui -o ui_mainwindow.h<br />
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../TEST_SUB/FIRST_SUB -I. -I../../TEST_SUB/TEST_PROJECT -I../../TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -IQTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o main.o ../../TEST_SUB/FIRST_SUB/main.cpp<br />
g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../../TEST_SUB/FIRST_SUB -I. -I../../TEST_SUB/TEST_PROJECT -I../../TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -IQTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I. -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../../TEST_SUB/FIRST_SUB/mainwindow.cpp<br />
g++ -pipe -g -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h /home/qe/Qt_5/6.2.0/gcc_64/mkspecs/features/data/dummy.cpp<br />
/home/qe/Qt_5/6.2.0/gcc_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/build-TEST_SUB-Desktop_Qt_6_2_0_GCC_64bit-Debug/FIRST_SUB/moc_predefs.h -I/home/qe/Qt_5/6.2.0/gcc_64/mkspecs/linux-g++ -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/TEST_PROJECT -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/TEST_LIBRARY -I/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source -I/media/qe/TSET_QT_LABEL/TEST_FOLDER/TEST_SUB_MAIN/TEST_SUB_PROJECT/TEST_SUB/FIRST_SUB/QTDIR -I/home/qe/Qt_5/6.2.0/gcc_64/include -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtWidgets -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtGui -I/home/qe/Qt_5/6.2.0/gcc_64/include/QtCore -I. -I/usr/include/c++/10 -I/usr/include/x86_64-linux-gnu/c++/10 -I/usr/include/c++/10/backward -I/usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../../TEST_SUB/FIRST_SUB/mainwindow.h -o moc_mainwindow.cpp<br />
In file included from ../../TEST_SUB/FIRST_SUB/main.cpp:14:<br />
/media/qe/TSET_QT_LABEL/QT_6/QT6_PRO/CAT/SUB_PRO/EXAMPLES_COPY/QT_5/Examples/Qt-6.2.0/bluetooth/btscanner_source/device.h:56:10: fatal error: qbluetoothlocaldevice.h: No such file or directory<br />
56 | #include &lt;qbluetoothlocaldevice.h&gt;<br />
|          ^~~~~~~~~~~~~~~~~~~~~~~~~<br />
compilation terminated.<br />
make: *** [Makefile:1084: main.o] Error 1<br />
make: *** Waiting for unfinished jobs....<br />
11:06:03: The process "/usr/bin/make" exited with code 2.<br />
Error while building/deploying project TEST_SUB (kit: Desktop Qt 6.2.0 GCC 64bit)<br />
When executing step "Make"<br />
11:06:03: Elapsed time: 00:09.<br />
&lt;/pre&gt;</p>
]]></description><link>https://forum.qt.io/post/662172</link><guid isPermaLink="true">https://forum.qt.io/post/662172</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Fri, 28 May 2021 16:17:01 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 15:47:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> Thanks I thinks I can digest your advise, it does not really tell how a project works.<br />
If I run the project as  TEMPLATE = app it works just as expected. No problems wiht included.<br />
When I change the project TEMPLATE = lib it complies and complains I need to have executable. No problems with includes.<br />
When I attempt to use the what is now a static library , by another project in SUBDIRS - it fails to find the first include  and stops to compile .<br />
I have a strange feeling the SUBDIRS projects are  on different "loads of  Qt"<br />
and SUDIRS does not care since they are "independent" , but will not work together as project and its library.</p>
<p dir="auto">And you post is pointing that way.<br />
I have a copy of compiler output and I may be able to  prove this  theory .</p>
<p dir="auto">Many thanks for your post, appreciate it .</p>
<p dir="auto">Now I have to make sure 5.15.2-2 IS USED  by <strong>BOTH library and the client.</strong></p>
<p dir="auto">qe@qe-desktop:~$ dpkg --list | grep libqt5bluetooth5<br />
ii  libqt5bluetooth5:amd64                     5.15.2-2                                                             amd64        Qt Connectivity Bluetooth module<br />
ii  libqt5bluetooth5-bin                       5.15.2-2                                                             amd64        Qt Connectivity Bluetooth module helper binaries<br />
qe@qe-desktop:~$</p>
]]></description><link>https://forum.qt.io/post/662168</link><guid isPermaLink="true">https://forum.qt.io/post/662168</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Fri, 28 May 2021 15:47:54 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 02:10:10 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/661987">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">/usr/include/x86_64-linux-gnu/qt5</p>
</blockquote>
<p dir="auto">This is the system include directory. Meaning that you're building with a Qt provided by your package manager.</p>
<blockquote>
<p dir="auto">A recommended fix is to add</p>
</blockquote>
<p dir="auto">The recommendation's wrong. The system include dir is always searched as part of the build process. The headers are installed by your system package manager when you install the proper packages.<br />
If <code>dpkg --list | grep libqt5bluetooth5</code> returns empty then you don't have the bluetooth module installed. Use <code>apt-get</code>, <code>synaptic</code> or whatever tool you use to manage your packages to install it.</p>
<blockquote>
<p dir="auto">How do I find base path for bluetooth ?</p>
</blockquote>
<p dir="auto">There's no such base path for the system provided module. It's under the Qt includes (as provided by <code>qmake</code> like above) under a directory named after the module. A piece of advice:</p>
<pre><code>#include &lt;qbluetoothaddress.h&gt;
</code></pre>
<p dir="auto">should be:</p>
<pre><code>#include &lt;QBluetoothAddress&gt;
</code></pre>
<p dir="auto">and also for the rest of the includes.</p>
]]></description><link>https://forum.qt.io/post/661989</link><guid isPermaLink="true">https://forum.qt.io/post/661989</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Fri, 28 May 2021 02:10:10 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 01:55:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kshegunov">@<bdi>kshegunov</bdi></a> said in <a href="/post/661986">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">There's no QTDIR environment variable, it used be set in Qt4 times but it since had been dropped. The Qt includes directory can be obtained by the <code>qmake</code> used to build the project:</p>
<pre><code>qmake -query QT_INSTALL_HEADERS
</code></pre>
</blockquote>
<p dir="auto">OK, sounds too simple .<br />
I get this<br />
What is missing in command?</p>
<p dir="auto"><br />
qe@qe-desktop:~$ qmake -query QT_INSTALL_HEADERS<br />
/usr/include/x86_64-linux-gnu/qt5<br />
qe@qe-desktop:~$</p>
<p dir="auto">A recommended fix is to add<br />
INCLUDEPATH += (Base Path to openssl includes)<br />
to project file .</p>
<p dir="auto">How do I find base path for bluetooth ?</p>
]]></description><link>https://forum.qt.io/post/661987</link><guid isPermaLink="true">https://forum.qt.io/post/661987</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Fri, 28 May 2021 01:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Fri, 28 May 2021 01:01:15 GMT]]></title><description><![CDATA[<p dir="auto">There's no QTDIR environment variable, it used be set in Qt4 times but it since had been dropped. The Qt includes directory can be obtained by the <code>qmake</code> used to build the project:</p>
<pre><code>qmake -query QT_INSTALL_HEADERS
</code></pre>
]]></description><link>https://forum.qt.io/post/661986</link><guid isPermaLink="true">https://forum.qt.io/post/661986</guid><dc:creator><![CDATA[kshegunov]]></dc:creator><pubDate>Fri, 28 May 2021 01:01:15 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Thu, 27 May 2021 19:54:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hanson">@<bdi>Hanson</bdi></a> Not sure where and how, but I like to know why.</p>
<p dir="auto">I have added</p>
<p dir="auto">INCLUDEPATH =  "$(QTDIR)QtBluetooth"</p>
<p dir="auto">to pro file with no change .<br />
I  like to identify the include tree/ chain for the bluetooth includes.<br />
I am working on that.</p>
]]></description><link>https://forum.qt.io/post/661960</link><guid isPermaLink="true">https://forum.qt.io/post/661960</guid><dc:creator><![CDATA[Anonymous_Banned275]]></dc:creator><pubDate>Thu, 27 May 2021 19:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to Need help seeing my include on Thu, 27 May 2021 03:18:21 GMT]]></title><description><![CDATA[<p dir="auto">@AnneRanch said in <a href="/post/661546">Need help seeing my include</a>:</p>
<blockquote>
<p dir="auto">include<br />
you should add the AdditionalIncludeDirectories like "$(QTDIR)QtBluetooth"</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/661814</link><guid isPermaLink="true">https://forum.qt.io/post/661814</guid><dc:creator><![CDATA[Hanson]]></dc:creator><pubDate>Thu, 27 May 2021 03:18:21 GMT</pubDate></item></channel></rss>