Borealis has been closed, the last modification of install instruction was occured onTuesday August, 12, 2008. By following the instruction, we know that Borealis has been built on Debian, Red Hat, Fedora Core 2, and Mandrake GNU/Linux. All these OSs are outdated, by today, Read Hat has been changed to Red Hat AS 5, and Redora Core 2 is called Fedora 12. Though you can try to download a FC2, why do not try to compile it on a newer OS, so let’s go. Our target is try to compile Borealias 2008 summer version on Fedora 8.
According to “Packages Needed For Borealis”, we know that Gcc ,JDK and BerkeleyDB are three packages that are very important. Before we go, try to become a Supper user and use “yum” command to install the necessary packages. During testing, I found that:
1. Gcc version must be 3.3.5 through 4.1.1, or borealis’compiling will fail.
2. Berkely DB, also called db4, use the version shipped with Fedora 8 is OK.
3.XercesC, try to download the pointed version and compile it under Fedora 8.
After installing these package, then you have to modify the environment. It seems unnecessary that add all path or alias. For my system, my .bashrc file looks like this:
=======================================
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export JAVA_HOME=/usr/lib/jvm/java
export PATH=$JAVA_HOME/bin:$PATH
export INSTALL_NMSTL=/usr/local
export INSTALL_ANTLR=/usr/local
export INSTALL_BDB=/usr
export INSTALL_XERCESC=/usr/local/xerces
export INSTALL_GLPK=/usr
export INSTALL_GSL=/usr
export INSTALL_OCV=/usr
LD_LIBRARY_PATH=${INSTALL_ANTLR}/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_NMSTL}/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_XERCESC}/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_GLPK}/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_GSL}/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${INSTALL_BDB}/lib
export LD_LIBRARY_PATH
=========================================================
If you install the packages by “yum”, then the software will be installed into /usr/bin , /usr/include and /usr/lib three directory. For my environment, I justed downloaded ANTL and XERCESC two package, and installed them into /usr/local directory.
At last, you can build Borealis by using the “build.borealis.sh”.
1. Go to nmstl directory, and run below commands:
> cd nmstl
> autoconf
> ./configure
> make
> make install
If you get any error messages, try to check your Gcc’s verison.
2. IGo to borealis directory,
If you want to build an dynamicall lib, you can try
> cd src
> ./setup
> wtf ./configure –enable-shared –disable-static –with-antlr=/usr/local –with-db4=/usr/ –with-nmstl=/usr/local/ –with-xercesc=/usr/local/xerces
If you need a static lib system, try these:
> wtf ./configure –disable-shared –enable-static –with-antlr=/usr/local –with-db4=/usr/ –with-nmstl=/usr/local/ –with-xercesc=/usr/local/xerces
Explanation:
- “wtf” comes with nmstl and pretty-prints all gcc error messages (great tool!)
- There are reasonable defaults for all packages (the ones listed in the example above) so you might be able to run only:
> wtf configure –enable-shared –disable-static
- The “–enable-shared –disable-static” flags should prevent the compiler from generating static libraries.
Notice: Above command can work under src directory and will generate monitor and borealis two file. For other direcotry, this method will meet errorssssss.
3. So, it recommend that use the shell command to do this, simple and OK.
Try to build by a shell toolkit, try this line:
./build.borealis.sh -client -tool -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces
./build.borealis.sh -demo -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces -
./build.borealis.sh -test -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces
4. If you install glpk, gsl, ocv packages, you can try thist:
./build.borealis.sh -client -tool -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces -glpk /usr/local -gsl /usr/local -ocv /usr/local
./build.borealis.sh -demo -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces -glpk /usr/local -gsl /usr/local -ocv /usr/local
./build.borealis.sh -test -static -antlr /usr/local -bdb /usr/ -nmstl /usr/local -xercesc /usr/local/xerces -glpk /usr/local -gsl /usr/local -ocv /usr/local
In my Fedora 8, I met some errors on SDL, when I try to compile Demo and Test.
5. After that, you can get
> src/monitor
> src/borealis
> test/mytest
and some tools under tool directory.
6. “Install”
If you try “make install”, the execute files will be copied to /usr/local/bin, /usr/local/lib directorys. If you like, try this, or you have to execute the file in different direcotry.
The end and good luck.