[libhid-discuss] Installation problems with libhid-0.2.16

Xiaofan Chen xiaofanc at gmail.com
Thu May 3 14:18:13 UTC 2007


On 5/3/07, Charles Lepple <clepple at ghz.cc> 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.

[mcuee at localhost ~]$ 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
[mcuee at localhost ~]$ 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.

[mcuee at localhost 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



More information about the libhid-discuss mailing list