Open Nutomic opened 5 years ago
Hi! At the bottom of the page you linked there's an info box for instructions on how to run ReGoth on Linux in case it complains about missing .so
files:
If you get complains about missing .so files when you try to run an executable, try running it as
LD_LIBRARY_PATH=../lib ./REGothSomething
. Also, you might get an error indicatinglibPhysX3_x64.so
not being found. You need to go intoREGoth-bs/lib/bsf/Dependencies/PhysX/lib/
and copy all .so-files to the location wherelibbsf.so
was built, usuallyREGoth/build/lib
.
It is a kludge, but according to https://github.com/GameFoundry/bsf/issues/366 it is not fixable.
Maybe i should have made this more explicit. I saw that note, and I am already running with the env variable (see my first log). However, I am still getting the error.
Have you also copied the dependencies' so files to the lib directory?
I just tried it, but its not helping. Besides, this workaround seems to be for windows only.
Then I'm afraid we'll need to wait for someone with more experience on running REGoth on linux...
After removing all physx .so
files I had installed on my system I could reproduce this. I have yet to find a proper fix for this, but the workaround from the docs works for me.
From inside the build/bin/
-directory, run the following:
# Copy the PhysX .so files if you haven't done that already
cp ../../lib/bsf/Dependencies/PhysX/lib/libPhysX3* .
# Fix the library path
export LD_LIBRARY_PATH=`pwd`/../lib:$LD_LIBRARY_PATH
# This also worked for me
LD_LIBRARY_PATH=../lib ./REGothWorldViewer -w WORLD ~/games/Gothic1
Thanks, that fixed the problem! So now this only needs to be added to the documentation I guess.
It kinda is the same thing as I described in the docs, but I'll make it more obvious. We should finally figure out why the RPath is wrong on the executable and copy the .so files after building automatically...
Oh you're right, I only read the first half of that. Anyway, it would be clearer if the exact cp
command was listed.
I followed the instructions here to compile Regoth on Manjaro. The compilation worked fine after installing libsquish manually. However, the binary always crashes with this error when I try to start it
Here is what my libs folder looks like, the file that it compains about is there.
The same error happens with every single executable in the bin/ folder.
Please let me know if you need any more details.