Closed jazzyb closed 12 years ago
On linux all executables need to be run with:
/lib/ld-linux.so.2 --library-path ./lib/ <executable>
if libforchess.so has not been placed in any typical lib location.
For example:
/lib/ld-linux.so.2 --library-path ./lib/ ./test_all
/lib/ld-linux.so.2 --library-path ./lib/ ./a.out
I will keep this issue open until I have clearly addressed it in the README or I've updated the Makefile to account for it.
When building LibForchess as a shared object library (with "make check", e.g.), I get the error:
error while loading shared libraries: libforchess.so: cannot open shared object file: No such file or directory
Need to figure out why gcc (even with the -L option) cannot find the library and fix the Makefile.
The work-around is to build LibForchess as a archive file: "make libforchess STATIC=1".