On 5/3/07, Charles Lepple <[EMAIL PROTECTED]> wrote:
> I tried to build libhid-0.2.16 and the SVN version under CentOS 5
> and both failed when swig is enabled.

Again, I would need to see the output of config.log - there is not
enough information in that error message to diagnose the problem.


I've found out the problem -- the detection of the python library
libpython2.4.so is not correct. It is wrongly detected as
/usr/lib/python2.4/config/libpython2.4.so but there is no such file there.

[EMAIL PROTECTED] ~]$ ls -la /usr/lib/libpython2.4.so*
lrwxrwxrwx 1 root root      19 Apr 18 19:28 /usr/lib/libpython2.4.so
-> libpython2.4.so.1.0
-r-xr-xr-x 1 root root 1136208 Mar 15 06:52 /usr/lib/libpython2.4.so.1.0
[EMAIL PROTECTED] ~]$ ls -la /usr/lib/python2.4/config/
total 1920
drwxr-xr-x  2 root root    4096 Apr 18 22:16 .
drwxr-xr-x 22 root root   20480 Apr 25 19:29 ..
-rw-r--r--  1 root root    1759 Mar 15 06:52 config.c
-rw-r--r--  1 root root    1191 Mar 15 06:52 config.c.in
-rwxr-xr-x  1 root root    7122 Mar 15 06:52 install-sh
-rw-r--r--  1 root root 1769092 Mar 15 06:52 libpython2.4.a
-rw-r--r--  1 root root   52971 Mar 15 06:52 Makefile
-rwxr-xr-x  1 root root    7430 Mar 15 06:52 makesetup
-rw-r--r--  1 root root    4692 Mar 15 06:52 python.o
-rw-r--r--  1 root root   17624 Mar 15 06:52 Setup
-rw-r--r--  1 root root     368 Mar 15 06:52 Setup.config
-rw-r--r--  1 root root      41 Mar 15 06:52 Setup.local


As a not-so-correct work-around, the following  command solved the
issue.

[EMAIL PROTECTED] libhid-svn]$ sudo cp /usr/lib/libpython2.4.so*
/usr/lib/python2.4/config/

With this "not-so-correct" fix, both the svn version and the 0.2.16 version
can be built.

Regards,
Xiaofan

_______________________________________________
libhid-discuss mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss

Reply via email to