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