In addition to KevinH's advice, keep in mind that there are some platform-specific differences to the find_library and CDLL functions.
On OSX and Linux, find_library(name) expects the name parameter to be without a 'lib' prefix and without any suffixes like '.so' or '.dylib', or any appended version numbers. Windows has no shared library prefix, so if I recall, you'd need to use the whole filename minus the extension there.
In addition, find_library will return the full path to the shared library (if found) on Windows and OSX, while Linux will only return the file name portion.
So in your *nix example: "find_library('hunspell-1.3.0')" will likely be looking for a shared library with the name 'libhunspell-1.3.0.so.x' if there is no such library on your system (where your system keeps its shared libraries), it's going to return None.--and pass None to CDLL. Are you sure that's the exact version of hunspell's shared library that you have installed on your system?
Last edited by DiapDealer; 07-22-2015 at 06:34 PM.
|