Compile grass addon

ming han <[email protected]>
Newsgroups gmane.comp.gis.grass.devel,gmane.comp.gis.grass.user
Message-ID <CAD+uAWhMEw==29MgBKT5dvnY3QXAvt3dh0Zaj8Zy-wsTTcfAkA@mail.gmail.com>
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
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.