|
From: guillaume h. <gui...@un...> - 2010-02-08 08:21:59
|
Hi all, Here is a quick how-to install Sumo 0.11.1 or SVN version on Mac OS X 10.6.2 with MacPorts 1.8.2. I suppose that you have already installed XCode 3.2.1, so you have a complete build chain. Note that this is a requirement for MacPorts. I tested it with MacPorts 1.8.2 so go to http://www.macports.org to install the latest version or run "sudo port -v selfupdate" in Terminal.app to update your portage tree. Then you will need to install the following ports for Sumo 0.11.1 to compile: - xercesc - proj - gdal with bindings to xerces - fox - xorg-glproto (I didn't explicitely install this port, but it is required for the GUI I think). These can be installed using respectively the following commands from Terminal.app: $ sudo port -v install xercesc $ sudo port -v install proj $ sudo port -v install gdal +xerces $ sudo port -v install fox $ sudo port -v install xorg-glproto After the installation have completed, you can type "port installed" in the Terminal to see the list of installed ports versions. Mine were : - xercesc @2.8.0_2+darwin (active) - proj @4.7.0_0 (active) - gdal @1.6.2_2+xerces (active) - fox @1.6.36_1 (active) - xorg-glproto @1.4.11_0 (active) Next, you can download and uncompress the archive containing the source code for Sumo 0.11.1 or get the latest build from SVN. Then go to this directory: $ cd sumo-0.11.1 We will now configure the build for Sumo. Before that, we need to tell the build chain where to look for the libraries we have just installed with MacPorts (ports are installed in /opt/local which is a not a standard path for GCC). Type the following commands : $ export CPPFLAGS=-I/opt/local/include $ export LDFLAGS=-L/opt/local/lib And now, configure the build with the following command: $ ./configure --with-xerces=/opt/local --with-proj-gdal=/opt/local --with-fox=/opt/local --libdir=/opt/local/lib --includedir=/opt/local/include --enable-debug --enable-double-precision --enable-subsecond --enable-messages Note that we again declare the path to the required libraries. This might be redundant, but it worked. The same, I have enabled optional features (debug, double-precision, subsecond and messages). They are disabled by default. This corresponds to the successful build configuration with maximum options that I have tried. The summary of the enabled features should be the following: Optional features summary ------------------------- Enabled: Debug Messages InternalLanes DoublePrecision Subsecond TRACI PROJ GDAL GUI Disabled: MemoryChecks UnitTests Next compile : $ make Then you can install (copy the executable binaries to the /usr/bin directory) by typing "make install". But this is nothing but required. You can now try to use the Sumo simulator with GUI: $ src/sumo-guisim And "voilà". This is what you might see, after the GUI has loaded : http://img403.imageshack.us/img403/4203/sumoscreenshot.png Regards, -- Guillaume-Jean Herbiet PhD Student and teaching assistant ILIAS Lab - Ad hoc and Delay Tolerant Networks ________________________________________ University of Luxembourg Campus Kirchberg, office E-008 Phone: +352 46 66 44 5648 PGP Key: 0x21C93FE92EF8B8A7 ________________________________________ |