[Qgis-developer] build qgis-grass plugin on Windows

G. Allegri giohappy at gmail.com
Mon Mar 23 19:32:03 EDT 2009


nmake returns with the following error:

D:\Geoinformatica\GRASS\QGIS_src\qgis_unstable\src\app\qgsdbsourceselect.cpp(395)
: error C3861: 'PQconnectionNeedsPassword': identifier not found

I'm using postgresql 8.3.7 headers but I think I should use the
includes you used to build the libpq libs. Can you point me there?

2009/3/23 G. Allegri <giohappy at gmail.com>:
> Wow Godofredo, thanks a lot. This sed script is something magic to me! :)
> Does the QGis build chain permit to build only the grass-plugin?
>
> So many questions, I'm sorry, but thi are my very first steps to
> compile in the Microsoft env!
>
> 2009/3/23 godofredo contreras <frdcn at hotmail.com>:
>> If you built your own grass then you can create your msvc import libraries:
>>
>> Copy and save the following sed script to mkdef.sed in the directory
>> where your grass dlls are located.
>>
>> /Dump of file / {
>> s/Dump of file \([^ ]*\)$/LIBRARY \1/p
>> a\
>> EXPORTS
>> }
>> /[ ]*ordinal hint/,/^[ ]*Summary/ {
>> /^[ ]\+[0-9]\+/ {
>> s/^[ ]\+[0-9]\+[ ]\+[0-9A-Fa-f]\+[ ]\+[0-9A-Fa-f]\+[ ]\+\([^ =]\+\).*$/ \1/p
>> }
>> }
>>
>> Download and install sed utility from:
>>
>> http://gnuwin32.sourceforge.net/packages/sed.htm
>>
>> Make sure sed directory is in the environment variable path
>> Open Visual Studio C++ command line.
>> change working directory to the directory where your grass dlls are located
>>
>> Execute the following commands for every grass dll ({grassdll} must be
>> changed to
>> grass dll name) :
>>
>> dumpbin /exports {grassdll} | sed -nf mkdef.sed > {grassdll}.def
>> lib /def:{grassdll}.def /machine:x86
>>
>> Those commands will create {grassdll}.lib that you can use with
>> visual studio.
>>
>>
>> Regards
>>
>> Godofredo Contreras
>>
>>
>>
>>
>>
>>> Date: Fri, 20 Mar 2009 20:01:39 +0100
>>> Subject: Re: [Qgis-developer] build qgis-grass plugin on Windows
>>> From: giohappy at gmail.com
>>> To: frdcn at hotmail.com
>>> CC: qgis-developer at lists.osgeo.org
>>>
>>> > install grass-devel-vc from libs (be sure is the same version that grass
>>> > )
>>>
>>> This is the problem! I need to recompile qgis-grass plugin for a newer
>>> version of grass... I wanted to try Marco Pasetti's way [1], but I'm
>>> not sure how and if it's possible to be integrated in the osgeo4w qgis
>>> cinfiguration.
>>>
>>> [1] http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html
>>
>> ________________________________
>> Internet Explorer 8 – Now Available. Faster, safer, easier. Download FREE
>> now!
>


More information about the Qgis-developer mailing list