Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Aperi/build/linux"

(Reformatted page so I can add info on building in Eclipse)
(Command line build: Added building and running in Eclipse)
Line 13: Line 13:
  
 
ANT copies files to the aperi build user's directory and starts the build.
 
ANT copies files to the aperi build user's directory and starts the build.
 +
 +
== Building in Eclipse ==
 +
 +
Note:  I launch the Eclipse IDE as root.  I have not tested other configurations.
 +
 +
# Build the native code using the external tool "CompileNativeLinux_FromLinux".  This compiles the native code in $LINUX_BUILD_DIR and copies the result to "Aperi/bin/linux-ix86".
 +
#* Run -> External Tools -> CompileNativeLinux_FromLinux
 +
 +
== Running in Eclipse ==
 +
 +
# Build in Eclipse, see above.
 +
# Reset the debug environment.
 +
#* Run -> External Tools -> ResetDebugEnvironmentLinux
 +
# Configure the debug environment.
 +
#* Run -> Run... -> RunConfigureAperiIDE
 +
# Launch derby.
 +
#* Run -> Run... -> RunAperiDerbyDB
 +
# Launch the Data server
 +
#* Run -> Run... -> RunAperiDataServer
 +
# Launch the Device server
 +
#* Run -> Run... -> RunAperiDeviceServer
 +
# Launch the agent
 +
#* Run -> Run... -> RunAperiAgent

Revision as of 19:42, 13 March 2007

General Tasks

  1. Follow the instructions in "Aperi Development Environment.doc"
  2. Create a Linux aperi build user:
    username: aperi
    password: aperi
    home directory: /home/aperi
  3. Install apache-ant-1.7.0 in Aperi-Dev/BuildTools
  4. Download jsch-0.1.31.jar to "Aperi-Dev/BuildTools/apache-ant-1.7.0/lib/jsch-0.1.31.jar"
  5. Verify you have SSH access to localhost
    ssh aperi@localhost
  6. Make a symbolic link from "/usr/lib/jvm/jdk1.5.0" to the Sun JDK.

Command line build

  1. Start the Linux build:
    cd Aperi-Dev/Code/Aperi
    source build_env.sh
    ant compile_linux

ANT copies files to the aperi build user's directory and starts the build.

Building in Eclipse

Note: I launch the Eclipse IDE as root. I have not tested other configurations.

  1. Build the native code using the external tool "CompileNativeLinux_FromLinux". This compiles the native code in $LINUX_BUILD_DIR and copies the result to "Aperi/bin/linux-ix86".
    • Run -> External Tools -> CompileNativeLinux_FromLinux

Running in Eclipse

  1. Build in Eclipse, see above.
  2. Reset the debug environment.
    • Run -> External Tools -> ResetDebugEnvironmentLinux
  3. Configure the debug environment.
    • Run -> Run... -> RunConfigureAperiIDE
  4. Launch derby.
    • Run -> Run... -> RunAperiDerbyDB
  5. Launch the Data server
    • Run -> Run... -> RunAperiDataServer
  6. Launch the Device server
    • Run -> Run... -> RunAperiDeviceServer
  7. Launch the agent
    • Run -> Run... -> RunAperiAgent

Back to the top