[GRASS-dev] Debugging QGIS with GRASS provider on Windows

Radim Blazek radim.blazek at gmail.com
Fri Jun 19 00:35:55 PDT 2015


On Tue, Jun 16, 2015 at 10:48 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:
>
> On Tue, Jun 16, 2015 at 2:01 PM, Radim Blazek <radim.blazek at gmail.com>
> wrote:
>>
>> Hi,
>> I need to debug QGIS GRASS provider on Windows. I have successfully
>> compiled GRASS 7 using MinGW [1] and QGIS using MSVC [2]. The problem
>> is that MSVC does not support GCC debugging symbols and vice versa. Do
>> you have any idea how to debug both QGIS and GRASS code at the same
>> time, preferably in MSVC or Qt Creator?
>>
>> Is there any recent effort to compile GRASS with MSVC? I have only
>> found quite an old mail about MSVC port [3].
>
> There is an exploratory effort to use CMake for GRASS GIS [1] but there is a
> lack of CMake experts with free time.

CMake would be nice.

> In theory this is one of the steps to
> compile GRASS with MSVC. Isn't it possible to easily compile QGIS with MinGW
> thanks to CMake (since GCC is used on other platforms)?

In theory yes, but it means moving away from final build (QGIS built
with MSVC in OSGeo4W). There are also other important libs (Qt for
example) built with MSVC.

I have somehow managed to compile limited GRASS core libs with MSVC
and GRASS Makefiles replacing gcc by cl.exe. The build system does not
seem to be the biggest problem, there are still pieces of code not
compiling under MSVC however.

Radim

> Vaclav
>
> [1] https://github.com/starseeker/grass
>
>>
>>
>> Radim
>>
>> [1] https://trac.osgeo.org/grass/wiki/CompileOnWindows
>> [2]
>> https://htmlpreview.github.io/?https://github.com/qgis/QGIS/blob/master/doc/INSTALL.html#toc12
>> [3] http://lists.osgeo.org/pipermail/grass-dev/2007-November/034108.html
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list