rljacobson / Levenshtein

A Blazingly Fast Damerau–Levenshtein Edit Distance Function (UDF) for MySQL
MIT License
24 stars 3 forks source link

Support CMake builds on Windows, cleanup windows support #2

Open rljacobson opened 5 years ago

rljacobson commented 5 years ago

The Windows build process can be described as, "Just do whatever to get the .dll." I couldn't get Visual Studio 2019 EAP to build the library via CMake, so I created a Visual Studio project in which the MySQL include and plugin directories are hardcoded to my own machine. The CMakeLists.txt file includes a half-hearted attempt at facilitating a build on Windows, but it's probably better to remove that code and wait for someone to do it right than to leave it in there.

FlorianEMKA41 commented 3 years ago

I've been trying to install this plugin into mysql on Windows Server 2012 but I keep gettin the error "Error Code: 1126. Can't open shared library 'C:\Program Files (x86)\MySQL\MySQL Server 5.7\lib\plugin\libdamlev.dll' (errno: 193 )" Any idea about what is happening?

Thanks

rljacobson commented 3 years ago

Does the file exist in the right directory? Take a look at this issue and see if any of it helps: https://github.com/rljacobson/Levenshtein/issues/5

I'm sorry I can't be of more help. I do not have access to that platform.

rljacobson commented 2 years ago

@FlorianEMKA41 Take a look at the fix in issue #11 (quoted from #8). You seem to be getting a different error message, but maybe it's related.