Re: [GRASS-dev] How to install grass development package

2020-09-04 Thread Nicklas Larsson
Ming,

If you are interested in working with GRASS on mac you may try the official 
distribution, follow links on https://grass.osgeo.org/download/mac/ 
 or go directly to 
http://grassmac.wikidot.com/downloads . 
It is an all-inclusive app, easy to install.

At this point I would recommend the GRASS 7.8.4 dev version. It is the latest 
version of the stable GRASS branch in combination with the most stable mac 
distribution. It includes e.g. python 3.7, gdal 3, proj 6.3 and pdal 2.1.

Regarding add-ons: there are two types, either python based or c/c++ based. The 
add-on source code is downloaded (with g.extension) and in the case of the 
c/c++ also compiled locally -- for this reason Apple’s Command Line Tools need 
to be installed. See section "COMPILING GRASS EXTENSIONS” on 
http://grassmac.wikidot.com/downloads .

Note: if direct integration with QGIS is essential, the official mac binary is 
perhaps not be the solution for you.

Cheers,
Nicklas


> On 3 Sep 2020, at 20:34, ming han  wrote:
> 
> Hi everyone
> 
>Hope this email finds you well.
> I installed a QGIS that includes GRASS from here 
> [https://www.kyngchaos.com/software/qgis/ 
> ]. The GRASS does not contain a 
> g.extension to install grass addon. When I copy a g.extension from other 
> grass installation. It complains "Please install GRASS development package". 
> 
> So my questions are:
> 1) How to install GRASS addon without g.extension on MacOS
> 
>  2) How to install GRASS development packages on MacOS. 
> 
> Many thanks for your help 
> Looking forward to hearing from you soon 
> 
> Best regards
> Ming
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to install grass development package

2020-09-04 Thread Veronica Andreo
Hello Ming

Yes, GRASS 7.6 is the last version with python 2, you should aim at grass
7.8 line. The current stable is grass 7.8.3. See here
https://grass.osgeo.org/download/mac/. Dunno if that includes also
grass-dev package though.
I hope someone using grass in mac can answer that

best,
Vero

El vie., 4 sept. 2020 a las 4:55, ming han () escribió:

> Hi everyone
>
>Is GRASS76 in the QGIS compiled with python2?  Because I got a new
> error which complains that "NameError:name 'file' is not defined". While
> the file is used in python2.
>
> [image: image.png]
>
> Thanks
> Ming
>
> ming han  于2020年9月3日周四 下午2:34写道:
>
>> Hi everyone
>>
>>Hope this email finds you well.
>> I installed a QGIS that includes GRASS from here [
>> https://www.kyngchaos.com/software/qgis/]. The GRASS does not contain a
>> g.extension to install grass addon. When I copy a g.extension from other
>> grass installation. It complains "Please install GRASS development
>> package".
>>
>> So my questions are:
>> 1) How to install GRASS addon without g.extension on MacOS
>>
>>  2) How to install GRASS development packages on MacOS.
>>
>> Many thanks for your help
>> Looking forward to hearing from you soon
>>
>> Best regards
>> Ming
>>
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to install grass development package

2020-09-04 Thread Peter Petrik
you need to use QGIS nightly2 for grass with python3

On Fri, Sep 4, 2020 at 2:31 PM Veronica Andreo  wrote:

> Hello Ming
>
> Yes, GRASS 7.6 is the last version with python 2, you should aim at grass
> 7.8 line. The current stable is grass 7.8.3. See here
> https://grass.osgeo.org/download/mac/. Dunno if that includes also
> grass-dev package though.
> I hope someone using grass in mac can answer that
>
> best,
> Vero
>
> El vie., 4 sept. 2020 a las 4:55, ming han ()
> escribió:
>
>> Hi everyone
>>
>>Is GRASS76 in the QGIS compiled with python2?  Because I got a new
>> error which complains that "NameError:name 'file' is not defined". While
>> the file is used in python2.
>>
>> [image: image.png]
>>
>> Thanks
>> Ming
>>
>> ming han  于2020年9月3日周四 下午2:34写道:
>>
>>> Hi everyone
>>>
>>>Hope this email finds you well.
>>> I installed a QGIS that includes GRASS from here [
>>> https://www.kyngchaos.com/software/qgis/]. The GRASS does not contain a
>>> g.extension to install grass addon. When I copy a g.extension from other
>>> grass installation. It complains "Please install GRASS development
>>> package".
>>>
>>> So my questions are:
>>> 1) How to install GRASS addon without g.extension on MacOS
>>>
>>>  2) How to install GRASS development packages on MacOS.
>>>
>>> Many thanks for your help
>>> Looking forward to hearing from you soon
>>>
>>> Best regards
>>> Ming
>>>
>> ___
>> grass-dev mailing list
>> grass-dev@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to install grass development package

2020-09-04 Thread ming han
Thanks Peter, I will try QGIS nightly2.

Peter Petrik  于2020年9月4日周五 上午9:04写道:

> you need to use QGIS nightly2 for grass with python3
>
> On Fri, Sep 4, 2020 at 2:31 PM Veronica Andreo 
> wrote:
>
>> Hello Ming
>>
>> Yes, GRASS 7.6 is the last version with python 2, you should aim at grass
>> 7.8 line. The current stable is grass 7.8.3. See here
>> https://grass.osgeo.org/download/mac/. Dunno if that includes also
>> grass-dev package though.
>> I hope someone using grass in mac can answer that
>>
>> best,
>> Vero
>>
>> El vie., 4 sept. 2020 a las 4:55, ming han ()
>> escribió:
>>
>>> Hi everyone
>>>
>>>Is GRASS76 in the QGIS compiled with python2?  Because I got a new
>>> error which complains that "NameError:name 'file' is not defined". While
>>> the file is used in python2.
>>>
>>> [image: image.png]
>>>
>>> Thanks
>>> Ming
>>>
>>> ming han  于2020年9月3日周四 下午2:34写道:
>>>
 Hi everyone

