[Qgis-developer] Re: Postgres provider problem

Tim Sutton tim at linfiniti.com
Tue Nov 21 10:38:44 EST 2006


Hi Freddy

(Im copying in to the dev list as there may be other folks out there
who can help)

One thing - which qt4 version do you have? I had a similar problem
with some openModeller code and I just upgraded to qt4.2.1 and *didnt*
build the qt4 debug stuff and then compile my openmodeller stuff in
release only mode and it fixed my plugin issue. Im wondering if that
will cure the postgres provider issue too. I will try to build qgis in
the same way later today.

Did you have a chance to think about why your pro patches for plugins
could be causing my build to fail?

Regards

Tim

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


-- 
-- 
Tim Sutton

Visit http://qgis.org for a great Open Source GIS
Home Page: http://linfiniti.com
Skype: timlinux
MSN: tim_bdworld at msn.com
Yahoo: tim_bdworld at yahoo.com
Jabber: timlinux
Irc: timlinux on #qgis at freenode.net



More information about the Qgis-developer mailing list