Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on MacOS because of missing library #3

Open
Earthcomputer opened this issue Oct 14, 2018 · 3 comments
Open

Failed to build on MacOS because of missing library #3

Earthcomputer opened this issue Oct 14, 2018 · 3 comments

Comments

@Earthcomputer
Copy link
Owner

Expected behavior

successful build using gradle

Current behavior

build failed

output:

FAILURE: Build failed with an exception.

* Where:
Build file '~/carpetmod/build.gradle' line: 79

* What went wrong:
A problem occurred evaluating root project 'Carpetmod'.
> A problem occurred configuring project ':clean'.
   > Could not resolve all files for configuration ':clean:downloadDeps0'.
      > Could not find java-objc-bridge-natives-osx.jar (ca.weblite:java-objc-bridge:1.0.0).
        Searched in the following locations:
            https://repo.maven.apache.org/maven2/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s

Steps to reproduce

  1. clone repo
  2. run ./gradlew setup
@Earthcomputer
Copy link
Owner Author

MinecraftForge/ForgeGradle#520 seems to be fixed in this, but the buildsystem will need retesting for the newer ForgeGradle version. Can someone do this?

@LlewVallis
Copy link

I just ran a completely clean install of Gradle and Carpetmod on macOS Mojave. The build still fails due to natives for macOS 404ing against the repository.

@LlewVallis
Copy link

LlewVallis commented May 10, 2019

Update: I did some digging and the issue is that Forge Mod Coder Pack pulls a dependency on a library called Java Objc Bridge. I think this is due to Minecraft having a dependency on it - but I could be wrong. I found a copy of it in my Minecraft installation: /Users/llew/Library/Application Support/minecraft/libraries/ca/weblite/java-objc-bridge I think the developers of the library, Weblite, removed it from their repositories for some reason or perhaps added the natives into their main library. It is just the natives that are not found - the main jar is still available.

EDIT:
Did some more digging and the reason is because Java Objc Bridge merged their project with JNA (Java Native Access). This results in a different project structure, meaning the extra natives JAR file, which is the one that can't be found, disappeared because it is no longer needed. If JNA was not required as a dependency before - it now is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants