<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Plugin Troubles. Getting Started (SIP, PYQT, PYRCC confusions)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3354" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>Alright,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>A week of frustration solved by this blog post.
<A
href="http://iwiwdsmi.blogspot.com/2007/01/how-to-install-pyqt-41-python-25-and-qt_8340.html">http://iwiwdsmi.blogspot.com/2007/01/how-to-install-pyqt-41-python-25-and-qt_8340.html</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>The binary install worked nicely and was underneath my
nose the whole time...</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>Maybe someone can provide nice instruction for setting
up the dev env in the wiki page. <A
href="http://wiki.qgis.org/qgiswiki/PythonBindings">http://wiki.qgis.org/qgiswiki/PythonBindings</A></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>This would have gotten me up and going much
quicker.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=688182413-02072008>Cheers</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> qgis-user-bounces@lists.osgeo.org
[mailto:qgis-user-bounces@lists.osgeo.org] <B>On Behalf Of </B>Sampson,
David<BR><B>Sent:</B> Wednesday, July 02, 2008 09:18<BR><B>To:</B>
qgis-user@lists.osgeo.org<BR><B>Subject:</B> [Qgis-user] Plugin Troubles.
Getting Started (SIP, PYQT,PYRCC confusions)<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><SPAN lang=en-ca><FONT face=Arial size=2>Hey folks, I want to create
plugins for Q GIS and I am completely lost.</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>I am running python 25 on a
windows box.</FONT></SPAN> <BR><SPAN lang=en-ca><FONT face=Arial size=2>I have
cygwin mingw components installed under cygwin.</FONT></SPAN> <BR><SPAN
lang=en-ca><FONT face=Arial size=2>Distutils pointing cygwin/mingw for
compiling python extensions (</FONT></SPAN><A
href="http://boodebr.org/main/python/build-windows-extensions#CFG_DISTUTILS"><SPAN
lang=en-ca><U><FONT face=Arial color=#0000ff
size=2>http://boodebr.org/main/python/build-windows-extensions#CFG_DISTUTILS</FONT></U></SPAN></A><SPAN
lang=en-ca><FONT face=Arial size=2>)</FONT></SPAN></P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>I have been going between a bunch
of sites to try and figure out how to get started.</FONT></SPAN> </P><BR>
<P><SPAN lang=en-ca><FONT face=Arial size=2>The python stuff is no problem. I
want to get the plugin into Qgis.</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>My understanding is that I need to
comppile some resources against pyrcc (</FONT></SPAN><A
href="http://wiki.qgis.org/qgiswiki/DevelopingPluginsWithPython"><SPAN
lang=en-ca><U><FONT face=Arial color=#0000ff
size=2>http://wiki.qgis.org/qgiswiki/DevelopingPluginsWithPython</FONT></U></SPAN></A><SPAN
lang=en-ca><FONT face=Arial size=2>)</FONT></SPAN></P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>So I try finding it in the qgis
install and it is not there.</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>Next I learn that pyrcc is part of
the QT stack. So I go to learn how to install pyQT stuff (</FONT></SPAN><A
href="http://wiki.python.org/moin/PyQt"><SPAN lang=en-ca><U><FONT face=Arial
color=#0000ff
size=2>http://wiki.python.org/moin/PyQt</FONT></U></SPAN></A><SPAN
lang=en-ca><FONT face=Arial size=2>)</FONT></SPAN></P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>I go to Pyqt4 site and get the
packages. I can't find binaries so I try to build form source.</FONT></SPAN>
</P>
<P><SPAN lang=en-ca><FONT face=Arial size=2> Of course this leads me to
SIP extensions, again that I need to build from source cause I can not find
windows binaries.</FONT></SPAN></P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>Am I going in the right direction
or have I missed the simple approach? I like simple.</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>So now I am in cygwin trying to
do</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>Python Configure.py -p cygwin-g++;
make; make install</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>For the SIP package. The build
fails of course… I then try PyQt, which fails cause it is missing SIP
dependencies. So do I need to start with the SIP mailing list, then the Pyqt
mailing list and then finaly try a small "hello world" plugin. IMHO if this is
what I need to do, this is a big barrier to potential plugin developers. With
applications like OpenEV I need only create a python script and run it to make
a GIS plugin.</FONT></SPAN></P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>I have not tried this on my linux
box as it is proving to polute my winbox system. I like a lean linux box
without all this overhead and compiling of binaries that will get
hidden.</FONT></SPAN></P><BR>
<P><SPAN lang=en-ca><FONT face=Arial size=2>WINDOWS BINARIES WOULD BE GREAT TO
HAVE. Or maybe we just need less windows boxes...</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>In fact a QGIS plugin kit that
gives you EVERYTHING would be ideal.</FONT></SPAN> </P>
<P><SPAN lang=en-ca><FONT face=Arial size=2>Cheers</FONT></SPAN>
</P><BR></BLOCKQUOTE></BODY></HTML>