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

godofredo contreras frdcn at hotmail.com
Wed Mar 18 21:23:23 EDT 2009




>Hi Godofredo,
>thanks for your hints. I'll tru it as soon as possible. In the meanwhile could you help me to >clarify some other related aspects?
> 1 - how were the various libs you listed built? VS or MinGW. AFAIK they're used both from 
>Grass and QGIS, am I wrong? I thought that Grass couldn't use libs built with VS...

You can look into c:/osgeo4w/lib for files ending with .lib these are the import libraries for msvc. In the case of libmysql.lib, libpq.lib, and the grass import libraries (grass_arraystats.lib, grass_bitmap.lib) is almost sure that they are compiled with msys/mingw and later the import libraries were created with msvc implib tool. This can be done because msys/mingw and msvc compilers are compatible at c level (not compatibles at c++ level) also you can create an import library for msys/mingw from msvc dll using dlltool.


>2 - this is the qgis ml but do you know how grass was built (osgeo4w msys+mnigw would >be ok?) and, related to the previous question, against which libs?

The only way to build grass in windows is using msys/mingw and it should use the msys/mingw libraries. 

If you don't need to rebuild grass, the libs and dlls bundled with osgeo4w works correctly to build qgis with grass suport using msvc.

To know exactly what compiler was used for libs in osgeo4w you can try asking in osgeo4w-dev mailing list

Regards
Godofredo Contreras


>Thanks very much for helping to dig in the Windows world :)


>giovanni

2009/3/18 godofredo contreras <frdcn at hotmail.com>







 Hi Giovanny:

 

You can use the libs and includes bundled with osgeo4w to build qgis and

grass plugin.

 

Using osgeo4w do the following:

 

install grass from desktop category

install grass-devel-vc from libs (be sure is the same version that grass ) 

install gdal from libs

install geos from libs

install sqlite from libs

install proj from libs

install xpat from libs

install gsl from libs

 

create the environment variable LIB_DIR pointing to c:/osgeo4w and run

cmakesetup, after that set GRASS_PREFIX to the grass instalation directory

(something like c:/osgeo4w/apps/grass/gras-6.4.0R3)

 

And thats all, start compiling with visual studio or nmake

 

Hope this helps

 

Regards 

Godofredo Contreras

 


Date: Wed, 18 Mar 2009 17:42:13 +0100
From: giohappy at gmail.com
To: qgis-developer at lists.osgeo.org

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

Hi. I'm going on with my battle to compile qgis+grass on windows vista... very frustrating!
I've almost finished to compile grass under mingw, as AFAIK it's the only way to do it. Am I wrong?

I've built its various dependencies (like GDAL, proj, libtiff, freetype, etc.) under ingw too.
Now, what to do with QGIS? I know it should be compiled with MSVC, at least it's the way choosen for OSGeo4W stack. So I should rebuild GDAL, and all the rest of the stuff, with MSVC? And, at the end, how to build the grass-qgis plugin? Isn't it a problem having compiled the various parts with different systems?


Ok, I admit, I'm a bit confused working on Windos. Linux is more linear to me! :)

Giovanni

Windows Live™ Contacts: Organize your contact list.  Check it out.



_________________________________________________________________
Windows Live™ Groups: Create an online spot for your favorite groups to meet.
http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20090319/675ec1fe/attachment-0001.html


More information about the Qgis-developer mailing list