I am currently tweaking the  download_and_compile.sh*   to work on CentOS
6.3.

So far, it seems to be working with the below changes, but I'm only up to
the prt where it's building OSG.... so I'll send another email later with
the final result.

( I got the script from here:
http://wiki.flightgear.org/Scripted_Compilation_on_Linux_Debian/Ubuntu#Download
, which points to here:
http://www.gitorious.org/fg/fgmeta/blobs/raw/master/download_and_compile.sh)

The key changes are:

* defining this line near the start:

# on CentOS, installing the -devel version also installs the primary
package too!
CENTOS_PACKAGES="freealut-devel openal-soft-devel freealut-devel fltk-devel
cvs git subversion cmake make automake zlib-devel wxGTK-devel fltk-fluid
gawk gettext libXi-devel libXmu-devel boost-devel alsa-lib-devel
libpng-devel jasper-devel OpenEXR-libs OpenEXR-devel boost-serialization
boost-devel git-core hal-devel qt4-devel scons pygtk2-devel
python-imaging-tk subversion-devel glew-devel "

* adding support for detecting a CentOS-like OS:

if [  -e /etc/redhat-release ]
then
        DISTRIB_ID=CentOS
        echo REDHAT, hopefully: $DISTRIB_ID
fi

* adding to the DOWNLOAD_PACKAGES if-else block support for CentOS way of
things:

        if [ "$DISTRIB_ID" = "CentOS" ]
        then
                echo "Asking your password to perform a yum install ... "
                 sudo yum install $CENTOS_PACKAGES


* I also found a bug in PLIB , at the very end ( 4 lines from the bottom)
of plib/src/ssg/ssg.h there is a  #elif  statement without any truth
statement attached, so I changed it to a simple #else
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to