Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build DLL for Windows 64-bit #22

Open
utilmind opened this issue Oct 30, 2015 · 5 comments
Open

Can't build DLL for Windows 64-bit #22

utilmind opened this issue Oct 30, 2015 · 5 comments

Comments

@utilmind
Copy link

Unfortunately I was unable to build DLL for 64-bit Windows :( I have tried both Cygwin and MinGW (+ both 64 bit). I doing everything by instruction -- ./configure with required parameters, make, make install, and it seems successfully configures and compiles, however does not produce DLL's :(

I have spent 2 days trying different compilers and options etc, read tons of manuals, finally tried to modify "contigure" and produced "makefile" but still without luck.

Could someone assist and provide more thorough steps, which compiler better to download and what options to use? Or maybe even better if someone could provide compiled binaries -- Windows 64 DLLs which I will be able to connect with MySQL as UDF plugin.

Thanks for any help!

@richwaters
Copy link
Member

Unfortunately, the windows documentation is out of date and I'm not sure how to build for a 64-bit windows setup. There was a fork at one time the did provide a windows binary and updated documentation but I cannot find that anymore. I think the user was nysenate or something.

From what I understand, MariaDB offers pcre regex's natively. You might want to give that a try.

Otherwise, please post back if you do get this figured out.

@utilmind
Copy link
Author

Thanks for your response, Rich!

Perhaps MariaDB is cool, but I am not ready to switch from MySQL now. Actually I use MySQL both on CentOS/Linux (web-hosted production server) and on Windows (my development PC), so I would prefer to have the same DB for the website and on my development PC. (And lib_mysqludf_preg for CentOS works good.)

I have used lib_mysql_udf_preg on my previous PC with 32bit Windows, and still have those 32-bit DLLs. (BTW, they still available for download at https://github.com/mysqludf/lib_mysqludf_preg/downloads) However these DLLs in i386 format incompatible with 64-bit MySQL, which requires AMD64 DLL format.

I will be extremely grateful to anyone who will provide me with exact step-by-step instruction what to download and how to install/compile in 64-bit Windows. (I have tried by existing instructions, but it wont produce DLLs.)

Anyway I will try to find alternative solution or if I don't find anything -- will have to uninstall 64-bit MySQL and install 32-bit which able to work with those 32-bit DLLs...

@Erutan409
Copy link

@utilmind Were you able to find a solution to this?

@utilmind
Copy link
Author

Not yet, unfortunately. I gave up with it for now, and use it only in CentOS linux. Although I gave up trying to compile sources in Win64, I still expecting that someone more experienced in Win64 compilers than I will do it in near future.

@fghber
Copy link

fghber commented Jan 14, 2018

@richwaters I think the (seemingly outdated) documentation you mentioned can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants