[GRASS-dev] GRASS && OpenCV

here is my make command

g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib

and you are trying to build against the installed grass 6.4 not a self-
built but uninstalled 6.5svn or other version, right?

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

Hamish wrote:

> how does the Makefile look?

?

> 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.

please try that.

as root:

echo /usr/lib/grass64/lib >> /etc/ld.so.conf
ldconfig

Hamish

On Sat, Dec 17, 2011 at 9:31 AM, Hamish <hamish_b@yahoo.com> wrote:

here is my make command

g++ -I/usr/lib/grass64/include grass.o -L/usr/lib/grass64/lib

and you are trying to build against the installed grass 6.4 not a self-
built but uninstalled 6.5svn or other version, right?

libgrass_gis is there but still error/home/rashad/grass.cpp:5:

undefined reference to `G__gisinit(char const*, char const*)’

Hamish wrote:

how does the Makefile look?

?

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.

please try that.

as root:

echo /usr/lib/grass64/lib >> /etc/ld.so.conf
ldconfig

Hi Hamish
I tried that but no luck :frowning:

Hamish

Regards,

Rashad

2011/12/18 Mohammed Rashad <mohammedrashadkm@gmail.com>:

echo /usr/lib/grass64/lib >> /etc/ld.so.conf
ldconfig

Hi Hamish
I tried that but no luck :frowning:

well, and are really GRASS libraries installed in `usr/lib/grass64` ? :wink:

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

On Sun, Dec 18, 2011 at 9:13 PM, Martin Landa <landa.martin@gmail.com> wrote:

2011/12/18 Mohammed Rashad <mohammedrashadkm@gmail.com>:

echo /usr/lib/grass64/lib >> /etc/ld.so.conf
ldconfig

Hi Hamish
I tried that but no luck :frowning:

well, and are really GRASS libraries installed in usr/lib/grass64 ? :wink:

yes martin. I also installed grass 6.4.2 from source checkout

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Regards,

Rashad

On Sun, Dec 18, 2011 at 6:13 PM, Mohammed Rashad
<mohammedrashadkm@gmail.com> wrote:

On Sun, Dec 18, 2011 at 9:13 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/12/18 Mohammed Rashad <mohammedrashadkm@gmail.com>:
>> echo /usr/lib/grass64/lib >> /etc/ld.so.conf
>> ldconfig
>>
> Hi Hamish
> I tried that but no luck :frowning:

well, and are really GRASS libraries installed in `usr/lib/grass64` ? :wink:

yes martin. I also installed grass 6.4.2 from source checkout

That was not Martin's question. Martin asked if the GRASS libraries
are really installed in `usr/lib/grass64`. By default, after `make
install`, libraries are installed in `$prefix/grass-6.4.2svn/lib`,
prefix would be `usr/local`on default. Please check again the
directory `$prefix/grass-6.4.2svn/lib`, optionally replacing $prefix
with your choice of prefix.

On Mon, Dec 19, 2011 at 12:16 AM, Markus Metz <markus.metz.giswork@googlemail.com> wrote:

On Sun, Dec 18, 2011 at 6:13 PM, Mohammed Rashad
<mohammedrashadkm@gmail.com> wrote:

On Sun, Dec 18, 2011 at 9:13 PM, Martin Landa <landa.martin@gmail.com>
wrote:

2011/12/18 Mohammed Rashad <mohammedrashadkm@gmail.com>:

echo /usr/lib/grass64/lib >> /etc/ld.so.conf
ldconfig

Hi Hamish
I tried that but no luck :frowning:

well, and are really GRASS libraries installed in usr/lib/grass64 ? :wink:

yes martin. I also installed grass 6.4.2 from source checkout

That was not Martin’s question. Martin asked if the GRASS libraries
are really installed in usr/lib/grass64. By default, after make install, libraries are installed in $prefix/grass-6.4.2svn/lib,
prefix would be usr/localon default. Please check again the
directory $prefix/grass-6.4.2svn/lib, optionally replacing $prefix
with your choice of prefix.

I installed grass from source it is installed on /usr/local/.grass-6.4.2svn

i also installed from lucid repos it is installed on /usr/lib/grass64

so there are two installations. I also tried to link with each sepreately and add one by one to /etc/ld.so.cinbf
and do ldconfig

but still error

As my title indicates there is one more question GRASS && OpenCV. Is there any need for it. If yes please tell me…

Regards,

Rashad