MySQL 8.0.35 GCC library #157
Replies: 10 comments
-
Thanks @thockar Can you provide the build steps (if non-standard) and any patches that were applied? |
Beta Was this translation helpful? Give feedback.
-
I've build 8.0.35 , 8.1.0 and 8.2.0 .
Most of the changes are made without checking for available or missing (pre)compiler definitions - so they will only work in the build environment they were made for. The mysql code uses definitions and instructions which are not provided by any STD GCC library (c, c++) - they require a msvc-runtime dll 90 or higher. I used the msvcr100, which should be available for every Windows Vista-Kernel or higher (I'm not sure about WinXP.x64). I've attached the 8.2.0 zip. |
Beta Was this translation helpful? Give feedback.
-
here are some files which will help you to build the mysql 8.2.0 libs good luck |
Beta Was this translation helpful? Give feedback.
-
Thanks for that. I'll see if I can integrate the steps with the build system. |
Beta Was this translation helpful? Give feedback.
-
How do install this on a Windows server? |
Beta Was this translation helpful? Give feedback.
-
openssl 3.0.9 was build using MSYS2/mingw64 |
Beta Was this translation helpful? Give feedback.
-
@thockar did you submit bug reports to Oracle MySQL for the changes you had to make to the cmake files etc? |
Beta Was this translation helpful? Give feedback.
-
No, because GCC is official not supported by MySQL and the build environment I used, is only changed to build the MySQL libraries with/for GCC. |
Beta Was this translation helpful? Give feedback.
-
Since building with GCC on Windows is not officially supported by MySQL I would consider building it using MSVC compiler. That should produce the required DLL. It will still depend on msvc runtime and openssl dlls but I think there is no way around that. I am not 100% sure but I believe such DLL produced using MSVC can be happily used in another project that is built using GCC. Regarding openssl libs for Win they are bundled inside MySQL server packages for that platform (check the bin/ folder inside ZIP packages) |
Beta Was this translation helpful? Give feedback.
-
I'd be interested to hear how it goes. I build Image::Magick on Strawberry Perl against MSVC-built ImageMagick. Mostly, I do it the other way around. That is, I use mingw-w64-built libraries (gmp, mpfr, mpc, mpfi) with perl built by VS 2022. |
Beta Was this translation helpful? Give feedback.
-
I compiled mysql libraries 8.0.35 using gcc version 11.3.0 (Rev1, Built by MSYS2 project)
It makes it possible to install the latest DBD::mysql driver 5.xxx, which requires a mysqllib version 8.x.x.
It requires openssl 3.x.x (is compiled using 3.0.9) and an installed msvcr100.dll
You are free to implement it in to Strawberry Perl.
mysql_80035.zip
Beta Was this translation helpful? Give feedback.
All reactions