Hope this email finds you well.
 I installed a QGIS that includes GRASS from here [
 https://www.kyngchaos.com/software/qgis/]. The GRASS does not contain
 a g.extension to install grass addon. When I copy a g.extension from other
 grass installation. It complains "Please install GRASS development
 package".

 So my questions are:
 1) How to install GRASS addon without g.extension on MacOS

  2) How to install GRASS development packages on MacOS.

 Many thanks for your help
 Looking forward to hearing from you soon

 Best regards
 Ming

>>> ___
>>> grass-dev mailing list
>>> grass-dev@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/grass-dev
>>
>> ___
>> grass-dev mailing list
>> grass-dev@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

Re: [GRASS-dev] How to install grass development package

2020-09-04 Thread ming han
Hi everyone

Thanks for all your help. Is it possible for me to build grass with a
specific python version? And how to do that?

Thanks
Ming



Nicklas Larsson  于2020年9月4日周五 上午3:25写道:

> Ming,
>
> If you are interested in working with GRASS on mac you may try the
> official distribution, follow links on
> https://grass.osgeo.org/download/mac/ or go directly to
> http://grassmac.wikidot.com/downloads. It is an all-inclusive app, easy
> to install.
>
> At this point I would recommend the GRASS 7.8.4 dev version. It is the
> latest version of the stable GRASS branch in combination with the most
> stable mac distribution. It includes e.g. python 3.7, gdal 3, proj 6.3 and
> pdal 2.1.
>
> Regarding add-ons: there are two types, either python based or c/c++
> based. The add-on source code is downloaded (with g.extension) and in the
> case of the c/c++ also compiled locally -- for this reason Apple’s Command
> Line Tools need to be installed. See section "COMPILING GRASS EXTENSIONS”
> on http://grassmac.wikidot.com/downloads.
>
> Note: if direct integration with QGIS is essential, the official mac
> binary is perhaps not be the solution for you.
>
> Cheers,
> Nicklas
>
>
> On 3 Sep 2020, at 20:34, ming han  wrote:
>
> Hi everyone
>
>Hope this email finds you well.
> I installed a QGIS that includes GRASS from here [
> https://www.kyngchaos.com/software/qgis/]. The GRASS does not contain a
> g.extension to install grass addon. When I copy a g.extension from other
> grass installation. It complains "Please install GRASS development
> package".
>
> So my questions are:
> 1) How to install GRASS addon without g.extension on MacOS
>
>  2) How to install GRASS development packages on MacOS.
>
> Many thanks for your help
> Looking forward to hearing from you soon
>
> Best regards
> Ming
> ___
> grass-dev mailing list
> grass-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-dev
>
>
>
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] Compile grass addon

2020-09-04 Thread ming han
Hi Everyone

   Hope this email finds you well.
   I can generate GRASS addon executable by commands in the following
sections.
  But when I load it in GRASS, it reports the following error. at the
sametime I can successfully load other GRASS executable like r.what
  "dyld: Library not loaded: @rpath/libgrass_gis.dylib

  Referenced from:
/Applications/QGIS3.14.app/Contents/MacOS/grass/bin/r.stream.basins

  Reason: image not found

Abort trap: 6"




 Thanks

Ming

--

gcc  -g -O2   -I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Library/Frameworks/GDAL.framework/Versions/3.1/Headers
-I/Library/Frameworks/GEOS.framework/Versions/3C/unix/include
-DPACKAGE=\""grassmods"\"
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-DRELDIR=\"grass_addon/raster/r.stream.basins\" -o basins_fill.o -c
basins_fill.c


gcc  -g -O2   -I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Library/Frameworks/GDAL.framework/Versions/3.1/Headers
-I/Library/Frameworks/GEOS.framework/Versions/3C/unix/include
-DPACKAGE=\""grassmods"\"
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-DRELDIR=\"grass_addon/raster/r.stream.basins\" -o basins_inputs.o -c
basins_inputs.c



gcc  -g -O2   -I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Library/Frameworks/GDAL.framework/Versions/3.1/Headers
-I/Library/Frameworks/GEOS.framework/Versions/3C/unix/include
-DPACKAGE=\""grassmods"\"
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-DRELDIR=\"grass_addon/raster/r.stream.basins\" -o io.o -c io.c



gcc  -g -O2   -I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Library/Frameworks/GDAL.framework/Versions/3.1/Headers
-I/Library/Frameworks/GEOS.framework/Versions/3C/unix/include
-DPACKAGE=\""grassmods"\"
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-I/Applications/QGIS3.14.app/Contents/MacOS/grass/include
-DRELDIR=\"grass_addon/raster/r.stream.basins\" -o main.o -c main.c



gcc -L/Applications/QGIS3.14.app/Contents/MacOS/grass/lib -o
/Applications/QGIS3.14.app/Contents/MacOS/grass/bin/r.stream.basins
./basins_fill.o ./basins_inputs.o ./io.o ./main.o-lgrass_gis.7.8
-lgrass_raster.7.8 -lgrass_segment.7.8 -lgrass_vector.7.8
-lgrass_dbmiclient.7.8 -lgrass_dbmibase.7.8


___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev