NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit

Hello all,

I am relatively new to this site and got referred by a family member using Linux.

Linux is very new to me. I have been using Windows for way too long. Which means I am very unfamilar with alot of Linux guestures and navigating around using the terminal and such. (Fine on the GUI)

I recently attempted to install the programs: Player, and Stage to my Ubuntu and came across many errors.

I used this site: http://www.cnblogs.com/kevinGuo/archive/2012/05/03/2480077.html
In order to help me install the above software.

I documented the errors as I was going along the installation and am seeking help!

Terminal code with errors:
http://pastebin.com/YWLBjFh9

I am not too great with terminology or Linux in general, but I hope you guys can help!

Thanks

Hi Mally, and welcome to the forum :slight_smile:

First try sort out the dependencies …

The following packages have unmet dependencies. libopencv-calib3d-dev : Depends: [b]libopencv-features2d-dev[/b] (= 2.3.1-7) [b]but it is not going to be installed[/b] E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

So try installing libopencv-features2d-dev:

sudo apt-get install libopencv-features2d-dev

The try your:

sudo apt-get install libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool libxmu-dev swig

command again.

Do you get any errors from that command ?

Sadly, No luck.

libopencv-features2d-dev is already the newest version.
The following packages have unmet dependencies.
 libopencv-calib3d-dev : Depends: libopencv-features2d-dev (= 2.3.1-7) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages

Same error.

Try

sudo apt-get remove --purge libopencv-calib3d-dev

then

sudo apt-get remove --purge libopencv-features2d-dev

then

sudo apt-get autoremove

then

sudo apt-get clean

then

sudo apt-get update

then

sudo apt-get install libopencv-features2d-dev

then

sudo apt-get install libopencv-calib3d-dev

then

sudo apt-get install libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool libxmu-dev swig

Thanks alot! That worked like a dream.

Following on from the tutorial, I attempted placing these commands into the terminal with my interpretation of them:

# Checking Player installations
# Should get something like: -L/usr/local/lib -lplayercore -lpthread -lltdl -ldl -lplayerinterface -lplayercommon
pkg-config --libs playercore

# Need to set dynamic library path, and others..
# Better append these into ~/.bashrc file, e.g.:
# LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH
# Then:
# source ~/.bashrc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

# Print dynamic library path, should get something like: /usr/local/lib:
echo $LD_LIBRARY_PATH

# Checking Player version
pkg-config --modversion playercore
pkg-config --modversion playerc++
pkg-config --modversion playerc

This is what I input into the terminal with errors:

http://pastebin.com/gc8KCEqV

Still unfamiliar with Linux…

I’m a bit confused as to the order you’re doing things …

but …

I’m currently not at an Ubuntu 64bit PC, but if you come back tomorrow I’ll attempt to install them in a VM and if successful I’ll type up instructions.


Don’t get discouraged, what you’re attempting (compiling from source) is considered fairly advanced, and is rarely necessary as there’s normally a pre-compiled package somewhere … it just happens that the applications you’re trying to install have a PPA, but it hasn’t been updated with packages for 12.04, leaving you no alternative but to compile from source :frowning:

I’ll get back to you tomorrow … hopefully with a step by step walkthrough :wink:

Sorry the confusion.
It would be a great help for you to do so.

I await those instructions tomorrow, if you succeed!

Thanks alot!

Sorry it took me an extra day, but yesterday was a bit manic round here :wink:

OK, it seems that the instructions you’re following are slightly wrong for 64bit … they tell you to export the wrong path (for 64bit) … it should have been:

export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig

Here’s the FULL instructions for 12.04 64bit (and 11.10 64bit)

sudo apt-get update
sudo apt-get upgrade

If you’re running Ubuntu 12.04 64bit install these dependencies:

sudo apt-get install linux-headers-generic autotools-dev build-essential cmake cpp libboost-signals1.46.1 libboost-signals1.46-dev libboost-thread1.46.1 libboost-thread1.46-dev libcv2.3 libcv-dev libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-dev libopencv-features2d-dev libopencv-calib3d-dev libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool libxmu-dev swig python2.7-dev libcv-dev libcvaux-dev libhighgui-dev

OR

If you’re running Ubuntu 11.10 64bit install these dependencies instead:

sudo apt-get install linux-headers-generic autotools-dev build-essential cmake cpp libboost-signals1.46.1 libboost-signals1.46-dev libboost-thread1.46.1 libboost-thread1.46-dev libcv2.1 libcv-dev libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-dev libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool libxmu-dev swig python2.7-dev libcv-dev libcvaux-dev libhighgui-dev

OK, now to download Player and Stage -

mkdir ~/pas
cd ~/pas
wget http://sourceforge.net/projects/playerstage/files/Player/3.0.2/player-3.0.2.tar.gz
wget http://sourceforge.net/projects/playerstage/files/Stage/3.2.2/Stage-3.2.2-Source.tar.gz

Now to extract and install Player -

tar -xvf player-3.0.2.tar.gz
cd ~/pas/player-3.0.2
mkdir ~/pas/player-3.0.2/build
cd ~/pas/player-3.0.2/build
cmake ../
make
sudo make install
cd ~
sudo updatedb
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

OK, now for Stage -

Install these dependencies (12.04 and 11.10 64bit):

sudo apt-get install freeglut3 freeglut3-dev libfltk1.1 libfltk1.1-dev libltdl7 libltdl-dev libpng12-dev libpng12-0

Now to extract Stage:

cd ~/pas
tar -xvf Stage-3.2.2-Source.tar.gz

Now you need to edit 3 lines in the CMakeLists.txt file -

gedit ~/pas/Stage-3.2.2-Source/build/CMakeLists.txt

Find the lines that read:-

SET (CMAKE_CXX_FLAGS_RELEASE " -O3 -DNDEBUG ${WALL} " CACHE INTERNAL "C Flags for release" FORCE) SET (CMAKE_CXX_FLAGS_DEBUG " -ggdb ${WALL} " CACHE INTERNAL "C Flags for debug" FORCE) SET (CMAKE_CXX_FLAGS_PROFILE " -O3 -ggdb -pg ${WALL} " CACHE INTERNAL "C Flags for profile" FORCE)

and change them to:-

SET (CMAKE_CXX_FLAGS_RELEASE " -O3 -DNDEBUG -Wl,--no-as-needed " CACHE INTERNAL "C Flags for release" FORCE) SET (CMAKE_CXX_FLAGS_DEBUG " -ggdb -Wl,--no-as-needed " CACHE INTERNAL "C Flags for debug" FORCE) SET (CMAKE_CXX_FLAGS_PROFILE " -O3 -ggdb -pg -Wl,--no-as-needed " CACHE INTERNAL "C Flags for profile" FORCE)

SAVE the file, and exit gedit.

Back in the terminal run:

mkdir ~/pas/Stage-3.2.2-Source/build
cd ~/pas/Stage-3.2.2-Source/build
cmake ../
make
sudo make install

And now to test …

cd ~/pas/Stage-3.2.2-Source/worlds
player simple.cfg

I’m gona have a bash on this tomorrow/today.

Thanks alot for the help! I didn’t expect this much (so quick!) and I will inform you if I succeed or not!

Thanks again,

Mally.

Sadly, more errors arise.

http://pastebin.com/AMfxKwGf

So close.

Odd, it worked for me in Ubuntu 11.10 64bit

Currently I can’t get a 12.04 64bit VM to work, but I’ll try it in a 12.04 32bit VM install and see what happens.

Then if necessary I’ll get around to updating my 11.10 64bit PC to 12.04 64bit … but that may take a little longer :wink:

Oki doke.

This is such a pain. sigh