From: Rich M. <jp...@gm...> - 2012-04-25 13:10:54
|
On 4/25/2012 4:53 AM, kristjan.liiva1 wrote: > apt-get tells me that it is installed > > user@pc:~$ sudo apt-get install libcv-dev > Reading package lists... Done > Building dependency tree > Reading state information... Done > libcv-dev is already the newest version. > 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. > > But there is no /usr/share/pkgconfig/opencv.pc on my drive (even after > reinstalling libcv-dev). > Sorry, I meant to type /usr/lib/pkgconfig/opencv.pc. But that file is included in libcv-dev, so my initial suspicions about Ubuntu allowing libcv-dev to be installed without libhighgui-dev are confirmed. > After installing libhighgui-dev the installation went thru, so did the > installation of stage (4.1.1). But when trying to run the programs I > got this error : > user@pc:~/project/res$ stage empty.world > stage: error while loading shared libraries: libstage.so.4.1.1: cannot > open shared object file: No such file or directory > > Then I tried > export LD_LIBRARY_PATH=/usr/local/lib > and it worked, but if I close the terminal then I need to run this > command again. Is there a way to bypass this kind of behavior? > Check out http://playerstage.sourceforge.net/wiki/Local_installation. Basically, you can add the same export command you gave to your .bashrc file (located in your home directory.) This will set the LD_LIBRARY_PATH every time you open new terminal. |