brunoalano / pyswip

Automatically exported from code.google.com/p/pyswip
MIT License
0 stars 0 forks source link

improve library loading #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, the library is only found and loaded, when the lib is called 
"libpl.so" and found by CDLL().

Improve this by using find_library() and on linux maybe even pkg-config. Also 
use "libswipl.so" since new versions install it like this.

Original issue reported on code.google.com by rotter.m...@gmail.com on 8 Mar 2011 at 5:35

GoogleCodeExporter commented 9 years ago
also related: http://code.google.com/p/pyswip/issues/detail?id=6

Original comment by rotter.m...@gmail.com on 8 Mar 2011 at 5:50

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Is this issue fixed?

With revision 111 pyswip finds /usr/local/lib/libswipl.so

In INSTALL perhaps we should change the symbolic linking line:
- $ sudo ln -s  /usr/lib/pl-5.6.34/lib/i686-linux/libpl.so.5.6.34 /usr/lib
/libpl.so
+ $ sudo ln -s /usr/local/lib/swipl-5.10.5/lib/x86_64-linux/libswipl.so.5.10.5 
/usr/local/lib/libswipl.so

Original comment by Stanc...@gmail.com on 21 Jan 2012 at 2:05

GoogleCodeExporter commented 9 years ago
I just committed a modification that should solve this issue in most cases 
(including the one that Stancomb gave).

It definitely works on Windows XP 32, Fedora 16 32 bits and Ubuntu 12.04 32 
bits (though Ubuntu still has some other problems).

After I solve issue 1, I will have this also tested in the 64 bit versions of 
the above distributions/OSes.

Original comment by rodrigo....@gmail.com on 1 May 2012 at 10:09

GoogleCodeExporter commented 9 years ago
Commit r120 is supposed to solve this issue.

Original comment by rodrigo....@gmail.com on 28 Dec 2012 at 5:54

GoogleCodeExporter commented 9 years ago
Corrected in r122. If there are issues with MacOS, it will be treated in a 
different issue.

Original comment by rodrigo....@gmail.com on 28 Dec 2012 at 11:02