All pastes #990871 Raw Edit

Meins

public text v1 · immutable
#990871 ·published 2008-04-20 14:57 UTC
rendered paste body
Required software:
==================

core
~~~~
- install eclipse
- install Subclipse from eclipse update manager
- install libqtjambi-dev
- install openjdk-6-jdk
- add "/usr/lib/jni" to /etc/ld.so.conf.d/libc.conf and run "sudo ldconfig"
- select openjdk6 as default vm (window->preferences->Installed JREs->Add...
JRE Home: /usr/lib/jvm/java-6-openjdk

devices
~~~~~~~
- install swig
- install build-essential

Check-out process:
==================
- checkout core and devices from svn


Setup process:
==============
core:
~~~~~
TODO: remove qtjambi from svn repository and make it a compile-time dependency on every platform

- add qtjambi.jar from /usr/share/java to classpath by clicking with the right mouse button on "core"->properties and then add in "Java build path"->Libraries the qtjambi.jar by clicking on "Add external JARs"
- window->show view->ant
- drag and drop build.xml in ant window ("salus.core" should appear)
- open build.xml and set "qtjambidir" to "/usr"
- double-click on "salus.core" to build the salus core

to run salus:
- expand "play-button" and select "Run"
- double click "Java application" to create a new java run configuration.
the main class should be org.salus.gui.Salus
- click on "Run"

devices
~~~~~~~
expand "devices" project node
- drag and drop build.xml in ant window ("salus.devicelibrary" should appear)
- open build.xml and make the appropriate changes
"jni.dir" : /usr/lib/jvm/java-6-openjdk/include
"swig.dir": /usr/bin
- add cpptasks to the ant classpath by selecting window->preferences and then ant->runtime. Click on "Global entries" and select "Add JARs".
Select in devices->ant the ant-contrib-1.0b3.jar and cpptasks.jar and click "OK".
- double-click on "salus.devicelibrary" to build the device library
- expand "salus.devicelibrary" and double-click on "install" to create the jar package and install the package to the "core.dir"


Enabling device-library support in core
=======================================

To enable device library support in the salus core, you need to add the appropriate *.dll or *.so to your path. Do this by editing your run configuration for the core. Open the run configuration (run button->"Run"), select your configuration ("Salus"), select "Environment" and "New".
Enter Name="LD_LIBRARY_PATH" and Value="${project_loc}/lib/devices-linux".