Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.49 KB

Dev4MacOS.md

File metadata and controls

32 lines (20 loc) · 1.49 KB

What to Install on a Fresh System

  1. Sourcetree
  2. Pull Waveforms4j
  3. Java 11 SDK - brew cask install java
  4. Mingw-w64
  5. Waveforms
  6. IntelliJ

Install DWF Framework on MacOS

Download Waveforms from Digilent and open the DMG file, carrying on as usual. Move the dwf.framework to /Library/Frameworks, as indicated during the install of Waveforms from the DMG:

Building the JNI Library

The following steps outline how to create the JNI library file and put it in the resources folder, which will get bundled with the deployable jar we build later with Maven. The final step is platform dependent, but the first steps are the same.

You need to find where the Java JNI Headers are located first and use it for the first two -I arguments:

sudo find / -name "jni.h"
find / -name jni_md.h 2> /dev/null

cd .../.../waveforms4j
gcc -lstdc++ -shared ./c/org_knowm_waveforms4j_DWF.cpp -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin -F/Library/Frameworks -framework dwf -o waveforms4j.dylib
mv ./waveforms4j.dylib ./src/main/resources