[QGIS-Developer] Debug C++ QGIS plugin with VS
qd qgis
qdqgisdev at gmail.com
Wed Jul 5 05:30:30 PDT 2017
> Hi,
>
>
>
> I need help concerning QGis with a C++ developed plugin.
>
>
>
> What I have done :
>
> - Built my plugin using msvc-2013 compiler, QGis 2.18.5 sources, Qt4
> libraries à It works in release mode. (The plugin works nice in QGis
> desktop 2.18)
> - I have also compiled a debug version (which will permit me to attach
> the process using Visual Studio). I used msvc-2013 too, qgis-rel-dev 2.18.5
> sources, and Qt4 debug libraries. à When I start qgis-bin-dev with my
> plugin in the right folder, QGis crashes and prompts an error message like
> “Debug Assertion Failed! Expression: _pFirstBlock == pHead”
>
>
>
> Can you please tell me what is wrong with my plugin debug build ?
>
>
>
> Here is my .pro file for the release mode :
>
>
>
> TEMPLATE = lib
>
> TARGET = ObsQGis2CPP
>
> QT += core gui sql xml
>
>
>
> DEFINES += QT_DLL QT_SQL_LIB OBSQGISCPP_LIB QT_XML_LIB
>
>
>
> win32:
>
> {
>
> LIBS += -LC:/OSGeo4W/lib -lQtCore4
>
> LIBS += -LC:/OSGeo4W/lib -lQtGui4
>
> LIBS += -LC:/OSGeo4W/lib -lQtXml4
>
> LIBS += -LC:/OSGeo4W/apps/qgis-rel-dev/lib -lqgis_core
>
> LIBS += -LC:/OSGeo4W/apps/qgis-rel-dev/lib -lqgis_gui
>
> INCLUDEPATH += C:/OSGeo4W/include
>
> DEPENDPATH += C:/OSGeo4W/include
>
> INCLUDEPATH += C:/OSGeo4W/apps/qgis-rel-dev/include
>
> DEPENDPATH += C:/OSGeo4W/apps/qgis-rel-dev/include
>
> }
>
> …
>
>
>
>
>
>
>
> Here is my .pro file for the debug mode :
>
>
>
> TEMPLATE = lib
>
> TARGET = ObsQGis2CPP
>
> QT += core gui sql xml
>
>
>
> DEFINES += QT_DLL QT_SQL_LIB OBSQGISCPP_LIB QT_XML_LIB
>
>
>
>
>
> win32:
>
> {
>
> PRE_TARGETDEPS += C:/OSGeo4W/lib/QtCored4.lib
>
> PRE_TARGETDEPS += C:/OSGeo4W/lib/QtGuid4.lib
>
> PRE_TARGETDEPS += C:/OSGeo4W/lib/QtXmld4.lib
>
> PRE_TARGETDEPS += C:/OSGeo4W/lib/QtSqld4.lib
>
> LIBS += -LC:/OSGeo4W/lib/ -lQtCored4
>
> LIBS += -LC:/OSGeo4W/lib/ -lQtGuid4
>
> LIBS += -LC:/OSGeo4W/lib/ -lQtXmld4
>
> LIBS += -LC:/OSGeo4W/lib/ -lQtSqld4
>
> LIBS += -LC:/OSGeo4W/apps/qgis-rel-dev/lib -lqgis_core
>
> LIBS += -LC:/OSGeo4W/apps/qgis-rel-dev/lib -lqgis_gui
>
> INCLUDEPATH += C:/OSGeo4W/include
>
> DEPENDPATH += C:/OSGeo4W/include
>
> INCLUDEPATH += C:/OSGeo4W/apps/qgis-rel-dev/include
>
> DEPENDPATH += C:/OSGeo4W/apps/qgis-rel-dev/include
>
> }
>
> …
>
>
>
> Best regards,
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170705/1f16f331/attachment.html>
More information about the QGIS-Developer
mailing list