Hi,

First you must download packages listed below from OSGeo4w ( 
http://qgis.org/en/site/forusers/download.html OSGeo4W Network Installer (32 or 
64 bit)):
        - qgis: QGIS desktop
        - grass: GRASS GIS
        - qgis-devel
        - qt4-devel
        - qt4-doc
        - qt4-libs
        - qwt-devel-qt4
        - qwt-doc-qt
        - qwt-libs-qt4

In the post of Denis just replace:
@set PATH=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\qgis-dev\bin;%PATH%
@set 
INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\qgis-dev\include

With:
@set PATH=%OSGEO4W_ROOT%\bin;%OSGEO4W_ROOT%\apps\qgis\bin;%PATH%
@set INCLUDE=%INCLUDE%;%OSGEO4W_ROOT%\include;%OSGEO4W_ROOT%\apps\qgis\include

(replace qgis-dev with qgis)

And if you want to build 64 bits applications with visual studio 2010 replace:
set VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\ 
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86

with:
call "%PF86%\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 if exist 
"c:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" call "c:\Program 
Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.Cmd" /x64 /Release path 
%path%;%PF86%\Microsoft Visual Studio 10.0\VC\bin

set SETUPAPI_LIBRARY=%PF86%\Microsoft SDKs\Windows\v7.0A\Lib\x64\SetupAPI.Lib
if not exist "%SETUPAPI_LIBRARY%" set SETUPAPI_LIBRARY=%PROGRAMFILES%\Microsoft 
SDKs\Windows\v7.1\Lib\x64\SetupAPI.lib

Cheers,
Nejia

-----Message d'origine-----
De : qgis-developer-boun...@lists.osgeo.org 
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de eliu1234
Envoyé : mardi 18 novembre 2014 00:15
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Write custom c++ application using QGIS under 
windows

I saw your post on this. And I actually used this .proj file. However, with all 
of your include directory, the header files qgisapplication.h does not exist in 
anyone of them. This is why I am confused about where it can be.

Re: Write custom c++ application using QGIS under windows Nov 17, 2014; 5:47pm 
— by  3nids 3nids Hi,

I wrote a post about that:

http://3nids.wordpress.com/2014/02/27/build-and-deploy-c-qgis-app-on-windows/

I hope it helps

Denis

Le mardi 18 novembre 2014, eliu1234 <[hidden email]> a écrit :
Thanks for the reply.

So after that, I should just include the directory containing the header files 
in .proj?

I tried to do this, however, i get the error in the following stackoverflow
post:
http://stackoverflow.com/questions/26597253/syntax-error-in-qgsapplication-h



--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Write-custom-c-application-using-QGIS-under-windows-tp5173377p5173395.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@...
http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer <javascript:;> 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Write-custom-c-application-using-QGIS-under-windows-tp5173377p5173412.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to