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.
Difference between revisions of "Aperi/build/linux"
m (Moved the command line build section) |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | == General Tasks == | |
− | + | ||
− | + | # Follow the instructions in "Aperi Development Environment.doc" | |
− | + | # Create a Linux aperi build user:<br>username: aperi<br>password: aperi<br>home directory: /home/aperi<br> | |
− | + | #Install apache-ant-1.7.0 in Aperi-Dev/BuildTools | |
− | + | #Download [http://prdownloads.sourceforge.net/jsch/jsch-0.1.31.jar?download jsch-0.1.31.jar] to "Aperi-Dev/BuildTools/apache-ant-1.7.0/lib/jsch-0.1.31.jar" | |
+ | # Verify you have SSH access to localhost<br><code>ssh aperi@localhost</code> | ||
+ | # Make a symbolic link from "/usr/lib/jvm/jdk1.5.0" to the Sun JDK. | ||
− | + | == 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 | ||
− | + | == Command line build [Optional] == | |
− | + | # Start the Linux build:<code><br>cd Aperi-Dev/Code/Aperi<br>source build_env.sh<br>ant compile_linux<br></code> | |
− | + | ||
+ | ANT copies files to the aperi build user's directory and starts the build. |
Latest revision as of 19:43, 13 March 2007
General Tasks
- Follow the instructions in "Aperi Development Environment.doc"
- Create a Linux aperi build user:
username: aperi
password: aperi
home directory: /home/aperi - Install apache-ant-1.7.0 in Aperi-Dev/BuildTools
- Download jsch-0.1.31.jar to "Aperi-Dev/BuildTools/apache-ant-1.7.0/lib/jsch-0.1.31.jar"
- Verify you have SSH access to localhost
ssh aperi@localhost
- Make a symbolic link from "/usr/lib/jvm/jdk1.5.0" to the Sun JDK.
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
Command line build [Optional]
- 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.