<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Never used, I would think it would work directly.<br>
    <br>
    But why not adding a new rule to the makefile to compile the ui?<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/06/2015 10:06 AM, Anita Graser
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAFFV8FiViYtTaVbCaarVco+0fj6Z61okndurw-TgkZyoTQrJpg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, Aug 6, 2015 at 9:44 AM, Denis
            Rouzaud <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Well, how is
                compiled the UI file?<br>
              </div>
            </blockquote>
            <div><br>
            </div>
            <div>
              <div class="gmail_default" style="font-size:small">​The
                plugin builder creates a template that uses
                uic.loadUiType</div>
              <br>
              FORM_CLASS, _ = uic.loadUiType(os.path.join(<br>
              os.path.dirname(__file__), 'cartogram_dialog_base.ui'))
              <div class="gmail_default" style="font-size:small">​</div>
            </div>
            <div>
              <div class="gmail_default" style="font-size:small">​So the
                UI is compiled automatically when the plugin starts in
                QGIS.</div>
              <div class="gmail_default" style="font-size:small"><br>
              </div>
              <div class="gmail_default" style="font-size:small">Best
                wishes,</div>
              <div class="gmail_default" style="font-size:small">Anita​</div>
              <br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Usually, it is done
                prior to deployment using pyuic4<br>
                <br>
                If pyuic4 was run without the proper python path, you
                won't have any error at compilation but the plugin won't
                work if it contains QGIS widgets.<br>
                <br>
                Was pyuic4 run in an Osgeo shell?
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    <br>
                    <div>On 08/06/2015 09:39 AM, Anita Graser wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div style="font-size:small"><br>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Thu, Aug 6, 2015
                            at 9:24 AM, Denis Rouzaud <span dir="ltr"><<a
                                moz-do-not-send="true"
                                href="mailto:denis.rouzaud@gmail.com"
                                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:denis.rouzaud@gmail.com">denis.rouzaud@gmail.com</a></a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000"> You
                                need to have qgis lib in your python
                                path.<br>
                                On windows, that would be
                                C:\OSGeo4W\apps\qgis-dev\python\qgis<br>
                                To check this, just do "from qgis.gui
                                import *" in python. If you don't have
                                an error, then pyuic4 will work
                                properly.<br>
                              </div>
                            </blockquote>
                            <div><br>
                            </div>
                            <div>​My point is that the plugin needs to
                              work out of the box - and it doesn't. <br>
                            </div>
                            <div>
                              <div style="font-size:small">Usually all
                                paths are set correctly on Win in the
                                OSGeo shell. Only in this case there is
                                an issue.</div>
                              <div style="font-size:small"><br>
                              </div>
                              <div style="font-size:small">Best wishes,</div>
                              <div style="font-size:small">Anita</div>
                              <div style="font-size:small">​<br>
                              </div>
                            </div>
                          </div>
                          <br>
                        </div>
                        <div class="gmail_extra"><br>
                        </div>
                        <div class="gmail_extra"><br>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>