-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
This guide describes the installation of GWTPhotoAlbum from GWTPhotoAlbum-fat-sources-VERSION.tgz or from the cloned git repository of gwtphotoalbum.
To compile the AJAX part of GWTPhotoAlbum you need to install the following first:
-
google web toolkit version 2.2 or higher: http://www.gwtproject.org/
(This may require the installation of further software like a java virtual machine, an internet browser and the Apache ant build tool.)
In order to run the GWTPhotoAlbumCreator.py program to generate web galleries you additionally need the following software:
(GWTPhotoAlbumCreator.py can be run without compiling the AJAX part first as it already contains the compiled AJAX scripts.)
-
The Python programming language version 2.6 or higher: www.python.org
-
The python imaging library version 1.1.7 or higher: http://www.pythonware.com/products/pil/
-
The pyexiv2 library version 1.3 or higher (probably 1.3 works best): http://tilloy.net/dev/pyexiv2/
-
Download the latest fat source package:
GWTPhotoAlbum-fat-sources-VERSION.tgz
from the project website:
https://github.com/jecki/gwtphotoalbum
or check out the git repository from there!
-
Create a new google web toolkit project by entering the command on the shell:
webAppCreator -out GWTPhotoAlbum de.eckhartarnold.client.GWTPhotoAlbum -
Extract the GWTPhotoAlbum sources with the command:
tar --overwrite -xzvf GWTPhotoAlbum-fat-sources-VERSION.tar.gz -
Change to the GWTPhotoAlbum directory with:
cd GWTPhotoAlbum -
View the demo gallery with the command:
ant devmode
Change to the "scripts" sub-directory of the "GWTPhotoAlbum" main directory tree and enter the command from the shell:
python GWTPhotoAlbumCreator.py
-
Change the code as you like (Apache 2.0 license :-) ). I recommend using a powerful integrated development environment like eclipse.
-
Compile the code by simply running this command from the main directory:
ant -
In the "scripts" sub-directory re-run the "genDeploymentPackage.py" script to update the AJAX code that is deployed by "GWTPhotoAlbumCreator.py". Just type:
python genDeploymentPackage.py