QFileSystemWatcher's signal "directoryChanged" not emitted
-
@VRonin ok thanks vronin...
-
@VRonin it is done.but to debug qfilesystemwatcher should I open corelib.pro in QtCreator (QtCore) and build it debug and put breakpoints and attach to my app synchro ?
-
@VRonin I want to put a breakpoint l.364 of QFileSystemWatcher_win.cpp and watch error l365
-
@VRonin there is "attach to unstarted application" and "debug an external application" in Qtcreator\debug. is it possible to use one this option to debug QtCore (corelib) with my app synchro.exe ?
-
@VRonin when building corelib I have this error ..\corelib\global\qt_pch.h:50:21: fatal error: qglobal.h: No such file or directory
#include <qglobal.h>
qglobal.h is in the directory but I think I lacks an environment variable ? -
@VRonin OK I think I have found : I have copied the directory include of the source single (.zip) of 5.6.2 in the direcorty qtbase and I have put in my environment variable INCLUDE the path of directory include and reboot my windows...I think it will be ok
-
@VRonin OK I think I have found : I have copied the directory include of the source single (.zip) of 5.6.2 in the direcorty qtbase and I have put in my environment variable INCLUDE the path of directory include and reboot my windows...I think it will be ok
I have put
INCLUDEPATH +="../../include"
INCLUDEPATH +="../../include/QtCore"int he corelib.pro but I have an error In file included from ..\corelib\animation\qabstractanimation.cpp:143:0:
..\corelib\animation\qabstractanimation_p.h:52:31: fatal error: private/qobject_p.h: No such file or directory
#include <private/qobject_p.h> -
I have put
INCLUDEPATH +="../../include"
INCLUDEPATH +="../../include/QtCore"int he corelib.pro but I have an error In file included from ..\corelib\animation\qabstractanimation.cpp:143:0:
..\corelib\animation\qabstractanimation_p.h:52:31: fatal error: private/qobject_p.h: No such file or directory
#include <private/qobject_p.h>It think I will build the whole Qtbase as usually and then open the corelib.pro and put the directory of lib QtCored.dll as build directory and try to debug with my exe (synchro.exe)
-
You have to, qtbase, unlike the other modules, requires that you run configure before building it.
-
You have to, qtbase, unlike the other modules, requires that you run configure before building it.
@SGaist even after done configure,if I want to debug qtcore (corelib) in Qtcreator,it needs to be build with Qtcreator and I can't build it with Qtcreator (mingw).so I can't debug corelib (qtcore) and I don't know how to do.I have built qtbase with command line but it is unuseful...
-
What problem do you get building from the command line ?
-
@SGaist I have added INCLUDEPATH +="../../include"
INCLUDEPATH +="../../include/QtCore"
in the corelib.pro because I had errors on include paths but I have still errors on other include paths:
In file included from C:\qtsrc\qtbase\src\corelib\animation\qabstractanimation.cpp:143:0:
C:\qtsrc\qtbase\src\corelib\animation\qabstractanimation_p.h:52:31: fatal error: private/qobject_p.h: No such file or directory
#include <private/qobject_p.h>
^ -
You have to build qtbase from the command line. There's a lot of stuff happening during the build phase of qtbase like header generation. Therefore, build it once and then start hacking on it.
-
@SGaist I have added INCLUDEPATH +="../../include"
INCLUDEPATH +="../../include/QtCore"
in the corelib.pro because I had errors on include paths but I have still errors on other include paths:
In file included from C:\qtsrc\qtbase\src\corelib\animation\qabstractanimation.cpp:143:0:
C:\qtsrc\qtbase\src\corelib\animation\qabstractanimation_p.h:52:31: fatal error: private/qobject_p.h: No such file or directory
#include <private/qobject_p.h>
^@SGaist these problems are only for building with QTCreator.I have no problem to build with command line.but to debug QTCore in QTcreator I must build with QTcreator
-
You have to, qtbase, unlike the other modules, requires that you run configure before building it.
@SGaist I have built QTbase with command line without problem.But to debug QtCore with QtCreator I must build it with QtCreator.
-
@SGaist these problems are only for building with QTCreator.I have no problem to build with command line.but to debug QTCore in QTcreator I must build with QTcreator
@stephane78 Your assumption is wrong: you don't have to build with QtCreator to be able to debug in QtCreator. You just need to build a debug version.
-
@stephane78 Your assumption is wrong: you don't have to build with QtCreator to be able to debug in QtCreator. You just need to build a debug version.
@jsulm how to debug then ? I have a debug version of Qtbase and I have put the build directory where is the debug version but when I click on the debug button in Qtcreator it tries to build the project....
-
@jsulm how to debug then ? I have a debug version of Qtbase and I have put the build directory where is the debug version but when I click on the debug button in Qtcreator it tries to build the project....
@stephane78 To debug QtBase you need a project which is linked against it - you cannot execute a library, so you need an executable. Create a project write some code which uses QtBase, put a break point and start debugging. You then can step into QtBase code.
-
@jsulm how to debug then ? I have a debug version of Qtbase and I have put the build directory where is the debug version but when I click on the debug button in Qtcreator it tries to build the project....