Author Topic: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit  (Read 1940 times)

0 Members and 1 Guest are viewing this topic.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« on: October 06, 2012, 06:50:57 pm »
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

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12490
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #1 on: October 06, 2012, 07:23:43 pm »
Hi Mally, and welcome to the forum :)

First try sort out the dependencies ..

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

So try installing libopencv-features2d-dev:
Code: [Select]
sudo apt-get install libopencv-features2d-dev

The try your:
Code: [Select]
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 ?
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #2 on: October 06, 2012, 07:50:43 pm »
Sadly, No luck.

Code: [Select]
libopencv-features2d-dev is already the newest version.

Code: [Select]
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.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12490
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #3 on: October 06, 2012, 08:16:46 pm »
Try
Code: [Select]
sudo apt-get remove --purge libopencv-calib3d-dev
then
Code: [Select]
sudo apt-get remove --purge libopencv-features2d-dev
then
Code: [Select]
sudo apt-get autoremove
then
Code: [Select]
sudo apt-get clean
then
Code: [Select]
sudo apt-get update
then
Code: [Select]
sudo apt-get install libopencv-features2d-dev
then
Code: [Select]
sudo apt-get install libopencv-calib3d-dev
then
Code: [Select]
sudo apt-get install libgnomecanvas2-0 libgnomecanvas2-dev libgsl0-dev libgtk2.0-dev libjpeg62-dev libtool libxmu-dev swig
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #4 on: October 06, 2012, 09:02:40 pm »
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:

Code: [Select]
# 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..

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12490
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #5 on: October 06, 2012, 10:35:39 pm »
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 :(

I'll get back to you tomorrow .. hopefully with a step by step walkthrough ;)
« Last Edit: October 06, 2012, 10:56:02 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #6 on: October 06, 2012, 10:57:20 pm »
Sorry the confusion.
It would be a great help for you to do so.

I await those instructions tomorrow, if you succeed!

Thanks alot!

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12490
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #7 on: October 08, 2012, 03:06:57 pm »
Sorry it took me an extra day, but yesterday was a bit manic round here ;)

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:
Code: [Select]
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig



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

Code: [Select]
sudo apt-get update

Code: [Select]
sudo apt-get upgrade

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

Code: [Select]
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:

Code: [Select]
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 -

Code: [Select]
mkdir ~/pas

Code: [Select]
cd ~/pas

Code: [Select]
wget http://sourceforge.net/projects/playerstage/files/Player/3.0.2/player-3.0.2.tar.gz

Code: [Select]
wget http://sourceforge.net/projects/playerstage/files/Stage/3.2.2/Stage-3.2.2-Source.tar.gz

Now to extract and install Player -

Code: [Select]
tar -xvf player-3.0.2.tar.gz

Code: [Select]
cd ~/pas/player-3.0.2

Code: [Select]
mkdir ~/pas/player-3.0.2/build

Code: [Select]
cd ~/pas/player-3.0.2/build

Code: [Select]
cmake ../

Code: [Select]
make

Code: [Select]
sudo make install

Code: [Select]
cd ~

Code: [Select]
sudo updatedb

Code: [Select]
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig

Code: [Select]
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH



OK, now for Stage -

Install these dependencies (12.04 and 11.10 64bit):

Code: [Select]
sudo apt-get install freeglut3 freeglut3-dev libfltk1.1 libfltk1.1-dev libltdl7 libltdl-dev libpng12-dev libpng12-0

Now to extract Stage:

Code: [Select]
cd ~/pas

Code: [Select]
tar -xvf Stage-3.2.2-Source.tar.gz

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

Code: [Select]
gedit ~/pas/Stage-3.2.2-Source/build/CMakeLists.txt

Find the lines that read:-

Quote
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:-

Quote
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:

Code: [Select]
mkdir ~/pas/Stage-3.2.2-Source/build

Code: [Select]
cd ~/pas/Stage-3.2.2-Source/build

Code: [Select]
cmake ../

Code: [Select]
make

Code: [Select]
sudo make install



And now to test ..

Code: [Select]
cd ~/pas/Stage-3.2.2-Source/worlds

Code: [Select]
player simple.cfg
« Last Edit: October 08, 2012, 03:19:53 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #8 on: October 09, 2012, 01:03:35 am »
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.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #9 on: October 10, 2012, 01:32:53 am »
Sadly, more errors arise.

http://pastebin.com/AMfxKwGf

So close.

Offline Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 12490
  • Karma: 306
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #10 on: October 10, 2012, 11:26:51 am »
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 ;)
WARNING: You are logged into reality as 'root'

logging in as 'insane' is the only safe option.

Offline Mally

  • Jr. Member
  • **
  • Posts: 7
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Re: NEED HELP INSTALLING PLAYER AND STAGE ON UBUNTU 12.04 64-bit
« Reply #11 on: October 13, 2012, 01:02:56 pm »
Oki doke.

This is such a pain. *sigh*

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal