<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I like your idea Julien. It does not make sense to have to store all of QGIS source files for a c++ plugin to work. I think the libraries that need to be referenced should be found identified so that one may be able to just build (compile and link) the dll independently of the rest of the QGIS source.<br><br>I was able to find out why my QGIS compile failed. It appears to me that when I uninstalled Python version 2.6 and installed 2.7 something went wrong. I reinstalled Python 2.6 and now I am able to use cmake and configure and generate with out any error messages. I am thankful for your help and prayers, I might add. <br><br>Now that I also heard that there is a build_plugin.py file that could ease my pain of creating a plugin, I am looking at it. Does it need to be run from with QGIS or what?<br><br>Just trying to break the C++ plugin
 barrier,<br>&nbsp;<br>Maaza<br><br>--- On <b>Wed, 2/23/11, Julien Malik <i>&lt;julien.malik@c-s.fr&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Julien Malik &lt;julien.malik@c-s.fr&gt;<br>Subject: Re: [Qgis-developer] Plugin Development C++ Windows - Any response?<br>To: "Barend Gehrels" &lt;barend@xs4all.nl&gt;<br>Cc: qgis-developer@lists.osgeo.org<br>Date: Wednesday, February 23, 2011, 1:05 PM<br><br><div class="plainMail">Hello,<br><br>Having written some C++ plugins (for Orfeo Toolbox), I have some feedback to give.<br><br>The current recommended procedure is to have a source build of qgis, add your plugin inside qgis source tree, hack a QGis CMakeLists to add the new plugin dir, and recompile Qgis.<br><br>In my opinion, a better approach is to build them as external project.<br>The idea is to be able to build a plugin on top of a prebuilt Qgis (libqgis-dev on
 ubuntu/debian, and the OSGeo4W build on windows)<br><br>That's what I have set up for the plugins I wrote, but ran into the following problem :<br>- There is no FindQgis.cmake or QGisConfig.cmake exported in the qgis development package (either OSGeo4W or ubuntu/debian), so importing QGis inside a CMake project must be done "by hand". It's ok with the QGis include path and the path to libqgis_core. But you have to take care of importing Qt also, which should be done by a FindQgis.cmake<br>- I had to hack some QGis #define to make it build on windows (GUI_EXPORT and CORE_EXPORT). Again, this should be handled by a ADD_DEFINITION inside a FindQgis.cmake<br><br>One other thing : it would be nice if the C++ plugins could be loaded from another directory than the official one.<br>Let's say I wrote a bunch of plugins for a specific software, I would like to store them in their own directory instead of messing up with the official plugins. Maybe it's already
 supported but I don't know how to do it...<br><br>Regards,<br>Julien<br><br><br>Le 23/02/2011 14:12, Barend Gehrels a écrit :<br>&gt; Hi,<br>&gt; <br>&gt; <br>&gt;&gt; Yes as Martin notes, and as I mentioned in my last email in this<br>&gt;&gt; thread "If you are able to use linux, you can even more easily just<br>&gt;&gt; use the plugin_builder.py script in that src/plugins directory and it<br>&gt;&gt; will generate for you a 'hello world' C++ plugin."<br>&gt;&gt; <br>&gt;&gt; Perhaps the linux part is not relevant though as you should be able to<br>&gt;&gt; use it on widows with python, but I've never tried. As an interesting<br>&gt;&gt; history note, we have had a plugin builder script (in one form or<br>&gt;&gt; another) in QGIS for c++ plugins from very early on in the life of<br>&gt;&gt; QGIS's plugin support.<br>&gt;&gt; <br>&gt; <br>&gt; On Windows the plugin_builder.py works also perfectly.<br>&gt; <br>&gt; Regards, Barend<br>&gt; <br>&gt;
 _______________________________________________<br>&gt; Qgis-developer mailing list<br>&gt; <a ymailto="mailto:Qgis-developer@lists.osgeo.org" href="/mc/compose?to=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>_______________________________________________<br>Qgis-developer mailing list<br><a ymailto="mailto:Qgis-developer@lists.osgeo.org" href="/mc/compose?to=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></div></blockquote></td></tr></table><br>