-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
craftos: error while loading shared libraries: craftos2-lua/src/liblua.so: cannot open shared object file: No such file or directory #237
Comments
This is due to how the build process works. You need to use the patchelf --replace-needed craftos2-lua/src/liblua.so libcraftos2-lua.so craftos
ln -s craftos2-lua/src/liblua.so libcraftos2-lua.so I can't make this happen automatically, as |
mabey do something like this during the |
(i am testing locally and making a |
patchelf_target.patch |
should i pr this patch into the main repo as a extra target (also there are some cases where you refrence the |
Same issue with the AppImage. Can't compile from source for now, so it prevents me from using the software. I suppose this should get fixed. |
After experimenting a bit with building the project manually, it seems to be possible to fix this to not force the use of patchelf. By renaming the lua library output from This way the output binary will be set to load The only annoying thing is that the binary will have to be run using (I also haven't looked into how this ties into the windows version build, but I'm hoping it's not too difficult to make that work with it) |
Describe the bug
A clear and concise description of what the bug is.
getting
craftos: error while loading shared libraries: craftos2-lua/src/liblua.so: cannot open shared object file: No such file or directory
when running from outside the folder
To Reproduce
Steps to reproduce the behavior:
build the craftos pc binary with
make
(i ran with-j4
for using all 4 of my cores)head to another folder
try to run the binary either via a relative path or a symlink to the craftos binary
Expected behavior
A clear and concise description of what you expected to happen.
the liblua should either be built in or be able to be resolved instead of from the local path
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: