Thursday, June 30, 2011

Install Speed Dreams on Ubuntu

Following up of my TORCS install howto, today I'll tell you what I had to do to get Speed-Dreams up and working on a brand new, clean Ubuntu 11.04 (Natty Narval) install.
NB: I usually work on the trunk branch of Speed Dreams, using git-svn, but I think the download packages should work the same.


So this is what I've started with:

  • sudo apt-get install cmake libsdl1.2-dev libjpeg8-dev libxmu-dev

then made some links:

  • sudo ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so
  • sudo ln -s /usr/lib/libGLU.so.1 /usr/lib/libGLU.so
  • sudo ln -s /usr/lib/libXi.so.6 /usr/lib/libXi.so

(idea from here)


then downloaded and installed Plib the usual way (later I learned there is a plib-dev package in Ubuntu now...):

  • Visit the PLib download page.
  • Download the 1.8.5 version, then do as told: tar xzf plib-1.8.5.tar.gz
  • cd plib-1.8.5
  • ./configure
  • make
  • sudo make install
and then onto adding some more dev libs:

  • sudo apt-get install libopenal-dev libenet1-dev

At this point "cmake ." still wasn't happy, whining about some plib thingies. Quick googling led me to our own forum (khm) and launching cmake in interactive mode (cmake -i .) I was able to set the correct location of the PLib includes.
This was so satisfying that cmake agreed to complete 100%.


Now in the make phase I quickly faced the first problem, at about 9% of compiling. It missed some libplib*.so files in the /usr/lib directory. Noproblemo, linking is our friend (every other day):

  • sudo ln -s /usr/lib/libplibul.so.1 /usr/lib/libplibul.so
  • sudo ln -s /usr/lib/libplibsg.so.1 /usr/lib/libplibsg.so
  • sudo ln -s /usr/lib/libplibsl.so.1 /usr/lib/libplibsl.so
  • sudo ln -s /usr/lib/libplibjs.so.1 /usr/lib/libplibjs.so
  • sudo ln -s /usr/lib/libplibssg.so.1 /usr/lib/libplibssg.so
  • sudo ln -s /usr/lib/libplibssgaux.so.1 /usr/lib/libplibssgaux.so

And so it compiled at last...
Now I'm busy racing :)