<html><div style='background-color:'><DIV class=RTE>
<P>Hi Tim:</P>
<P>&nbsp;</P>
<P>I have version 4.2.0 of qt I will upgrade it to check if postgres provider works with the new version.</P>
<P>For plugins .pro files I only added an extra line and I put the patch en every plugin .pro file: </P>
<P>INCLUDEPATH += $${OBJDIR}/ui&nbsp;</P>
<P>You will need a make clean in order to delete all object and&nbsp;ui generated files.</P>
<P>&nbsp;</P>
<P>Regards Freddy&nbsp;&nbsp;<BR><BR></P></DIV>
<DIV></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px; FONT-FAMILY: tahoma,sans-serif">
<HR color=#a0c6e5 SIZE=1>

<DIV></DIV>From:&nbsp;&nbsp;<I>"Tim Sutton" &lt;tim@linfiniti.com&gt;</I><BR>To:&nbsp;&nbsp;<I>"godofredo contreras" &lt;frdcn@hotmail.com&gt;, qgis-developer &lt;qgis-developer@lists.qgis.org&gt;</I><BR>Subject:&nbsp;&nbsp;<I>Re: Postgres provider problem</I><BR>Date:&nbsp;&nbsp;<I>Tue, 21 Nov 2006 13:38:44 -0200</I><BR>&gt;Hi Freddy<BR>&gt;<BR>&gt;(Im copying in to the dev list as there may be other folks out there<BR>&gt;who can help)<BR>&gt;<BR>&gt;One thing - which qt4 version do you have? I had a similar problem<BR>&gt;with some openModeller code and I just upgraded to qt4.2.1 and <BR>&gt;*didnt*<BR>&gt;build the qt4 debug stuff and then compile my openmodeller stuff in<BR>&gt;release only mode and it fixed my plugin issue. Im wondering if that<BR>&gt;will cure the postgres provider issue too. I will try to build qgis <BR>&gt;in<BR>&gt;the same way later today.<BR>&gt;<BR>&gt;Did 
you have a chance to think about why your pro patches for <BR>&gt;plugins<BR>&gt;could be causing my build to fail?<BR>&gt;<BR>&gt;Regards<BR>&gt;<BR>&gt;Tim<BR>&gt;<BR>&gt;On 11/17/06, godofredo contreras &lt;frdcn@hotmail.com&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;Hi Tim:<BR>&gt;&gt;<BR>&gt;&gt;I have been trying to figure out what is the problem with postgres <BR>&gt;&gt;provider<BR>&gt;&gt;and searching in dev list, I found a similar problem but with no <BR>&gt;&gt;answer:<BR>&gt;&gt;<BR>&gt;&gt;http://lists.qgis.org/pipermail/qgis-developer/2006-August/000642.html<BR>&gt;&gt;<BR>&gt;&gt;I removed all code of functions and made qgspostgresprovider <BR>&gt;&gt;inherit<BR>&gt;&gt;directly from qobject, the result was that dll was loaded without <BR>&gt;&gt;problem,<BR>&gt;&gt;but when it was inherited from qgsvectorlayer it didnīt load even <BR>&gt;&gt;when 
there<BR>&gt;&gt;were not code in functions.<BR>&gt;&gt;<BR>&gt;&gt;Do you know if that problem was solved?<BR>&gt;&gt;<BR>&gt;&gt;Regards<BR>&gt;&gt;<BR>&gt;&gt;Freddy<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;ry ________________________________<BR>&gt;&gt;<BR>&gt;&gt;From:&nbsp;&nbsp;"Tim Sutton" &lt;tim@linfiniti.com&gt;<BR>&gt;&gt;To:&nbsp;&nbsp;"godofredo contreras" &lt;frdcn@hotmail.com&gt;, "Gary Sherman"<BR>&gt;&gt;&lt;gsherman@mrcc.com&gt;<BR>&gt;&gt;Subject:&nbsp;&nbsp;Last email lost<BR>&gt;&gt;Date:&nbsp;&nbsp;Thu, 16 Nov 2006 17:42:53 -0200<BR>&gt;&gt; &gt;Hi Freddy<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;I seem to have lost your last email so I will answer from memory. <BR>&gt;&gt;I<BR>&gt;&gt; &gt;have applied your building plugins with unique .o files patches 
<BR>&gt;&gt;but<BR>&gt;&gt; &gt;I<BR>&gt;&gt; &gt;get compile errors:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;lude/QtCore" -I"C:/Qt/4.2.0/include/QtCore"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/QtNetwork"<BR>&gt;&gt;-I"C:/Qt/4.2.0/include/QtNetwork"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/QtGui" -I"C:/Qt/4.2.0/include/QtGui"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/QtXml" -I"C:/Qt/4.2.0/include/QtXml"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/Qt3Support"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/Qt3Support"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/QtSvg" -I"C:/Qt/4.2.0/include/QtSvg"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include" -I"C:/dev/cpp/qgis/src"<BR>&gt;&gt; &gt;-I"C:/dev/cpp/qgis/src/core" -I"C:/dev/cpp/qgis/src/gui"<BR>&gt;&gt; &gt;-I"C:/dev/cpp/qgis/src/legend"<BR>&gt;&gt;-I"C:/dev/cpp/qgis/src/composer"<BR>&gt;&gt; &gt;-I"C:/dev/cpp/qgis/src/widgets/projectionselector"<BR>&gt;&gt; 
&gt;-I"C:/dev/cpp/qgis/src/plugins"<BR>&gt;&gt;-I"C:/dev/cpp/qgis/src/providers"<BR>&gt;&gt; &gt;-I"C:/dev/cpp/qgis/src/raster"<BR>&gt;&gt;-I"C:/dev/cpp/qgis/src/providers/wfs"<BR>&gt;&gt; &gt;-I"C:/dev/cpp/qgis/src/ui" -I"C:/msys/local/include"<BR>&gt;&gt; &gt;-I"C:/Qt/4.2.0/include/ActiveQt"<BR>&gt;&gt; &gt;-I"..\..\..\obj\moc\plugins\scale_bar"<BR>&gt;&gt; &gt;-I"..\..\..\obj\ui\plugins\scale_bar"<BR>&gt;&gt; &gt;-I"c:\Qt\4.2.0\mkspecs\win32-g++" -o<BR>&gt;&gt; &gt;..\..\..\obj\o\win32\plugins\scale_bar\plugin.o plugin.cpp<BR>&gt;&gt; &gt;In file included from plugin.cpp:25:<BR>&gt;&gt; &gt;C:/dev/cpp/qgis/src/gui/qgisapp.h:55:28: ui_qgisappbase.h:<BR>&gt;&gt;No such<BR>&gt;&gt; &gt;file or directory<BR>&gt;&gt; &gt;In file included from plugin.cpp:25:<BR>&gt;&gt; &gt;C:/dev/cpp/qgis/src/gui/qgisapp.h:62: error: `Ui' has not<BR>&gt;&gt;been<BR>&gt;&gt; &gt;declared<BR>&gt;&gt; 
&gt;C:/dev/cpp/qgis/src/gui/qgisapp.h:63: error: expected<BR>&gt;&gt;class-name<BR>&gt;&gt; &gt;before '{' token<BR>&gt;&gt; &gt;mingw32-make[4]: ***<BR>&gt;&gt; &gt;[..\..\..\obj\o\win32\plugins\scale_bar\plugin.o] Error 1<BR>&gt;&gt; &gt;mingw32-make[4]: Leaving directory<BR>&gt;&gt; &gt;`C:/dev/cpp/qgis/src/plugins/scale_bar'<BR>&gt;&gt; &gt;mingw32-make[3]: *** [debug-all] Error 2<BR>&gt;&gt; &gt;mingw32-make[3]: Leaving directory<BR>&gt;&gt; &gt;`C:/dev/cpp/qgis/src/plugins/scale_bar'<BR>&gt;&gt; &gt;mingw32-make[2]: *** [sub-scale_bar-make_default] Error 2<BR>&gt;&gt; &gt;mingw32-make[2]: Leaving directory `C:/dev/cpp/qgis/src/plugins'<BR>&gt;&gt; &gt;mingw32-make[1]: *** [sub-plugins-make_default] Error 2<BR>&gt;&gt; &gt;mingw32-make[1]: Leaving directory `C:/dev/cpp/qgis/src'<BR>&gt;&gt; &gt;mingw32-make: *** [sub-src-make_default] Error 2<BR>&gt;&gt; &gt;C:\dev\cpp\qgis&gt;cd 
src<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;I did make some minor changes to your patch though I dont think <BR>&gt;&gt;its<BR>&gt;&gt; &gt;the cause:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;# This is a hack (thanks freddy!) because many plugins use the<BR>&gt;&gt; &gt;# same class names and file names we need to force the compiler<BR>&gt;&gt; &gt;# to create separate object files for them.<BR>&gt;&gt; &gt;MYDIRNAME=grid_maker<BR>&gt;&gt; &gt;MOC_DIR = $${OBJDIR}/moc/plugins/$${MYDIRNAME}<BR>&gt;&gt; &gt;UI_DIR = $${OBJDIR}/ui/plugins/$${MYDIRNAME}<BR>&gt;&gt; &gt;win32:OBJECTS_DIR =<BR>&gt;&gt;$${OBJDIR}/o/win32/plugins/$${MYDIRNAME<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Im going to go ahead and commit the plugin changes - could you <BR>&gt;&gt;take<BR>&gt;&gt; &gt;a<BR>&gt;&gt; &gt;look and see if a) they work for you and b) why I might be <BR>&gt;&gt;getting<BR>&gt;&gt; 
&gt;the<BR>&gt;&gt; &gt;above errors.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;I did try to make distclean and rebuild - no help.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Regarding your patch for wfs, I think its better to defined<BR>&gt;&gt; &gt;GEOSINCADD<BR>&gt;&gt; &gt;= &lt;path&gt; in settings.pro and then in wfs add<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;includes += GEOSINCADD<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;I do this since I prefer not to have hard coded paths in multiple<BR>&gt;&gt; &gt;places in the build system - if they are centralised in <BR>&gt;&gt;settings.pro<BR>&gt;&gt; &gt;its easy to find them and eventuall make things more generic.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;My Macbook with my parallels windows install at home died so I am<BR>&gt;&gt; &gt;back<BR>&gt;&gt; &gt;to only being able to work a little on the win build at work. Ill<BR>&gt;&gt; &gt;try<BR>&gt;&gt; &gt;to get something 
running again at home so I can pick up speed <BR>&gt;&gt;again.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Also I uploaded my latest msys to<BR>&gt;&gt; &gt;http://qgis.org/uploadfiles/msys/msys.tar.bz2 if you are<BR>&gt;&gt;interested.<BR>&gt;&gt; &gt;It includes all teh postgres stuff. But I still get the postgres<BR>&gt;&gt; &gt;provider wont load messages.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Regards<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Tim<BR>&gt;&gt; &gt;--<BR>&gt;&gt; &gt;--<BR>&gt;&gt; &gt;Tim Sutton<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;Visit http://qgis.org for a great Open Source GIS<BR>&gt;&gt; &gt;Home Page: http://linfiniti.com<BR>&gt;&gt; &gt;Skype: timlinux<BR>&gt;&gt; &gt;MSN: tim_bdworld@msn.com<BR>&gt;&gt; &gt;Yahoo: tim_bdworld@yahoo.com<BR>&gt;&gt; &gt;Jabber: timlinux<BR>&gt;&gt; &gt;Irc: timlinux on #qgis at 
freenode.net<BR>&gt;&gt;<BR>&gt;&gt;________________________________<BR>&gt;&gt;&nbsp;&nbsp;Get free, personalized commercial-free online radio with MSN <BR>&gt;&gt;Radio powered<BR>&gt;&gt;by Pandora<BR>&gt;<BR>&gt;<BR>&gt;--<BR>&gt;--<BR>&gt;Tim Sutton<BR>&gt;<BR>&gt;Visit http://qgis.org for a great Open Source GIS<BR>&gt;Home Page: http://linfiniti.com<BR>&gt;Skype: timlinux<BR>&gt;MSN: tim_bdworld@msn.com<BR>&gt;Yahoo: tim_bdworld@yahoo.com<BR>&gt;Jabber: timlinux<BR>&gt;Irc: timlinux on #qgis at freenode.net<BR></FONT></BLOCKQUOTE></div><br clear=all><hr> <a href="http://g.msn.com/8HMAENUS/2743??PS=47575" target="_top">MSN Shopping has everything on your holiday list. Get expert picks by style, age, and price. Try it!</a> </html>