How to compile SCRAMNet Linux library file

From Lehigh RTMD Wiki
Jump to: navigation, search
  1. Under src/edu/lehigh/nees/scramnet/, find ScramNetIO.java.
  1. Under "SCRAMNet DLL", find Linux folder then edu_lehigh.nees.scramnet_ScramNetIO.h, makefile, ScramNetIO.c.
  2. Connect to neestele and copy files over.
  3. Make sure that JAVA_HOME in makefile is set to the correct Java path.
  4. Edit ScramNetIO.c and on line 13, change sp_scram_init() to sp_scram_init(0). Save file.
  5. Run make to create the driver file, scramnetio.so.
  6. Become root and move the scramnetio.so file to /usr/lib/.
  7. If you make any other changes to the ScramNetIO.c file, make sure the changes are reflected in the edu_lehigh_nees_lehigh_scramnet_ScramNetIO.h and ScramNetIO.java files. You may need to change the function declaration parameters if you changed them in the ScramNetIO.c file.
  8. If the ScramNetIO.java file has been changed, please follow the instructions on how to checkout and package the RTMD java software.
Personal tools