How to compile SCRAMNet Linux library file
From Lehigh RTMD Wiki
- Under src/edu/lehigh/nees/scramnet/, find ScramNetIO.java.
- Under "SCRAMNet DLL", find Linux folder then edu_lehigh.nees.scramnet_ScramNetIO.h, makefile, ScramNetIO.c.
- Connect to neestele and copy files over.
- Make sure that JAVA_HOME in makefile is set to the correct Java path.
- Edit ScramNetIO.c and on line 13, change sp_scram_init() to sp_scram_init(0). Save file.
- Run make to create the driver file, scramnetio.so.
- Become root and move the scramnetio.so file to /usr/lib/.
- 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.
- If the ScramNetIO.java file has been changed, please follow the instructions on how to checkout and package the RTMD java software.