As of just a minute ago, I’ve committed a portfile for VW and for ASP in their respective code repositories. The ASP one doesn’t support ISIS or point2mesh. It’s only good for performing stereo on pinhole sessions (MER/Personal Robots) or DG sessions (Digital Globe). I hope that eventually Macports will accept them into their distribution as vw-devel and asp-devel. Until that day, you can use these port files manually using these instructions.
I’ve made several false starts on this. So, I’ve decided to document my process so maybe I’ll help out some other unfortunate souls.
Word on the street is that Sun’s Java is the one to install. Those packages are no longer available in Ubuntu default repos anymore, so we’ll have to install by adding another package repository.
sudo apt-get install python-software-properties sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install ant sun-java6-jdk sun-java6-jre sun-java6-bin sun-java6-plugin
The Android SDK is currently shipped just as a 32 bit package. If you have a 64bit OS, you should consider doing the following
sudo apt-get install ia32-libs
Now you’re ready to install the Android SDK, which is available through this link.
tar xfz android-sdk_r16_linux.tgz cd android-sdk-linux/tools ./android update sdk --no-ui
At this point you should have adb in ‘android-sdk-linux/platform-tools‘. This is pretty much everything you need to compile unless you want to use Eclipse. If you are just learning how to use the SDK, you should continue on to Android’s Dev Guide or perform the ‘Hello World’ Tutorial.
It seems everyone runs into trouble when installing Vision Workbench. Here’s a quick outline on how to get my favorite software on my second favorite platform. We’ll need to start with downloading all the dependencies through Ubuntu’s package manager called Aptitude.
sudo apt-get install build-essential automake libtool libboost1.42-all-dev libproj-dev git git-completion liblapack-dev ccache
The above command gets you most of the way. There is however one more dependency that we require. We need GDAL, which is a wonderful library for interfacing with many different file types and their geographic information. However Ubuntu only provides an old 1.6 version where Vision Workbench requires the latest and greatest 1.7.
Getting the newer version of GDAL requires an additional repo provided by UbuntuGIS. This can be achieved easily by doing the following:
sudo apt-get install python-software-properties sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal1-dev gdal-bin
If you happen to be one of my unfortunate interns (Muhawahaha) working from a laptop and stuck behind a government firewall. Here’s what Josh has to say about that:
However, if you are on the ARC-WLAN-GUEST network, port11371 will most likely be blocked which will cause the above com-mand (and programs like ping) to time out. If this is the case, theFirst, add the line ”http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu lucid main” to your repository. Then, go tothe website http://wwwkeys.eu.pgp.net/ and search for the key0x314DF160. Copy the text that appears into a local ﬁle. Thenapt-key add filename-here. Now you should be able to get the latest gdal. Run apt-get’s update and then install libgdal1-dev.
git clone git://github.com/visionworkbench/visionworkbench.git VisionWorkbench
Others with ambitions of contributing back to the software will need to create a GitHub account and then proceed to fork Vision Workbench. Before you create a GitHub account, if you are unfamiliar with Git then you should read the first 2 chapters of ProGit. Proceed to GitHub and follow all the instructions until you have your ssh-keys setup. Then you’ll want to follow their instructions for how to fork a project. In the future when you want to contribute back to the group it will be performed with a pull request.
From inside your checked out copy of Vision Workbench in the first directory you’ll want to create a config.options file. In this file you’ll want to following contents.
ENABLE_DEBUG=yes ENABLE_OPTIMIZE=yes PREFIX=`pwd`/build/ ENABLE_CCACHE=yes ENABLE_RPATH=yes ENABLE_MODULE_MOSAIC=yes ENABLE_MODULE_CAMERA=yes ENABLE_MODULE_CARTOGRAPHY=yes HAVE_PKG_GDAL=/usr PKG_GDAL_CPPFLAGS=`gdal-config --cflags` PKG_GDAL_LIBS=`gdal-config --libs`
Finally you are ready to compile and install Vision Workbench.
./autogen ./configure make install
Vision Workbench is now installed in the build directory where the source code is checked out. You’ll probably want to point the environmental variable PATH to the build/bin directory.
If you still have spare cycles, you should run the test suite to find out if Vision Workbench is installed correctly. This is achieved with:
You are now finished. It is now time to party.