[vtkusers] System.loadLibray() in 6.2
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu Mar 12 19:40:30 EDT 2015
You need to load manually the library by having something along those line
in your main.
// -----------------------------------------------------------------
// Load VTK library and print which library was not properly loaded
static {
if (!vtkNativeLibrary.LoadAllNativeLibraries()) {
for (vtkNativeLibrary lib : vtkNativeLibrary.values()) {
if (!lib.IsLoaded()) {
System.out.println(lib.GetLibraryName() + " not loaded");
}
}
}
vtkNativeLibrary.DisableOutputWindow(null);
}
// -----------------------------------------------------------------
Java related change for 6.2:
- vtkPanel used to system load the native library automatically. We
removed that
as it could cause issue when used in advanced class loader system such
as OSGI.
- Automate VTK build with Java wrapping on Windows/Linux/Mac dashboards.
On Thu, Mar 12, 2015 at 4:31 PM, -Daniel- <ich_daniel at habmalnefrage.de>
wrote:
> Hi,
> I have previously worked with VTK 6.1 (+ Java) and now I switched to 6.2.
> But when I test my program code, I must always load all DLLs via
> System.loadLibrary(..). This was not the case previously.
> The libraries did not need be loaded separately.
> Is it any settings in the cmake, I have not set or set incorrectly?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/System-loadLibray-in-6-2-tp5730789.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150312/f43b0f22/attachment.html>
More information about the vtkusers
mailing list