[Qgis-developer] plugin_builder.py Makefile not working
Giuseppe Sucameli
brush.tyler at gmail.com
Thu Sep 9 19:41:05 EDT 2010
Hi devs,
On Fri, Sep 10, 2010 at 12:20 AM, Tim Keitt <tkeitt at gmail.com> wrote:
> I generated a QGIS plugin skeleton using plugin_builder.py. After
> modifying the ui using Qt Designer, I figured I should be able to type
> 'make' and reload the plugin. The generated Makefile however does not
> seem to work. Any hints?
>
I confirm, using the plugin builder [1] the generated Makefile seems invalid
on my Ubuntu too.
Could anyone fix this issue?
@Tim: replace your Makefile contents with the following code:
# Makefile for a PyQGIS plugin
UI_FILES = Ui_MeshPoly.py
RESOURCE_FILES = resources.py
default: compile
compile: $(UI_FILES) $(RESOURCE_FILES)
$(RESOURCE_FILES): %.py: %.qrc
pyrcc4 -o $@ $<
$(UI_FILES): %.py: %.ui
pyuic4 -o $@ $<
Make sure there are tabs (at least one) instead of spaces
before both pyuic4 and pyrcc4.
I hope this may help.
Cheers.
[1] http://pyqgis.org/builder/plugin_builder.py
> THK
>
> tkeitt at ubuntu-vbox:~/.qgis/python/plugins/meshpoly$ make
> make: *** No rule to make target `compile', needed by `default'. Stop.
>
> # Makefile for a PyQGIS plugin
> UI_FILES = Ui_MeshPoly.py
>
> RESOURCE_FILES = resources.py
>
> default: compile
> compile: $(UI_FILES) $(RESOURCE_FILES)
>
> %.py : %.qrc
> pyrcc4 -o $@ $<
>
> %.py : %.ui
> pyuic4 -o $@ $<
>
> --
> Timothy H. Keitt
> http://www.keittlab.org/
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
--
Giuseppe Sucameli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20100910/41bfbb28/attachment.html
More information about the Qgis-developer
mailing list