GithubHelp home page GithubHelp logo

AWT missing about jscipopt HOT 3 CLOSED

scipopt avatar scipopt commented on August 21, 2024
AWT missing

from jscipopt.

Comments (3)

kkofler avatar kkofler commented on August 21, 2024

There is kinda a bug in the JSCIP CMakeLists.txt here because it does not opt out of requiring AWT, which CMake's FindJNI.cmake unfortunately defaults to requiring:

    set(JNI_FIND_COMPONENTS AWT JVM)
    # For compatibility purposes, if no components are specified both are
    # considered required.
    set(JNI_FIND_REQUIRED_AWT TRUE)
    set(JNI_FIND_REQUIRED_JVM TRUE)

But you are missing not only the AWT JNI library, but also the Java headers (JAVA_INCLUDE_PATH, JAVA_INCLUDE_PATH2), or at least CMake cannot find them. Please make sure you install a full JDK (in distribution packages, that usually means installing the -devel or -dev subpackage of the Java/OpenJDK package) and not just the JRE parts. (And while theoretically a headless version should be sufficient, in practice, you will currently need AWT at build time, see above. There used to also be a runtime dependency on the AWT library, but I already fixed that part in commit 49e832b, so AWT is no longer required at runtime.)

I am keeping this open because of the unnecessary AWT build-time dependency, but this is mostly a user error.

from jscipopt.

kkofler avatar kkofler commented on August 21, 2024

Depending on how you installed Java, you may also have to set the JAVA_HOME environment variable. But it should not be necessary for an installation from GNU/Linux distribution packages of OpenJDK.

from jscipopt.

kkofler avatar kkofler commented on August 21, 2024

The AWT library is no longer required after commit 468efd0. But you will need to fix your missing Java includes for JSCIP to actually build.

from jscipopt.

Related Issues (20)

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.