ricardocabral/iskdaemon — Issue #8: Build fails on debian
Author: cgwyllie
Created: 2012-01-04 22:40:30+00:00
State: open

Hi,

When trying to install for Debian Wheezy, the imgdb.so file was not generated despite the rest of the compilation and python installation working properly. It seemed to be a linker error (lots of errors with "undefined reference to...") and I was able to build the library after doing the following:

1) modifying the additional linker arguments in setup.py to include "-lpython2.7"
2) adding an empty main method to the imgdb.cpp file

I'm not sure why the linker was having trouble locating the python-dev libraries, or why it bombed out when it couldn't find an int main, but here are the details of my build environment:

Python 2.7.2+
gcc (Debian 4.6.2-9) 4.6.2
g++ (Debian 4.6.2-9) 4.6.2
imagemagick (8:6.6.9.7-5)

Hopefully this information is of some use for people building on Debian, and if you'd like any more details just let me know.

Thanks,
Chris