Re: YafaRay rendering plug-in

by enkonyito » Fri Nov 22, 2019 1:14 am

@Puybaret
Avoid to touch the native [font=courier new]YafarayRenderer.cpp[/font] file used as a bridge to YafaRay if you don't know JNI (Java Native Interface), but it shouldn't be necessary.
After generating the [font=courier new]YafarayRenderer.h[/font] file, modifying the [font=courier new]YafarayRenderer.cpp[/font] file, adding the include and lib folders, rendering returns the error

Code: Select all

Exception in thread "pool-7-thread-1" java.lang.UnsatisfiedLinkError: betaTestPlugin.YafarayRenderer.createEnvironment(Ljava/lang/String;Ljava/lang/String;)J
	at betaTestPlugin.YafarayRenderer.createEnvironment(Native Method)
The [font=courier new]YafarayRenderer.class[/font] file is located in the bin/betaTestPlugin project folder.

What is the best way to use the YafaRay rendering engine in another plugin (derived version)?