← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #698490]: Using custom c++ dll in Sikulix

 

Question #698490 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/698490

    Status: Open => Answered

RaiMan proposed the following answer:
I am rather sure, that it is not such easy, to access native libraries
from Jython based on Java.

A native library either needs a Java API (usually based on a JNI/JNA
usage) or you have to use JNA yourself (sun.jna....) to access the C++
API.

An example for the first way is bytedeco's javacpp and for the second
way you have to get familiar with JNA.

When you have the Java solution, then you can use it directly from
within Jython/SikuliX scripts having your stuff on the Java class path.

Another option of course is to look for available libraries compatible
with Jython, that have the features you need.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.