How to compile SCRAMNet Windows library file
From Lehigh RTMD Wiki
- Compile the ScramNetIO.java file
javac edu\lehigh\nees\scramnet\ScramNetIO.java
- Create the C JNI Header, if necessary
javah -jni edu.lehigh.nees.scramnet.ScramNetIO
- If edu_lehigh_nees_lehigh_scramnet_ScramNetIO.h exists, just modify it manually.
- Run Visual Studio 2005 (Express Editions do not support x64) to compile the win32 or x64 DLL with the existing workspace, "SCRAMNet DLL".
- Copy the scramnetio.dll file to C:\RTMD\lib\ on the RTMDsim PC.
- If you make 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.