Hi  devs, <br><br><div class="gmail_quote">On Fri, Sep 10, 2010 at 12:20 AM, Tim Keitt <span dir="ltr">&lt;<a href="mailto:tkeitt@gmail.com">tkeitt@gmail.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;">

I generated a QGIS plugin skeleton using plugin_builder.py. After<br>
modifying the ui using Qt Designer, I figured I should be able to type<br>
&#39;make&#39; and reload the plugin. The generated Makefile however does not<br>
seem to work. Any hints?<br></blockquote><div>I confirm, using the plugin builder [1] the generated Makefile seems invalid <br>on my Ubuntu too.<br><br>Could anyone fix this issue?<br><br><br>@Tim: replace your Makefile contents with the following code:<br>


<br><span style="font-family: courier new,monospace;"># Makefile for a PyQGIS plugin</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
UI_FILES = Ui_MeshPoly.py</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
RESOURCE_FILES = resources.py</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">default: compile</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">compile: $(UI_FILES) $(RESOURCE_FILES)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$(RESOURCE_FILES): %.py: %.qrc</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    pyrcc4 -o $@ $&lt;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">$(UI_FILES): %.py: %.ui</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    pyuic4 -o $@ $&lt;</span><br><br>
<br>Make sure there are tabs (at least one) instead of spaces <br>
before both pyuic4 and pyrcc4.<br><br>I hope  this  may help.<br>Cheers.<br>
<br>
[1] <a href="http://pyqgis.org/builder/plugin_builder.py">http://pyqgis.org/builder/plugin_builder.py</a> <br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


<br>
THK<br>
<br>
tkeitt@ubuntu-vbox:~/.qgis/python/plugins/meshpoly$ make<br>
make: *** No rule to make target `compile&#39;, needed by `default&#39;.  Stop.<br>
<br>
# Makefile for a PyQGIS plugin<br>
UI_FILES = Ui_MeshPoly.py<br>
<br>
RESOURCE_FILES = resources.py<br>
<br>
default: compile<br>
        compile: $(UI_FILES) $(RESOURCE_FILES)<br>
<br>
%.py : %.qrc<br>
        pyrcc4 -o $@  $&lt;<br>
<br>
%.py : %.ui<br>
        pyuic4 -o $@ $&lt;<br></blockquote><div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#888888"><br>
--<br>
Timothy H. Keitt<br>
<a href="http://www.keittlab.org/" target="_blank">http://www.keittlab.org/</a><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>
</font></blockquote></div><br>-- <br>Giuseppe Sucameli<br>