Thank you Alex:
I did build earlier using the instructions given on the web that you referred 
to. I was also able to run the QGIS (the built version) executable (after 
manually copying several libraries that were needed).

I now wanted to add my own plugin.That is when the real challenge started. I 
could compile the dll's that came from the trunk. I tried to add my own project 
following the plugin development directions and I could not get very far. That 
is where I am today. 

I do have experience with C++ and visual studio. I have written a few 
standalone applications that I want to run from within QGIS. 

Right now I am trying to make a simple dll as per the instructions given on the 
web and it has not gotten me anywhere. 

I tried rerunning CMake and I get a new error that I did not get before, and if 
anyone of you have any idea why let me know. I do have SIP installed and I even 
went to the extent of compiling it myself and CMake still could not find it.

Quantum GIS version: 1.7.0 Trunk (10700)
Found GRASS: C:/OSGeo4W/apps/grass/grass-6.4.0 (6.4.0)
Found Iconv: C:/OSGeo4W/lib/iconv.lib
Found Proj: C:/OSGeo4W/lib/proj.lib
Found Expat: C:/OSGeo4W/lib/libexpat.lib
Found GSL: C:/OSGeo4W/lib/gsl.lib;C:/OSGeo4W/lib/cblas.lib
Found GEOS: C:/OSGeo4W/lib/geos_c_i.lib
Found GDAL: C:/OSGeo4W/apps/gdal-17/lib/gdal_i.lib
Found QWT: C:/OSGeo4W/lib/qwt5.lib
CMake Error at cmake/FindSIP.cmake:54 (MESSAGE):
  Could not find SIP
Call Stack (most recent call first):
  CMakeLists.txt:399 (FIND_PACKAGE)

 Any help is greatly appreciated,
 
Maaza

--- On Sat, 2/5/11, Alex Mandel <[email protected]> wrote:

From: Alex Mandel <[email protected]>
Subject: Re: [Qgis-developer] plugin development in Win XP
To: [email protected]
Date: Saturday, February 5, 2011, 8:32 PM

I think what Giovanni was implying is that you should setup to build
QGIS from source and that once you have that working your build
environment should work for plugins.

See http://www.qgis.org/wiki/Building_QGIS_from_Source#Building_on_Windows

Enjoy,
Alex

On 02/04/2011 10:21 AM, maaza mekuria wrote:
> I am saying that it is not the same. Plugins are DLL's and setup comes 
> already pre-packaged and I just had to follow instructions that were 
> clear. 
> 
> With the plugins, Dr. Marco's document is written for Linux and then it is 
> also not clear. I think the instructions given for the update of the source 
> files are not correct. 
> 
> What are the required directories for the plugin? Do I need all the extra 
> files cmake, .cxx, .svg, etc for the plugin to work? 
> 
> Just wondering if I am making demands that is not acceptable. If so please 
> let me know.
> 
> Thank you,
> 
> Maaza  
> 
> 
> 
> --- On Fri, 2/4/11, G. Allegri <[email protected]> wrote:
> 
> From: G. Allegri <[email protected]>
> Subject: Re: [Qgis-developer] plugin development in Win XP
> To: "maaza mekuria" <[email protected]>
> Cc: [email protected]
> Date: Friday, February 4, 2011, 9:15 AM
> 
> If you're able to build QGis, you're able to build the plugins too, as QGis 
> has already builtin plugins. Have a look to this folder [1]. My first trial 
> was create a new folder in my project (in VS I mean) and setup the same 
> structure of the other plugins.
> 
> Giovanni
> 
> [1] http://trac.osgeo.org/qgis/browser/trunk/qgis/src/plugins
> 
> 2011/2/4 maaza mekuria <[email protected]>
> 
> I am repeating my question since it may not be , is it possible to build a 
> plugin using WinXP and Visual Studio 2008 (I assume it is)? And is there any 
> documentation on that? Or should one copy another plugin from the trunk and 
> try to adopt it? Or should one resort to QT only for plugin development?
> 
> 
> Thank you,
> 
> Maaza
> 
> --- On Thu, 2/3/11, maaza mekuria <[email protected]> wrote:
> 
> 
> From: maaza mekuria <[email protected]>
> Subject: [Qgis-developer] plugin development in Win XP
> To: [email protected]
> 
> Date: Thursday, February 3, 2011, 7:24 PM
> 
> 
> I am struggling to build a plugin in QGIS. I was able to build the source and 
> I could run QGIS. But I can not create a plugin. I tried to follow Dr. Marco 
> Hugentobler's example from the compilation guide and since it is linux based 
> I could not duplicate it in the windows env. no matter how I try to compile 
> the sample I get one error after another. Right now the error message below 
> is the latest one. Can any of you offer some
>  direction?
> 
> 
> 1>C:\SW\Src\qgis-trunk\src\gui\qgisinterface.h(54) : error C2470: 
> 'QgisInterface' : looks like a function definition, but there is no parameter 
> list; skipping apparent body
> 1>c:\sw\src\qgis-trunk\src\core\qgis.h(32) : error C2470: 'QGis' : looks like 
> a function definition, but there is no parameter list; skipping apparent body
> 
> 
> 
> Maaza
> 

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer



      
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to