Difference between revisions of "FS2 Open on Solaris"

From FreeSpace Wiki
Jump to: navigation, search
(Clarified some things I had to do to get compiling working on OpenSXCE.)
(Added the stuff needed to get a successful install on Solaris 11.1.)
Line 33: Line 33:
 
</ul>
 
</ul>
 
That will give you an installation of Jansson which pkg-config can find with no other environment editing required.  Keep the jansson-2.3 folder around if you think you might want to run 'sudo gmake uninstall' at some point down the line, like if jansson ever gets into the package manager, or you want to upgrade.
 
That will give you an installation of Jansson which pkg-config can find with no other environment editing required.  Keep the jansson-2.3 folder around if you think you might want to run 'sudo gmake uninstall' at some point down the line, like if jansson ever gets into the package manager, or you want to upgrade.
 +
 +
== Install OpenCSW packages ==
 +
Installing these packages will fix the linking errors with libjpeg and libGL.  bzflag bring mesa, libglew, and probably some other stuff that's needed and it was easier to get it all in one go.
 +
<ul>
 +
<li>sudo pkgadd -d http://get.opencsw.org/now</li>
 +
<li>sudo pkgutil -U</li>
 +
<li>sudo pkgutil -y -i CSWlibjpeg-dev</li>
 +
<li>sudo pkgutil -y -i CSWbzflag</li>
 +
</ul>
  
 
== Compile FS2 ==
 
== Compile FS2 ==
Line 40: Line 49:
 
<li>./autogen.sh</li>
 
<li>./autogen.sh</li>
 
<li>gmake</li>
 
<li>gmake</li>
<li>TODO:  Figure out why it can't find libGL.so.1 or the jpeg symbols in the virtual machine.  See if a full blown desktop install has similar issues.</li>
 
 
<li>cp code/fs2_open_* ../</li>
 
<li>cp code/fs2_open_* ../</li>
 
</ul>
 
</ul>

Revision as of 00:26, 28 May 2014

Grab a copy of Solaris

Download the Oracle Solaris 11.1 x86 VirtualBox Appliance, update the guest additions, or install Solaris 11.1 for x86 on a desktop PC.

Install needed dependencies

  • developer/gcc-45
  • system/library/gcc-45-runtime
  • developer/build/autoconf
  • developer/build/automake
  • developer/build/gnu-make
  • library/readline
  • runtime/lua
  • developer/versioning/subversion
  • library/sdl
  • developer/versioning/git
  • developer/build/cmake

On OpenSXCE (OpenIndiana based distro for Sparc) I had to install CSWautoconf (included 2.63 is too old), CSWlibjpeg-dev (the original 6.2 version wouldn't load its symbols for some reason), CSWbzflag (easy way to pull in a bunch of OpenGL deps), CSWpkgconfig (very important to fix parse error in configure script), and uninstalled the original autoconf program. I still had to install OpenAL and Jansson, but OpenAL Soft had to be version 1.11.753 because no newer version would compile due to some opcode errors, and newer versions from git would not configure due to a pthread.h issue which doesn't seem to occur in the last release version or prior. Also, that openal soft's "gmake install" command ignored the cmake install prefix, so I had to install it by manually copying files to their destinations.

Install OpenAL

This is why git and cmake were installed while you had the package manager open. Clone the latest openal-soft from http://kcat.strangesoft.net/openal.html, follow its build instructions, except use the following command instead of 'cmake ..':
cmake -DCMAKE_INSTALL_PREFIX=/usr ..

Install Jansson

Jansson is the JSON library for C that is needed for the new WebUI dedicated server code. There is currently no Solaris package, so you will have to compile this from source. The latest version I can get working out of the box on Solaris 11.1 is [www.digip.org/jansson/releases/jansson-2.3.1.tar.gz Jansson 2.3.1]. Download the archive, extract it, cd into the new directory, then:

  • ./configure --prefix=/usr
  • gmake
  • gmake check
  • sudo gmake install

That will give you an installation of Jansson which pkg-config can find with no other environment editing required. Keep the jansson-2.3 folder around if you think you might want to run 'sudo gmake uninstall' at some point down the line, like if jansson ever gets into the package manager, or you want to upgrade.

Install OpenCSW packages

Installing these packages will fix the linking errors with libjpeg and libGL. bzflag bring mesa, libglew, and probably some other stuff that's needed and it was easier to get it all in one go.

Compile FS2

References

Building FS2_Open on OpenSolaris
Building OpenAL on Solaris