[Qgis-developer] New GRASS plugin: a test drive

Pedro VenĂ¢ncio pedrongvenancio at gmail.com
Sun Oct 18 09:48:38 PDT 2015


Hi Radim,



> It is most probably the problem with different off_t size in GRASS and
> QGIS. I have already implemented fix, but the problem is how to get
> real off_t size from GRASS. On Windows, it is now hard coded 8 bytes.
> build_off_t_size was added to g.version but it will but available in
> 7.1. For now, you have to ensure that QGIS and GRASS are compiled with
> the same off_t size (I am not sure how) or change in
> qgsgrassprovider.cpp
>   typedef off_t grass_off_t;
> to
>   typedef qint32 grass_off_t;
> or
>   typedef qint64 grass_off_t;
> according to the size used in GRASS.
>
>
I made this change and with qint64 (typedef qint64 grass_off_t;) QGIS does
not crash, but the geometry just disappears after editing. Please see here:

https://dl.dropboxusercontent.com/u/5772257/qgis/grass_node_tool.ogv

The same is happening with GRASS6.

With typedef qint32 grass_off_t it still crashes.

I'm using GRASS 7.0.1-2~ubuntu14.04.1 from
https://launchpad.net/~grass/+archive/ubuntu/grass-stable
and GRASS 6.4.3-3 from http://packages.ubuntu.com/trusty/grass
on Xubuntu 14.04 LTS.

Thanks!
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20151018/131f8ca9/attachment.html>


More information about the Qgis-developer mailing list