How to compile SCRAMNet Windows library file

From Lehigh RTMD Wiki
Jump to: navigation, search
  1. Compile the ScramNetIO.java file
javac edu\lehigh\nees\scramnet\ScramNetIO.java
  1. Create the C JNI Header, if necessary
javah -jni edu.lehigh.nees.scramnet.ScramNetIO
  1. If edu_lehigh_nees_lehigh_scramnet_ScramNetIO.h exists, just modify it manually.
  2. Run Visual Studio 2005 (Express Editions do not support x64) to compile the win32 or x64 DLL with the existing workspace, "SCRAMNet DLL".
  3. Copy the scramnetio.dll file to C:\RTMD\lib\ on the RTMDsim PC.
  4. 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.
  5. If the ScramNetIO.java file has been changed, please follow the instructions on how to checkout and package the RTMD java software.
Personal tools