Difference between revisions of "Devel:Installation"
(New page: Development is preferably achived under Linux. Other platforms are not documented. == Necessary 3rd party tools == A recent version of [[wikipedia:GNU_Compiler_Collec...) |
|||
Line 1: | Line 1: | ||
− | Development is preferably | + | Development is preferably achieved under [[wikipedia:Linux|Linux]]. Other platforms are not documented. |
== Necessary 3rd party tools == | == Necessary 3rd party tools == |
Revision as of 14:03, 3 March 2010
Development is preferably achieved under Linux. Other platforms are not documented.
Contents
Necessary 3rd party tools
A recent version of g++, gfortran, and Qt are first required. For code edition, we recommend using Qt Creator which is provided in Qt sdk.
Some packages may require additional 3rd party libraries. Refer to the usual [Installation:Linux|installation instructions] for details.
Initialization
The list of packages is saved in a git repository called geopsyprojects. Configure it by editing option.sub.
mkdir geopsy-dev cd geopsy-dev git clone git://download.geopsy.org/geopsyprojects mv geopsyprojects admin cd admin cp option.sub.example option.sub vi option.sub
A package of multi-purpose scripts to ease coding experience. Bootstrap is a little tricky... Currently, the active branch is 2.1, to work on another branch (e.g. master, 2.2, ...) change the argument of git fetch and git checkout. Switching to another branch afterward is possible.
git clone git://download.geopsy.org/devpro cd devpro git fetch git://download.geopsy.org/devpro 2.1:2.1 git checkout 2.1 mkdir ~/.devpro echo "REF_QT_VERSION=4.5.3" >> ~/.devpro/info export PATH=$PWD/src:$PATH dpconfigure source ../admin/options.sub ./configure $CONFIGURE_OPTIONS make cd ..
Define path to geopsy-dev/bin (or other DEST_DIR if configured differently in admin/options.sub) in your PATH (e.g. ~/.bashrc).
export $PATH=/path/to/geopsy-dev/bin:$PATH
Download all packages
So simple...
cd geopsy-dev dpsubdo dpcheckout 2.1
Configure and compile
Configure packages forcing the options from admin/options.sub (option '-f').
cd geopsy-dev dpsubconfig -f
Build the general Makefile
dpsubpro qmake
Compile...
make debug
Qt Creator
Qt Creator does not like 3rd party projects included in the package list, so remove them from the global Makefile once these libraries are successfully compiled.
dpsubpro -l no3rdparty qmake
Start Qt creator and open 2.1.pro file located in geopsy-dev.