GithubHelp home page GithubHelp logo

zelenyynya / jnmatlib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cthiemann/jnmatlib

0.0 1.0 0.0 60 KB

A Java native interface to Matlab's libmat and libmx

License: GNU General Public License v3.0

jnmatlib's Introduction

This is the Java interface to Matlab's libmat and libmx.

To compile, open a Terminal and type
  ant

To use this with the SPaTo_Visual_Explorer, you must copy
the updated jnmatlib.jar from dist/ to the code folder
in the SPaTo_Visual_Explorer sketch. The jna.jar from lib/
must also be copied to the code folder, but probably
is already there.

The native libraries (.dll for Windows, .so for Linux, and
.dylib for Mac) in both 32-bit and 64-bit are in the lib
folder (Windows still missing...).  Besides libmat and libmx,
there are a bunch of libraries those two depend on and a
ICU dat file that contains 11 MB of probably useless stuff.

Unfortunately, some of the libraries don't tell they rely
on other libraries but rather try to load them themselves.
That has the ugly side effect, that an environment
variable has to be set to point to the library path
when running a Java program that uses jnmatlib.
This variable is PATH on Windows, LD_LIBRARY_PATH on Linux,
and DYLD_LIBRARY_PATH on Mac.  Multiple paths can be
specified in the environment variable, and if both the
32-bit and 64-bit versions are accessible via the path
variable, the correct version will be loaded (on Mac at
least).  In principle, it might be possible, to spawn
a new process from within Java that runs with the modified
environment variable.  This has to be implemented by the
program using jnmatlib.

jnmatlib's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.