Author Topic: running error  (Read 15570 times)

Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
running error
« on: February 09, 2011, 18:01:52 »
Hi,
I am trying to run a programme in C++ for  Hugin API and I am getting this error message.

Any help, please

error while loading shared libraries: libhugincpp.so: cannot open shared object file: No such file or directory

Many Thanks,

Noel
« Last Edit: February 09, 2011, 18:09:45 by noel »

Offline Frank Jensen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: running error
« Reply #1 on: February 09, 2011, 20:49:58 »
You need to make sure that the library can be found.  There are (at least) two ways to do that:

1) You can embed the full path to the directory where the library is located in the executable.  On Linux, this is done using the -Wl,-R/path/to/dir option to g++.

The Makefile in the "test" subdirectory shows how to do this.

Or:

2) Specify the location of the library using the LD_LIBRARY_PATH environment variable.

Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: running error
« Reply #2 on: February 10, 2011, 12:17:32 »

This is what I have done when setting up the library path


Into the Name text field, I wrote: LD_LIBRARY_PATH

And in the value, I specified the  path to where my hugin libraries have been placed.

Is this ok?


Thanks.

Noel


Offline noel

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: running error
« Reply #3 on: February 10, 2011, 12:32:01 »
I have found my error in path specification.

Thanks for your help


Noel