-
Notifications
You must be signed in to change notification settings - Fork 1
SODA main repository
License
quicky2000/soda
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
#------------------------------------------------------------------------------- SODA : Smart OSM Diff Aanalyzer #------------------------------------------------------------------------------- SODA is a C++ Framework to perform analyzer of OSM diff files in live or at posteriori # INSTALLATION for Developpers #-------------------------------- 1) Linux You will need to install the following : * library SDL * make * g++ * library SQlite3 * library QT4 * library Expat * library Curl For Ubuntu users the following command should install the required packages : sudo apt-get install libsdl1.2-dev make g++ libsqlite3-dev libqt4-dev libexpat1 libexpat1-dev libcurl4-openssl-dev 2) Windows If you simply want to use SODA a precompiled version of SODA is available here : http://thevenon.julien.free.fr/soda/download/soda_win32_binaries.tar.gz If you want to build soda you will need to install the following: * Msys : http://www.mingw.org/wiki/MSYS * MinGW : http://www.mingw.org/ * Qt4.7.4 at least : http://qt.digia.com IMPORTANT : please ensure that gdb version is at leat 4.1.1 # BUILD #-------- 1) Linux To build all objects : soda Graphical Interface, soda command line, soda modules etc * Excute script build_Linux.sh If you want to rebuild a particular object * cd build/<object_name> * make ( for soda_batch or soda_QtUi ) make library ( for SODA modules) 2) Windows To build soda_batch and soda modules * Download http://thevenon.julien.free.fr/soda/download/MinGW_libs_2013_04.tar.gz * Take place in MinGW_material directory * Extract content of MinGW_libs_2013_04.tar.gz * Launch msys command to obtain an Msys terminal * take place in directory containing README * Execute script build_MinGW.sh with the command : sh MinGW_build.sh It should build everything needed for batch mode If you want to rebuild a particular object * cd build/<object_name> * make ( for soda_batch or soda_QtUi ) make library ( for SODA modules) To build soda_QtUi the SODA Graphical Interface the previous step should have been done. * Take place in build/soda_QtUi directory * Open soda_QtUi.pro with QtCreator * Click on finish in the dialog window * On the bottom left select gcc Build in debug mode if you want to develop or in release mode if you plan to prepare a package or test examples * Build the project # RUN EXAMPLES #-------------- 1) Linux Go inside examples directory. In each example directory there is * a run_batch.sh script that allows to run the example in batch mode * a run_gui.sh that allows to run the example in GUI mode. Once the GUI launched Open the provided configuration file and then click on Start button 2) Windows In case you rebuild soda by yourself instead of downloading precompiled binaries you should : * Build soda_QtUi in Release mode * Run command : sh package_MinGW.sh Go inside examples directory. In each example directory there is * a run_batch.bat script that allows to run the example in batch mode * a run_gui.bat that allows to run the example in GUI mode. Once the GUI launched load the provided configuration file present in the directory using "File -> Load configuration file" menu and then click on Start button # Create new soda analyzers #---------------------------- * Take place in template directory * Create a new empty module by using generate_analyzer.sh script First parameter is the suffix use to determine the name of the module to be created : soda-analyzer_<suffix> Second parameter is the type of module to generate : sax, dom or cpp By example : generate_analyzer toto cpp * A new directory containing the code skeleton of the new module has been generated. By example : soda_analyzer_toto * You can move it inside repository directory and adapt build scripts to make this module be built * Modify/complete the code of the module to perform the analyze you want