Giter Site home page Giter Site logo

Compile Lept4J for Linux about lept4j HOT 4 CLOSED

joshimar avatar joshimar commented on August 29, 2024
Compile Lept4J for Linux

from lept4j.

Comments (4)

nguyenq avatar nguyenq commented on August 29, 2024

JNA searches for the packaged native library under specific folder depending on the OS architecture (see Platform.java). So for Linux, place your liblept.so under either linux-x86 or linux-x86-64 directory, depending on the bitness.

from lept4j.

joshimar avatar joshimar commented on August 29, 2024

Thanks @nguyenq !

Now, I put my linux-x86-64/liblept.so inside lept4j-master\src\main\resources, but after doing this and mvn install, I just see inside the generated jar the win32-x86 and win32-x86 directories, not linux-x86 or linux-x86-64.

Do I need to add something to the pom.xml or any other configuration so I can get rid of the Windows' libraries and add my Linux ones besides placing them under the mentioned directory?

from lept4j.

nguyenq avatar nguyenq commented on August 29, 2024

I did the same test. After mvn install, check the local m2 repository, and found the generated lept4j-1.2.5-SNAPSHOT.jar containing liblept.so file under linux-x86 directory.

from lept4j.

joshimar avatar joshimar commented on August 29, 2024

Thank you so much @nguyenq !

from lept4j.

Related Issues (19)

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.