[GRASS-dev] GRASS && OpenCV

Mohammed Rashad mohammedrashadkm at gmail.com
Fri Dec 16 22:39:32 EST 2011

here is my make command

g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib  -lgrass_I
-lgrass_Iortho -lgrass_arraystats -lgrass_bitmap -lgrass_btree
-lgrass_cairodriver -lgrass_cdhc -lgrass_cluster -lgrass_datetime
-lgrass_dbmibase -lgrass_dbmiclient -lgrass_dbmidriver -lgrass_dbstubs
-lgrass_dgl -lgrass_dig2 -lgrass_display -lgrass_driver -lgrass_dspf
-lgrass_edit -lgrass_form -lgrass_g3d -*lgrass_gis* -lgrass_gmath
-lgrass_gpde -lgrass_gproj -lgrass_interpdata -lgrass_interpfl
-lgrass_iostream -lgrass_ismap -lgrass_lidar -lgrass_linkm -lgrass_lrs
-lgrass_manage -lgrass_nviz -lgrass_ogsf -lgrass_pngdriver -lgrass_psdriver
-lgrass_qtree -lgrass_raster -lgrass_rli -lgrass_rowio -lgrass_rtree
-lgrass_segment -lgrass_shape -lgrass_sim -lgrass_sites -lgrass_sqlp
-lgrass_stats -lgrass_symb -lgrass_trans -lgrass_vask -lgrass_vect
-lgrass_vedit   -o wgrass

libgrass_gis is there but still error
/home/rashad/grass.cpp:5: undefined reference to `G__gisinit(char const*,
char const*)'

On Sat, Dec 17, 2011 at 6:51 AM, Hamish <hamish_b at yahoo.com> wrote:

> Mohammed Rashad wrote:
> > I just started my work but stuck in the intial statement
> > G__gisinit(char*....)
> how does the Makefile look?
> are $(GISLIB) and $(GISDEP) present? i.e. does you module's Makefile
> closely
> resemble other similar modules?
> if building from outside of the main source tree, do you have MODULE_TOPDIR
> pointed to where the source tree is?
> maybe add the grass lib dir to your /etc/ld.so.conf file, then as root run
> ldconfig. then the grass libs will be in the library search path.
> but be careful with that if you have multiple grass versions installed,
> if so you might want to export the LD_LIBRARY_PATH= environment variable
> at run time to add the lib dir into the library search path temporarily.
> Hamish

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20111217/fb36a89a/attachment-0001.html

More information about the grass-dev mailing list