Notes for Ubuntu

From SfzWiki
Jump to: navigation, search
the following notes are dangerous and are currently being reworked, 
please try something else....
if you find a safe way to get ogre running on ubuntu please let us know...
see also the wiki on ogre3d.org  for safer instructions

the notes below worked sometimes, but screwed my system up other times, 
(screwed up in the sense of "apt-get : command not found", which means reinstall)
so you better have a backup and know how to reinstall your system and all the software before following them...
# "dpkg --force-depends -r somepackage" is evil, it deinstalls everything that depends on somepackage, and almost everything depends on libglib2.0-0


apt-get install libfreetype6-dev   # see "ubuntu dependency problem" below

# ubuntu dependency problem :
# PROBLEM : apt-get install something  fails :
## WARNING ! THE FOLLOWING MIGHT DEINSTALL MOST OF YOUR SYSTEM, DONT DO THAT UNLESS YOU KNOW WHAT YOU ARE DOING....
# ERRORMSG :                 Depends: 	libglib2.0-0 (=2.10.2-1ubuntu3) but 2.10.3-0ubuntu1 is to be installed
# SOLUTION:  dpkg --force-depends -r 	libglib2.0-0
# 		download		libglib2.0-dev
# from http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev  or so
# rightclick downloaded file, choose install
# apt-get -f install
# apt-get install something    # should work now
# solution based on http://ubuntuforums.org/showthread.php?t=199228
# idea : maybe activate security / update source in sources.list


# this one is tricky : libtiff4-dev 
# similar to the one described in "ubuntu dependency problem"
## WARNING ! THE FOLLOWING MIGHT DEINSTALL MOST OF YOUR SYSTEM, DONT DO THAT UNLESS YOU KNOW WHAT YOU ARE DOING....
# except that you have to do "dpkg --force-depends -r  ...."  twice, once for libtiff4 and for libtiffxx0c2
# then download and right-click-install these 3 from http://packages.ubuntu.com/dapper  (use search)
# libtiff4-dev_3.7.4-1ubuntu3.2_i386.deb
# libtiff4_3.7.4-1ubuntu3.2_i386.deb
# libtiffxx0c2_3.7.4-1ubuntu3.2_i386.deb
# then apt-get -f install
# and maybe again    apt-get install libtiff4-dev   


# install sdl with apt-get
apt-get install libsdl1.2-dev
## WARNING ! THE FOLLOWING MIGHT DEINSTALL MOST OF YOUR SYSTEM, DONT DO THAT UNLESS YOU KNOW WHAT YOU ARE DOING....
# got some trouble with that on ubuntu, here is help : http://ubuntuforums.org/showthread.php?t=199228 (the post with #a 4 step solution)
#hello all, I had the same problem in dapper 6.06 and fixed it by
#(please perform all the steps you may think some are not neccessary but they will configure apt-get -f install in step #4)
#1)sudo apt-get install libsdl1.2-dev (but it fails)
#2)sudo dpkg --force-depends -r libglib2.0-0(this will remove libglib)
#3)downloaded libglib2.0-dev(http://packages.ubuntu.com/dapper/libdevel/libglib2.0-dev) and tried to install it(but it #failed)
#4)apt-get -f install(it will do everything and remove the package which was causing the problem which is #libglib2.0-data or something like that and install the downloaded libglib and download libartsc0-dev from the net and #at last download libsdl1.2-dev and install it)