Coder Social home page Coder Social logo

nigel447 / stylus Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lecturestudio/stylus

0.0 0.0 0.0 277 KB

Stylus pen input for Java

License: Apache License 2.0

C++ 50.13% C 1.10% Objective-C 0.22% Java 43.28% Objective-C++ 3.46% CMake 1.82%

stylus's Introduction

Stylus pen input for Java

Java native interface implementation for pressure-sensitive input devices.

<dependency>
    <groupId>org.lecturestudio.stylus</groupId>
    <artifactId>stylus</artifactId>
    <version>0.2.0</version>
</dependency>
Swing JavaFX
lecturePresenter Screenshot lectureEditor Screenshot

Supported Platforms

By default, the main artifact depends on the native library corresponding to the system you are running your build or application on. The native libraries can be loaded on the following platforms:

Operating System Classifier
Linux linux-x86_64
macOS macos-x86_64
Windows windows-x86_64

Build Notes

In order to build the native code, be sure to install the prerequisite software and libraries:

Linux gcc, g++, libstdc++, libX11-dev, libxi-dev (e.g. for Ubuntu, names may differ depending on your distro)
macOS Xcode 9 or higher
Windows Visual Studio 2017 or higher

Assuming you have all the prerequisites installed for your OS, run:

mvn install

Troubleshooting

On Linux

If you get the error /usr/bin/ld: cannot find -ljawt while linking, perform following steps:

  1. Find the path where JDK is installed: which java or whereis java. Exemplary output: /usr/lib/jvm/java-16/bin/java
  2. Create a symbolic link to libjawt.so: ln -s /usr/lib/jvm/java-16/lib/libjawt.so /usr/lib/ (according to the exemplary output above).
  3. Build the project again.

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.