xwiimote / xwiimote-bindings

Language bindings for the xwiimote package
Other
24 stars 10 forks source link

Bad constant? #9

Open RandomInsano opened 8 years ago

RandomInsano commented 8 years ago

After having some build trouble here, I abandoned Ubuntu 16.04's package for xwiimote and built and installed from 'master'. From there, I cleaned, re-configured, and installed xwiimote-bindings and that seemed to go fine.

After running that however, I'm getting this error:

ImportError: /usr/lib/x86_64-linux-gnu/libxwiimote.so.2: version `LIBXWIIMOTE_3' not found (required by /usr/local/lib/python2.7/dist-packages/_xwiimote.so)

I'm assuming this must be a runtime error because of where my libraries live (I didn't configure with any options). I get the same from ldd:

edwin@Rosetta:~/Documents/Code/xwiimote-bindings$ ldd /usr/local/lib/python2.7/dist-packages/_xwiimote.so
/usr/local/lib/python2.7/dist-packages/_xwiimote.so: /usr/lib/x86_64-linux-gnu/libxwiimote.so.2: version `LIBXWIIMOTE_3' not found (required by /usr/local/lib/python2.7/dist-packages/_xwiimote.so)
    linux-vdso.so.1 =>  (0x00007ffc082cc000)
    libxwiimote.so.2 => /usr/lib/x86_64-linux-gnu/libxwiimote.so.2 (0x00007fbd50689000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbd5046b000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd500a0000)
    libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fbd50080000)
    /lib64/ld-linux-x86-64.so.2 (0x000056399a5f6000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fbd4fe78000)

I'm not knowledgeable enough to know how to work around this however.

RandomInsano commented 8 years ago

After bumping the version in xwiimote to 3 in Makefile.am and rebuilding everything (and running ldconfig), it looks like the examples are working as intended. Again, I just threw science at the wall to see what would stick, I don't know the motivations for why the bindings were looking for features in version 3 when that build wasn't enabled yet.

v-a-s-a commented 8 years ago

I can confirm. I see the same issue when running the python example, and I used the same fix @RandomInsano offered above.