|
BuildingFromSource
Instructions for compiling from source
Phase-Implementation Getting the SourceIf you are using a source archive/tarball, just extract the sources and goto Build Steps If you wish to use the latest code from version control, first ensure that you have a Mercurial client installed (if you don't have one, install a client for your platform from Mercurial Downloads). Then run the following command - $ hg clone http://ostinato.googlecode.com/hg/ ostinato Once the command completes, the source code will be available in the ostinato directory. After cloning the repository, at any time to retrieve any further updates to the code, run from inside the ostinato directory - $ hg pull -u NOTE: On the Source tab, there is a "Create a clone" button - you should click on that ONLY if you want to start contributing to Ostinato development yourself; if you just want to use Ostinato and build from source, follow the above procedure PrerequisitesOstinato has the following dependencies -
Build StepsThe following instructions use the command line shell to build Ostinato. If you wish to use the QtCreator IDE see Using QtCreator Linux/BSDEnsure that you have installed all the Prerequisites. Pre-built packages for all the pre-requisites can be obtained via your distribution's package manager (remember to use the devel packages); for protobuf, you need to install two packages - the protobuf devel library and the protobuf compiler (protoc) Make sure that the protobuf compiler protoc is in the path while building Ostinato. Run the following commands from the top level directory - $ qmake $ make $ make install NOTE: make install requires superuser privileges - depending on your platform either run it as root or via sudo To provide a custom install path, pass PREFIX=/absolute/path/to/prefix/dir to qmake. The binaries are installed in $PREFIX/bin/. The default prefix for Unix platforms is /usr/local. You can use the qmake options -config debug or -config release to force either debug or release mode. WindowsThese instructions assume the MinGW compiler. Ensure that you have installed all the Prerequisites. QT, Winpcap both offer pre-built ready-to-use binary packages. Protocol Buffers is however available as source only - you will need to build it first before you can build Ostinato (protobuf needs to be built using the MSYS shell). Once you have installed all the pre-requisites, set the CPLUS_INCLUDE_PATH and LIBRARY_PATH environment variables to include the path to the header and library files of all the pre-requisites. Also make sure that the protobuf compiler protoc.exe is in your path while building Ostinato. Run the following commands from the top level source directory - $ qmake $ make $ make install make install will, by default, install the binaries in <top-level-directory>/bin. To provide a custom install path, pass PREFIX=/absolute/path/to/prefix/dir to qmake. The binaries are installed in $PREFIX/bin/. To enable exclusive control over a port and prevent stray packets being generated by the OS, Ostinato uses the bindconfig application. Download and copy the executable in the same directory as the server (drone.exe) Mac OS XEnsure that you have installed all the Prerequisites. libpcap is typically available out of the box on Mac OS X. Qt is available via fink or macports. protobuf is available on macports but not on fink (at the time of this writing); you may build protobuf from source. Make sure that the protobuf compiler protoc is in the path while building Ostinato. Run the following commands from the top level directory - $ qmake -spec macx-g++ $ make $ sudo make install make install will, by default, install the application bundles in /Applications/bin. To provide a custom install path, pass PREFIX=/absolute/path/to/prefix/dir to qmake. The bundles are installed in $PREFIX/bin/. You can use the qmake options -config debug or -config release to force either debug or release mode. Using Qt CreatorEnsure that you have installed all the Prerequisites. See notes for your platform in Build Steps regarding the pre-requisites (ignore the ostinato build instructions there). Once you have installed all the pre-requisites -
To run Ostinato, you need to run both the server and client executables - by default Qt Creator will just run one of them. To work around this, create a batch/shell script in the top-level directory which starts both the server and client and configure Qt Creator to run the batch/shell script -
Windows Only: You will most likely need to configure the include and library paths for WinPcap and ProtoBuf in the project's build environment -
NotesIf you would like to use Ostinato as a "portable application", create an empty file "ostinato.ini" in the same directory as the Ostinato executable. |
hi,
i am getting this error when i run the following command "$ hg clone http://ostinato.googlecode.com/hg/ ostinato: , abort: error : connection attempt failed because the connected party did not properly respond after a period of time "..
kindly help.