<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
If you built your own grass then you can create your msvc import libraries:<BR>
<BR>
Copy and save the following sed script to <SPAN lang=ES-MODERN>mkdef.sed in the directory</SPAN><BR>
<SPAN lang=ES-MODERN>where your grass dlls are located.<BR></SPAN>
<BR><SPAN lang=ES-MODERN>
/Dump of file / {<BR>
s/Dump of file \([^ ]*\)$/LIBRARY \1/p<BR>
a\<BR>
EXPORTS<BR>
}<BR>
/[ ]*ordinal hint/,/^[ ]*Summary/ {<BR>
/^[ ]\+[0-9]\+/ {<BR>
s/^[ ]\+[0-9]\+[ ]\+[0-9A-Fa-f]\+[ ]\+[0-9A-Fa-f]\+[ ]\+\([^ =]\+\).*$/ \1/p<BR>
}<BR>
}<BR></SPAN>
<BR>
Download and install sed utility from:<BR>
<BR>
<A href="http://gnuwin32.sourceforge.net/packages/sed.htm">http://gnuwin32.sourceforge.net/packages/sed.htm</A><BR>
<BR>
Make sure sed directory is in the environment variable path<BR>
Open <SPAN lang=ES-MODERN>Visual Studio C++ command line.</SPAN><BR>
<SPAN lang=ES-MODERN>change working directory to the directory where your grass dlls are located</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN> <BR>
<SPAN lang=ES-MODERN>Execute the following commands for every grass dll (</SPAN><SPAN lang=ES-MODERN>{grassdll} must be changed to</SPAN><BR>
<SPAN lang=ES-MODERN>grass dll name) :</SPAN><BR>
<SPAN lang=ES-MODERN></SPAN> <BR><SPAN lang=ES-MODERN><SPAN lang=ES-MODERN>
dumpbin /exports {grassdll} | sed -nf mkdef.sed > {grassdll}.def<BR>
lib /def:{grassdll}.def /machine:x86<BR>
<BR>
Those commands will create {grassdll}.lib that you can use with<BR>
visual studio.<BR>
<BR>
<BR>
Regards<BR>
<BR>
Godofredo Contreras<BR></SPAN></SPAN>
<SPAN lang=ES-MODERN> <BR></SPAN>
<BR>
<BR>
<BR> <BR>> Date: Fri, 20 Mar 2009 20:01:39 +0100<BR>> Subject: Re: [Qgis-developer] build qgis-grass plugin on Windows<BR>> From: giohappy@gmail.com<BR>> To: frdcn@hotmail.com<BR>> CC: qgis-developer@lists.osgeo.org<BR>> <BR>> > install grass-devel-vc from libs (be sure is the same version that grass )<BR>> <BR>> This is the problem! I need to recompile qgis-grass plugin for a newer<BR>> version of grass... I wanted to try Marco Pasetti's way [1], but I'm<BR>> not sure how and if it's possible to be integrated in the osgeo4w qgis<BR>> cinfiguration.<BR>> <BR>> [1] http://www.webalice.it/marco.pasetti/qgis+grass/BuildFromSource.html<BR><br /><hr />Internet Explorer 8 – Now Available. Faster, safer, easier. <a href='http://clk.atdmt.com/MRT/go/141323790/direct/01/' target='_new'>Download FREE now!</a></body>
</html>