<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>hi eliu1234,<div><br><div>The *.lib of QGIS should be created by compile. </div><div><span style="font-size: 12pt;">For the Qt's lib , e.g *d.lib. The </span><span style="font-size: 12pt;">qwt should download </span><span style="font-size: 12pt;"> from OSGeo4W,  so the qwt5.lib should found in </span><span style="font-size: 12pt;">OSGeo4W. </span><span style="font-size: 12pt;">The rest </span><span style="font-size: 12pt;">qt </span><span style="font-size: 12pt;">related packages should just</span><span style="font-size: 12pt;"> install a Qt </span><span style="font-size: 12pt;">  from </span><a href="http://qt-project.org/" target="_blank" style="font-size: 12pt;">http://qt-project.org/</a><span style="font-size: 12pt;">, when compiling API using cmake, it can automatically check the QT you installed before.  Remember, t</span><span style="font-size: 12pt;">he minimum version of QT QGIS-2X need is 4.7.0. </span></div><div><span style="font-size: 12pt;">hope this help.</span></div><div><br><div>> Date: Tue, 18 Nov 2014 15:04:34 -0800<br>> From: lby20102@hotmail.com<br>> To: qgis-developer@lists.osgeo.org<br>> Subject: Re: [Qgis-developer] Write custom c++ application using QGIS    under   windows<br>> <br>> Thanks so much for the answer. I am able to get the 32 bit version working.<br>> Right now, I am facing the problem of not able to run debug mode. Since all<br>> those xxxxxd.lib files does not exist with the OSGeo4W installation. Do you<br>> have any idea how to fix this?<br>> <br>> And right now, I cannot seem to print anything in this mode. I tried to use<br>> cout but my output line is not printed. I tried to setup using visual<br>> studio. But is unsure how to include these dll files without their<br>> corresponding library files. Do you have any idea on this?<br>> <br>> Thanks.<br>> <br>> In Reply To<br>> Re: Write custom c++ application using QGIS under  windows<br>> Nov 18, 2014; 7:43am ¡ª by  Nejia Nejia<br>> <br>> Hi, <br>> <br>> First you must download packages listed below from OSGeo4w (<br>> http://qgis.org/en/site/forusers/download.html OSGeo4W Network Installer (32<br>> or 64 bit)): <br>>         - qgis: QGIS desktop <br>>         - grass: GRASS GIS <br>>         - qgis-devel <br>>         - qt4-devel <br>>         - qt4-doc <br>>         - qt4-libs <br>>         - qwt-devel-qt4 <br>>         - qwt-doc-qt <br>>         - qwt-libs-qt4 <br>> <br>> In the post of Denis just replace: <br>> @set PATH=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\qgis-dev\bin;%PATH% <br>> @set<br>> INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\qgis-dev\include <br>> <br>> With: <br>> @set PATH=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\qgis\bin;%PATH% <br>> @set<br>> INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\qgis\include <br>> <br>> (replace qgis-dev with qgis) <br>> <br>> And if you want to build 64 bits applications with visual studio 2010<br>> replace: <br>> set VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio<br>> 9.0\Common7\Tools\ call "C:\Program Files\Microsoft Visual Studio<br>> 9.0\VC\vcvarsall.bat" x86 <br>> <br>> with: <br>> call "%PF86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 if exist<br>> "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" call<br>> "c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x64 /Release<br>> path %path%;%PF86%\Microsoft Visual Studio 10.0\VC\bin <br>> <br>> set SETUPAPI_LIBRARY=%PF86%\Microsoft<br>> SDKs\Windows\v7.0A\Lib\x64\SetupAPI.Lib <br>> if not exist "%SETUPAPI_LIBRARY%" set<br>> SETUPAPI_LIBRARY=%PROGRAMFILES%\Microsoft<br>> SDKs\Windows\v7.1\Lib\x64\SetupAPI.lib <br>> <br>> Cheers, <br>> Nejia <br>> <br>> <br>> <br>> --<br>> View this message in context: http://osgeo-org.1560.x6.nabble.com/Write-custom-c-application-using-QGIS-under-windows-tp5173377p5173692.html<br>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>> _______________________________________________<br>> Qgis-developer mailing list<br>> Qgis-developer@lists.osgeo.org<br>> http://lists.osgeo.org/mailman/listinfo/qgis-developer<br></div></div></div>                                    </div></body>
</html>