<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p class="MsoNormal">Hi,<span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span lang="EN-US">I need help
concerning QGis with a C++ developed plugin.<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal">What I have done :<span></span></p>
<ul style="margin-top:0cm" type="disc">
<li class="m_-4587126553470297703gmail-MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">Built my plugin using msvc-2013
compiler, QGis 2.18.5 sources, Qt4
libraries </span><span style="font-family:Wingdings" lang="EN-US">à</span><span lang="EN-US"> It works in release mode. (The plugin
works nice in QGis desktop 2.18)<span></span></span></li>
<li class="m_-4587126553470297703gmail-MsoListParagraph" style="margin-left:0cm"><span lang="EN-US">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. </span><span style="font-family:Wingdings" lang="EN-US">à</span><span lang="EN-US"> 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”<span></span></span></li>
</ul>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Can you
please tell me what is wrong with my plugin debug build ?<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Here is my
.pro file for the release mode :<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">TEMPLATE = lib<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">TARGET = ObsQGis2CPP<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">QT += core gui sql xml<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt">DEFINES += QT_DLL QT_SQL_LIB OBSQGISCPP_LIB
QT_XML_LIB<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">win32:<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">{<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib -lQtCore4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib -lQtGui4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib -lQtXml4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/apps/qgis-rel-<wbr>dev/lib -lqgis_core<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/apps/qgis-rel-<wbr>dev/lib -lqgis_gui<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
INCLUDEPATH += C:/OSGeo4W/include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
DEPENDPATH += C:/OSGeo4W/include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
INCLUDEPATH += C:/OSGeo4W/apps/qgis-rel-dev/<wbr>include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
DEPENDPATH += C:/OSGeo4W/apps/qgis-rel-dev/<wbr>include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">}<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">…<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Here is my
.pro file for the debug mode :<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt">TEMPLATE = lib<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">TARGET = ObsQGis2CPP<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">QT += core gui sql xml<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt">DEFINES += QT_DLL QT_SQL_LIB OBSQGISCPP_LIB
QT_XML_LIB<span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span> </span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">win32:<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">{<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
PRE_TARGETDEPS += C:/OSGeo4W/lib/QtCored4.lib<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
PRE_TARGETDEPS += C:/OSGeo4W/lib/QtGuid4.lib<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
PRE_TARGETDEPS += C:/OSGeo4W/lib/QtXmld4.lib<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> PRE_TARGETDEPS
+= C:/OSGeo4W/lib/QtSqld4.lib<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib/ -lQtCored4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib/ -lQtGuid4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib/ -lQtXmld4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/lib/ -lQtSqld4<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/apps/qgis-rel-<wbr>dev/lib -lqgis_core<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US"> LIBS
+= -LC:/OSGeo4W/apps/qgis-rel-<wbr>dev/lib -lqgis_gui<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
INCLUDEPATH += C:/OSGeo4W/include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
DEPENDPATH += C:/OSGeo4W/include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
INCLUDEPATH += C:/OSGeo4W/apps/qgis-rel-dev/<wbr>include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">
DEPENDPATH += C:/OSGeo4W/apps/qgis-rel-dev/<wbr>include<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">}<span></span></span></p>
<p class="MsoNormal" style="margin-left:35.4pt"><span lang="EN-US">…<span></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best
regards,<span></span></span></p></div>
</blockquote></div><br></div></div>