I tried Makefile:
Macbook Pro:Spreadsheet zr$ make
../../../settings/settings.mk:22: /settings/dk.mk: No such file or directory
make: *** No rule to make target `/settings/dk.mk'.  Stop.
Then I manually supplied the path of SDK:
Macbook Pro:Spreadsheet zr$ make OO_SDK_HOME=/Users/zr/Documents/2017.03/LibreOffice5.3_SDK
mkdir -p ../../../MACOSXexample.out/misc/JavaSpreadsheetExamples
"/Users/zr/Documents/2017.03/LibreOffice5.3_SDK/bin/idlc" -C -I. -I../../../idl -O../../../MACOSXexample.out/misc/JavaSpreadsheetExamples XCalcAddins.idl
dyld: Library not loaded: @__VIA_LIBRARY_PATH__/libreglo.dylib
  Referenced from: /Users/zr/Documents/2017.03/LibreOffice5.3_SDK/bin/idlc
  Reason: image not found
make: *** [../../../MACOSXexample.out/misc/JavaSpreadsheetExamples/XCalcAddins.urd] Abort trap: 6
I also tried compiling it in Eclipse, after installing LOEclipse plugin in Eclipse IDE for Eclipse Committers, by following these two links:
And https://github.com/smehrbrodt/libreoffice-starter-extension
(The starter extension does not seem to do anything after I run it.)
I created a new Java Project with the examples/java/Spreadsheet folder in Eclipse, and included all the jars in
/Applications/LibreOffice.app/Contents/Resources/java
Here is the error when I ran the SCal class:
com.sun.star.comp.helper.BootstrapException: no office executable found!
	at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:338)
	at com.sun.star.comp.helper.Bootstrap.bootstrap(Bootstrap.java:302)
	at SCalc.main(SCalc.java:96)
I already set the SDK environment:
MacBook Pro:LibreOffice5.3_SDK zr$ ./setsdkenv_unix 
************************************************************************
 *
 * SDK environment is prepared for MacOSX
 *
 * SDK = /Users/zr/Documents/2017.03/LibreOffice5.3_SDK
 * Office = /Applications/LibreOffice.app
 * Make = /usr/bin
 * Zip = /usr/bin
 * cat = /bin
 * sed = /usr/bin
 * C++ Compiler = /usr/bin
 * Java = /System/Library/Frameworks/JavaVM.framework/Versions/Current
 * SDK Output directory = /Users/zr/LibreOffice5.3_SDK
 * Auto deployment = YES
 *
 ************************************************************************
Did anyone successfully compile any SDK Java examples on Mac? Any instructions or suggestions are appreciated.
I used Spreadsheet example, but any example is fine. Thank you!
