Sharkey
The Visual Studio 2005 Spring engine build, may be the easiest to
build at the moment. I think from VS2005 engine build, we can
determine what exactly the VS2005 dependencies are and then determine
which are currently needed for Spring on OS X.
Sharkey
On Oct 27, 2008, at 12:42 PM, AF wrote:
You have a good point about building the *nix version of Spring, to
get the dependency list, since OS X has a Unix compliant core.
Sharkey
It took a while, but I was able to get Spring 0.77b5 to compile on
Debian.
The main problem is twofold:
a) GCC 4.3 is not available on Debian Etch, but required to compile
Spring
b) free-java-sdk is not available on Debian Lenny (beta2), but
necessary for Spring bindings
The solution is to install onto Debian Etch the necessary packages to
compile boost and cmake, then update GCC to v4.3 and install the
remaining packages and finally compiling Spring source.
Here are the steps I've taken, taken from my notes. This MUST be peer
verified, by another developer, to replicate the procedure and make
sure I did not leave out any steps.
Please reply with your results.
Sharkey
------
This was done on a VMware instance Debian Etch stable 4.0, installed
via network installation.
1) Install Debian Etch (stable 4.0) and specify the Base install +
Workstation install
1a) Log into X and open a terminal window
2) Make sure the apt cache is current:
apt-get update
2a) Install the Etch essential build tools
apt-get install build-essential
2b) Be sure to install SSHD:
apt-get install ssh
2c) From another workstation, you SSH into the Debian Etch workstation
and continue the remaining steps from within the ssh session.
3a) SSH into the Debian Etch workstation and su
3b) Install the following packages, required for the full build/
installation of Boost 1.36:
apt-get install libbz2-dev
apt-get install python-all-dev
apt-get install zlib1g-dev
4) Download Boost 1.36.0 and extract and build and install it:
tar xvfz boost-1.36.0.tar.gz
cd boost-1.36.0
./configure
make
make install
5) Create a link from /usr/include/boost to /usr/local/include/
boost_1_36_0/boost
ln -s /usr/local/include/boost-1_36/boost /usr/include/boost
6) Download Cmake 2.6.2 and extract and build and install it
tar xvfz cmake-2.6.2.tar.gz
cd cmake-2.6.2
./bootstrap
make
make install
7a) Install the Java SDK, so that we have Java source headers
apt-get install free-java-sdk
7b) Install the following packages, required for build of Spring on
Debian (note: zlib1g-dev is necessary for Spring, but it was already
installed in step 3 so we could build Boost)
apt-get install liboggz1-dev
apt-get install libvorbis-dev
apt-get install libsdl1.2-dev
apt-get install libglew1.5-dev
apt-get install libfreetype6-dev
apt-get install libdevil-dev
apt-get install libopenal-dev
apt-get install libbz2-dev
7c) Make sure that the X headers are available, since Cmake will
complain if they are missing
apt-get install xorg-dev
8) Now we upgrade the GCC to version 4.3
8a) Update and write the /etc/apt/sources.list folder so that it as
follows:
#
# deb cdrom:[Debian GNU/Linux 4.0 r5 _Etch_ - Official i386 NETINST
Binary-1 20081024-15:53]/ etch contrib main
#deb cdrom:[Debian GNU/Linux 4.0 r5 _Etch_ - Official i386 NETINST
Binary-1 20081024-15:53]/ etch contrib main
deb http://ftp.us.debian.org/debian/ lenny main
deb-src http://ftp.us.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
8b) Update the apt-get cache so that it is current with Lenny
apt-get update
8c) Install the GCC 4.3, which is part of the Lenny essential build
tools
apt-get install build-essential
8d) When prompted to restart services, select OK or YES
11) Re-install the following packages, so that they are current with
Lenny:
apt-get install libbz2-dev
apt-get install python-all-dev
11a) When prompted to restart services always select OK or YES
11b) Install the following, to be current with Lenny:
apt-get install zlib1g-dev
12) Download, extract, and build the Spring 0.77b5 source code
tar xvf spring_0.77b5_src.tar
cd spring_0.77b5_src
/usr/local/bin/cmake .
make
make install
If all goes well, the spring binary will be in /usr/local/bin and the
various spring files will be in /usr/local/share/spring
Here is the Debian package dependencies as well as the version numbers
-----------------------------------------
Boost 1.36.0 package dependencies (Etch):
libbz2-dev 1.0.5-1
python-all-dev 2.5.2-2
zlib1g-dev 1.2.3.3.dfsg-12
------------------------------------------
Spring 0.77b5 package dependencies (Lenny):
zlib1g-dev 1.2.3.3.dfsg-12
liboggz1-dev 0.9.8-1
libvorbis-dev 1.2.0.dfsg-3.1
xorg-dev 7.3+18
libsdl1.2-dev 1.2.13-2
libglew1.5-dev 1.5.0dfsg1-3
libfreetype6-dev 2.3.7-2
libdevil-dev 1.6.8-rc2-3
libopenal-dev 1.4.272-2
It seems Java is necessary for Spring bindings. However Java SDK
package is not available for Debian Lenny RC2, but is available for
Debian Etch.
Ogg and Vorbis are necessary for the latest Spring build.
Sharkey
On Nov 6, 2008, at 11:26 AM, Jack Overfull wrote:
>
>
>
> On Nov 5, 9:12 pm, Rodney Degracia <rdegr...@gmail.com> wrote:
>> <SNIP>
In regards to compiling Devil 1.7.0 and 1.7.1 and 1.7.2 on OS X 10.5.5:
1) The DevIL developer(s) (mistakenly?) released source that have
embedded ^M characters that make it difficult to compile the sources
under *nix systems.
2) The DevIL developer(s) specify in the CFLAGS the flag "-fgnu89-
inline" which is not supported by OS X gcc 4.0.1
The above two points have made it more difficult than usual to get
devIL compiled on Xcode
Sharkey
On Nov 5, 2008, at 1:30 PM, AF wrote: