-
Notifications
You must be signed in to change notification settings - Fork 10
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
Linux x64 binding exception #111
Comments
Hi! Thanks for reporting. That's a good question, should be not hard to do, most likely a flag. But I thought / think it's still treated as the 'x86' platform. |
That is correct, PDAL-JNI is just PDAL bindings. Reading through the issue one more time.
This is also true, we rely on the PDAL version and dynamically link. 👍
|
Hello, Okay, I understand now, it's really just the JNI binding part. It makes sense that PDAL must be installed. I managed to get it working using version 2.5.1 of both.
The code :
But the result is empty, only the header is printed in the file
No log or errors. Am I missing something ? |
I build the latest PDAL on my machine and used the latest binding. So the issue is closed for me. On a more general concern :There are small API changes between 2.5 > 2.6 > 2.8 so using the latest binding with older PDAL version will not work. This is a problem when we produce a tool for a client, since we can hardly have an exact match between the binding and the local installation of PDAL. Many users have limited control over what is installed and which version is or can be installed on the computer. So the need for a static build is really important here if you want PDAL to be embedded in tools. You think we could have a static portable build as a maven depedency ? |
I like the idea of the static linking! Any PRs are super welcome & I'll try to assist as much as possible! Feel free to make a new feature issue. As a workaround symlinking .so libs to satisfy dynamic linker works. Things to keep in mind tho:
|
Have you tried PDAL CLI? Is it a PDAL bindings issue? |
I made it work with 2.8, it's fine now. |
Hello,
I am trying to use java bindings on linux x64 (fedora 40). but the .so fails to load in java with a good old exception :
The file does exist, and is a valid x64 elf,
But it's a dynamic lib, not a static one.
When listing the native links in the .so we have :
libpdalcpp.so.18 => not found
I believe this is why the so is not loaded, because a required lib is not available.
I tried installing PDAL on my machine, so I got pdal 2.5.6 (the latest one available on fedora 40) and downgraded the java binding to the closest version which is 2.5.1.
This time it loads but crashed a bit later :
In it's current state the portable binding only works if you have the exact same version of PDAL already installed.
Would it be possible to have a release with a static build of PDAL java bindings for linux x64 ?
thank you
Johann
The text was updated successfully, but these errors were encountered: