Hi devs,<br>I also had problems to get the startup on c++ plugins development. Mainly because there was no Plugin Builder for C++. So we had to write everything from scratch and many are repetitive tasks. <br>I though about writing a plugin builder for c++ but it never got out of planning phase. Anyone interested in developping?<br>
Best regards,<br>Mauricio<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 6:55 PM, Tim Sutton <span dir="ltr">&lt;<a href="mailto:lists@linfiniti.com">lists@linfiniti.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi<br>
<br>
On Fri, Feb 18, 2011 at 10:38 PM, sailmcm &lt;<a href="mailto:sailmcm@yahoo.com">sailmcm@yahoo.com</a>&gt; wrote:<br>
&gt; Thanks Goivanni, for the help and encouragment.  I have read both documents and I was not able to resolve all problems. As you suggested I will try harder.<br>
&gt;<br>
<br>
Maaza - once you have QGIS building from source in windows the process<br>
for building a new plugins is quite simple. Just copy and paste a<br>
simple plugin folder like copyright plugin, name the folder something<br>
like myplugin or whatever and then work through each and every file in<br>
that dir (using search and replace where it makes sense to do so) to<br>
make it your own. Look in the CMakeLists.txt - its not that hard -<br>
typically you just need to add your .h and .cpp files to the list. If<br>
you are able to use linux, you can even more easily just use the<br>
plugin_builder.py script in that src/plugins directory and it will<br>
generate for you a &#39;hello world&#39; C++ plugin.<br>
<br>
All that said you will need to understand Qt4 to do anything useful<br>
once you get going...<br>
<br>
Have fun!<br>
<br>
Regards<br>
<br>
Tim<br>
<br>
<br>
&gt; &quot;G. Allegri&quot; &lt;<a href="mailto:giohappy@gmail.com">giohappy@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;Maaza, I think your approach doesn&#39;t help to give you a hand.<br>
&gt;&gt;The community cannot supply you the *time* you should invest in trying and,<br>
&gt;&gt;maybe, learning the necessary basics to do what you need. You shoud try and<br>
&gt;&gt;try and the, eventually, ask about things that go wrong.<br>
&gt;&gt;<br>
&gt;&gt;QGis plugins are C++, with some macros defined by Qt. Nothing more, nothing<br>
&gt;&gt;less (am I wrong?). If you&#39;re able to compile C++ code in Visual Studio, you<br>
&gt;&gt;don&#39;t need to rely on Cmakelist. It can help, because it makes a lot of work<br>
&gt;&gt;for you, and you can be inspired by other plugins. But you also can build<br>
&gt;&gt;and link the usual way.<br>
&gt;&gt;<br>
&gt;&gt;Have you read the &quot;QGIS Coding and Compilation Guide&quot; [1]?<br>
&gt;&gt;<br>
&gt;&gt;giovanni<br>
&gt;&gt;<br>
&gt;&gt;[1]<br>
&gt;&gt;<a href="http://download.osgeo.org/qgis/doc/manual/qgis-1.6.0_coding-compilation_guide_en.pdf" target="_blank">http://download.osgeo.org/qgis/doc/manual/qgis-1.6.0_coding-compilation_guide_en.pdf</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;2011/2/18 maaza mekuria &lt;<a href="mailto:sailmcm@yahoo.com">sailmcm@yahoo.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; Can it be possible to create a minimalist plugin using c++ in Windows<br>
&gt;&gt;&gt; Visual C++ Express without using all the bells and whistles that are in the<br>
&gt;&gt;&gt; other plugins such as CMakelists?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Your help may make a difference between using Python and C++. I was able to<br>
&gt;&gt;&gt; copy a Python plugin and easily adopt it to my own version of a plugin. I<br>
&gt;&gt;&gt; was able to add and remove GUI items by just editing the UI file. I want to<br>
&gt;&gt;&gt; do something similar using C++. Is it impossible for a new comer? Do I need<br>
&gt;&gt;&gt; a Computer Science degree to? But it should not be as they say &quot;Rocket<br>
&gt;&gt;&gt; science&quot; to write a little function.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I promise if I get it to work, I will share it with those who are suffering<br>
&gt;&gt;&gt; the famine for information. I am not sure why there is lack of documentation<br>
&gt;&gt;&gt; on such a simple matter or may be it is not simple or it is esoteric because<br>
&gt;&gt;&gt; it is highly dependent on many secret doors and passageways.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I confess my stubbornness to use C++ is due to the type of work being a bit<br>
&gt;&gt;&gt; intensive and I also have already a C++ code for it and I just need a nicer<br>
&gt;&gt;&gt; interface and data store that is free as in &quot;Free Chai&quot; inside QGIS.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Anybody there listening to the call from QGIS (Quiet or Slow GIS) desert?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Maaza<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; Qgis-developer mailing list<br>
&gt;&gt;&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt;&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Qgis-developer mailing list<br>
&gt; <a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)<br>
==============================================<br>
Please do not email me off-list with technical<br>
support questions. Using the lists will gain<br>
more exposure for your issues and the knowledge<br>
surrounding your issue will be shared with all.<br>
<br>
Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>
 * QGIS programming and support services<br>
 * Mapserver and PostGIS based hosting plans<br>
 * FOSS Consulting Services<br>
Skype: timlinux<br>
Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a><br>
==============================================<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Mauricio de Paulo<br>Engenheiro Cartografo<br><a href="http://mapeandoobrasil.blogspot.com" target="_blank">MapeandoOBrasil</a><br><br>