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

"libm.so.6" not found. #4274

Closed
2 tasks done
JankleDev opened this issue Feb 14, 2024 · 13 comments
Closed
2 tasks done

"libm.so.6" not found. #4274

JankleDev opened this issue Feb 14, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@JankleDev
Copy link

JankleDev commented Feb 14, 2024

Some information

Operating system: linux-android
Java version: 17
Minecraft version: 1.20.2
Baritone version: 1.2.19-599-ga223585d
Other mods (if used): None

How to reproduce

Add baritone-unoptimized-fabric-1.2.19-599-ga223585d;
Load up game in an linux-android.

Modified settings

To get the modified settings run #modified in game

Final checklist

  • I know how to properly use check boxes
  • [✓] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
  • I have included logs, exceptions and / or steps to reproduce the issue.
  • [✓] I have not used any OwO's or UwU's in this issue.
@JankleDev JankleDev added the bug Something isn't working label Feb 14, 2024
@JankleDev
Copy link
Author

[21:20:25] [Render thread/INFO]: [STDOUT]: [nether-pathfinder] Created temp file at /data/user/0/net.kdt.pojavlaunch.debug/cache/libnether_pathfinder-aarch644909904464162195681.so
[21:20:25] [Render thread/INFO]: [STDERR]: [nether-pathfinder] Failed to load shared library
[21:20:25] [Render thread/INFO]: [STDERR]: java.lang.UnsatisfiedLinkError: /data/data/net.kdt.pojavlaunch.debug/cache/libnether_pathfinder-aarch644909904464162195681.so: dlopen failed: library "libm.so.6" not found: needed by /data/data/net.kdt.pojavlaunch.debug/cache/libnether_pathfinder-aarch644909904464162195681.so in namespace clns-4

@ZacSharp
Copy link
Collaborator

This means the JVM can't find a native library needed by the elytra pathfinder (probably doesn't exist because you're using a phone). Maybe someone on the PojavLauner repository / discord can help with that.

@JankleDev
Copy link
Author

I think it's because libc.so.6 and libm.so.6 are made for Gnu/Linux not Android/Linux. I think it's not possible to cross-compile it either.

@JankleDev
Copy link
Author

Elytra Pathfinder was added in 1.20 update, it would be great if they could just separate them.

@ZacSharp
Copy link
Collaborator

Baritone should work fine anyways, just without elytra capabilities.

@ZacSharp
Copy link
Collaborator

Also elytra support is not exclusive to Baritone for 1.20.*, it is included in the last release for 1.12 (1.2.19) and is present in the code for 1.19.4 and 1.20.4.

@JankleDev
Copy link
Author

babbaj's nether-pathfinder is causing the issue. I've tested 1.19.2 and it works fine.

@ZacSharp
Copy link
Collaborator

As I said, Baritone should work fine regardless of the error message. If the game is crashing or Baritone is not working please say so explicitly since right now to me it looks like nether-pathfinder gracefully detected that it can't work on your system and in that case Baritone will simply not try to use it.

@ZacSharp
Copy link
Collaborator

The only part which is not supposed to work is #elytra, which will tell you that your system is not supported instead of it's normal actions.

@wagyourtail
Copy link
Collaborator

wagyourtail commented Feb 18, 2024

Actually its broken in the release and pojav crashes. This fixed it #4244

@ZacSharp
Copy link
Collaborator

Ehm right. Forgot about that one still being a thing.

@JankleDev
Copy link
Author

Actually its broken in the release and pojav crashes. This fixed it #4244

All 1.20 releases are broken? Do I need to build it myself?

@ZacSharp
Copy link
Collaborator

ZacSharp commented Feb 18, 2024

Yes, and since the changes are not merged up yet (if things go to plan I'll do that in a couple days see edit below) you'll also have to apply the change from #4244 to your source set before building. It's a single word change with no version dependencies so no big deal.
EDIT: You can also build from #4280 or use its CI build.
EDIT2: Since that pr is merged now, any build from the 1.20.4 branch will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants