Installing OpenCV under Ubuntu on BBB

Hi,

I have installed Ubuntu to boot from a SD card on BBB (ubuntu-saucy-13.10-armhf-3.8.13-bone30.img.xz).
The installation is ok and I can boot. But installing OpenCV is not successful and build aborts complaining few libraries not
present etc even though I had installed them. The following script outlines the process :

(I already installed Compiler tools (with Hard Float support) for ARM)

echo “Installing OpenCV”
mkdir opencv_build
cd opencv_build
echo “Removing pre-installed ffmpeg and x264”
sudo apt-get -y remove ffmpeg x264 libx264-dev
echo “Installing Dependenices”
sudo apt-get -y install libopencv-dev
sudo apt-get -y install build-essential checkinstall cmake pkg-config yasm
sudo apt-get -y install libtiff4-dev libjpeg-dev libjasper-dev
sudo apt-get -y install libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev
sudo apt-get -y install python-dev python-numpy
sudo apt-get -y install libtbb-dev
sudo apt-get -y install libqt4-dev libgtk2.0-dev
sudo apt-get -y install libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev
sudo apt-get -y install x264 v4l-utils ffmpeg
sudo apt-get -y install libgtk2.0-dev

I then install OpenCV (v2.4.8 etc) and build using the cmake file for Linux-ARM as recommended(OpenCV.org)
But build is not succesful and many libraries (zlib, GStreamer etc) are not built even though they were installed.

But I was able to install the same OpenCV under Ubuntu on my host Linux-VirtualBox (running on Windows7-PC) with out issues.

Has any one successfully installed and used OpenCV under Ubuntu on BBB?
Could you recommend/provide some info on the install script that successfully installed it on BBB?
What are the issues to be taken note of for such installation?

Thanks in advance,
anbu