Giter Club home page Giter Club logo

genappairavata's Introduction

===========================================
README: GENAPP AIRAVATA INTEGRATION
===========================================

++++++++++++++++++++++++++++++++
Testing with genarated intefaces
++++++++++++++++++++++++++++++++

Ready-to-Run interfaces can be found at genapp-output/nadeemtest/output-example. To Run these, follow the steps below:

1. Start your local Airavata Server 

2. Execute register.php (in genapp-output/nadeemtest) from command-line to register genapp modules

3. PHP/HTML5: 
	i)	Copy the contents of genapp-output/nadeemtest/output/html5 to a web server. 
	ii) 	Make sure airavata-client-properties.ini in html5 folder has the correct host/port
	iii)	Load "index.html" on a web-browser.

4. C++/QT4: 
	i)	Make sure lines 55-56 of airavata.cpp (in output-example/qt4/nadeemtest) have the correct host/port. 
	ii)	Change to "output-example/qt4/" and execute "./nadeemtest/nadeemtest"

5. C++/QT3: 
	i)	Make sure lines 55-56 of airavata.cpp (in output-example/qt3/nadeemtest) have the correct host/port. 
	ii)	Set QTDIR, QWTDIR and QWT3DDIR point to your qt3, qwt-qt3, qwt3d-qt3 installations Export LD_LIBRARY_PATH=$QTDIR/lib:$QWTDIR/lib:$QWT3DDIR/lib:$ULTRASCAN/lib:$LD_LIBRARY_PATH, export PATH=$QTDIR/bin:$PATH. 
	iii)	Change to "output-example/qt3/" and execute "./nadeemtest/nadeemtest"

Other dependencies: glib

+++++++++++++++++++++++++++++++++
Generating and Testing interfaces
+++++++++++++++++++++++++++++++++

Follow the steps below to build, configure and run genapp interfaces from scratch. 

1. Set up developement environment as listed on GenApp Wiki: http://gw105.iu.xsede.org:8000/genapp/wiki/setupdev
2. Set GENAPP environment vairable to the location of genapp folder and add $GENAPP/bin to your PATH
3. Change to genapp-output/nadeemtest/
4. Execute "genapp.pl"

Generated Code will be present in genapp-output/nadeemtest/output

Follow the instructions below for registering genapp modules and running the specific language interfaces.

++++++++++++++++++++++++++
Registering GenApp Modules
++++++++++++++++++++++++++
1. Start your local airavata server
2. Execute register.php (in genapp-output/nadeemtest) from command-line to register genapp modules

+++++++++
PHP/HTML5
+++++++++
1. Copy the contents of genapp-output/nadeemtest/output/html5 to a web server
2. Start your local airavata server and make sure airavata-client-properties.ini in html5 folder has the correct host/port
3. Load index.html5 on a browser to test

+++++++++
C++/Qt4
+++++++++

1. Change to "genapp-output/nadeemtest/output/qt4/nadeemtest"
2. Execute "qmake-qt4 -project"
3. Edit "nadeemtest.pro" to add the following lines:
	INCLUDEPATH += /usr/include/qwt-qt4 ../lib/
	LIBS += `pkg-config --libs glib-2.0` -L/usr/local/lib -lthrift -lqwt-qt4 
	QMAKE_CXXFLAGS += -w -Wno-write-strings -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config --cflags glib-2.0`
4. Copy resouces/qt/lib folder to genapp-output/nadeemtest/output/qt4/
5. Copy resouces/qt/airavata.cpp to genapp-output/nadeemtest/output/qt4/nadeemtest
6. Start your local airavata server and make sure lines 55-56 of airavata.cpp have the correct host/port 
7. Execute "qmake-qt4"
8. Execute "make"
9. Change to "genapp-output/nadeemtest/output/qt4" directory
10. Run executable ./nadeemtest/nadeemtest

Other dependencies:
1. glib

++++++++++
C++/QT3
++++++++++
1. Change to "genapp-output/nadeemtest/output/qt3/nadeemtest"
2. Set QTDIR, QWTDIR and QWT3DDIR point to your qt3, qwt-qt3, qwt3d-qt3 installations Export LD_LIBRARY_PATH=$QTDIR/lib:$QWTDIR/lib:$QWT3DDIR/lib:$ULTRASCAN/lib:$LD_LIBRARY_PATH, export PATH=$QTDIR/bin:$PATH.
3. Execute "qmake -project"
4. Edit "nadeemtest.pro" to add the following lines:
	INCLUDEPATH += ../lib/
	LIBS += `pkg-config --libs glib-2.0` -L/usr/local/lib -lthrift 
	QMAKE_CXXFLAGS += -w -Wno-write-strings -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H  `pkg-config --cflags glib-2.0`
4. Copy resouces/qt/lib folder to genapp-output/nadeemtest/output/qt3/
5. Copy resouces/qt/airavata.cpp to genapp-output/nadeemtest/output/qt3/nadeemtest
6. Start your local airavata server and make sure lines 55-56 of airavata.cpp have the correct host/port 
7. Execute "qmake"
8. Execute "make"
9. Change to "genapp-output/nadeemtest/output/qt3" directory
10. Run executable ./nadeemtest/nadeemtest


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.