- Sourcetree
- Pull Waveforms4j
- Java 11 SDK -
brew cask install java
- Mingw-w64
- Waveforms
- IntelliJ
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:
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