Cannot Compile Mysqldac for Macos, ever!

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
markofzaaz
Posts: 7
Joined: Mon 26 Nov 2018 16:50

Cannot Compile Mysqldac for Macos, ever!

Post by markofzaaz » Mon 22 Jul 2019 12:14

Has ANYONE ever been able to get MySqlDac c++ builder app to compile for Macos?

I can get lots of others to work, but as soon as a MyConnection is dropped on a form and I try to compile it simply doesn't work, either fails to link, or lots of errors in time.h and zlib?

I am using C++ Builder Rio 10.3.1 with mysqldac 9.3.9
Mac is running Xcode 9.4.1 with Macos10.3sdk

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Cannot Compile Mysqldac for Macos, ever!

Post by ViktorV » Mon 22 Jul 2019 13:52

While investigating, we have found out, that the problem is not related to UniDAC, it was a bug in RAD Studio 10.3 RIO. We have registered bugs in Embarcadero QualityCentral: https://quality.embarcadero.com/browse/RSP-23601; https://quality.embarcadero.com/browse/RSP-23334; https://quality.embarcadero.com/browse/RSP-23335
You can leave comments concerning bugs in the topic via the provided link for faster issue solution.

markofzaaz
Posts: 7
Joined: Mon 26 Nov 2018 16:50

Re: Cannot Compile Mysqldac for Macos, ever!

Post by markofzaaz » Mon 22 Jul 2019 16:49

Can you advise how to use it with C++ Builder 10.2.Update 3 ?

MyDac Version 9.4.10

Paserver19 running on Macbook Air
Mojave 10.14.5
Xcode9.4.1
MacOSX10.13sdk

I simply drop a MyConnection object on the form and build get lots of errors

[xlink.exe Error] Error: Unresolved external 'System::Zlib::deflateInit_(System::Zlib::z_stream&, int, char *, int)' referenced from C:\PROGRAM FILES (X86)\EMBARCADERO\STUDIO\19.0\LIB\OSX32\RELEASE\DAC250.A|MemUtils.o

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Cannot Compile Mysqldac for Macos, ever!

Post by ViktorV » Tue 23 Jul 2019 05:24

This problem occurs due to incorrect usage of the zlib library by С++ Builder. Unfortunately, we cannot influence it. We posted this bug to Embarcadero Quality Central here: https://qc.embarcadero.com/wc/qcmain.aspx?d=102742
As a workaround, try unchecking the options
[Packages] -> "Link with runtime packages"
and
[C++ Linker] -> "Link with dynamic RTL" .
Also, rem the line in the System.ZLib.hpp unit:
static const System::WideChar _PU = (System::WideChar)(0x5f);

You can check this by creating an empty project and adding a link to ZLib, for this, add the dependency #include "System.ZLib.hpp" to the Unit1.h module. And compile a project for Mac OS X.

markofzaaz
Posts: 7
Joined: Mon 26 Nov 2018 16:50

Re: Cannot Compile Mysqldac for Macos, ever!

Post by markofzaaz » Fri 26 Jul 2019 10:41

Do you know if the issue has been resolved via 10.3.2 just released? Embarcadero servers been down so can't check on anything at all.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: Cannot Compile Mysqldac for Macos, ever!

Post by Stellar » Tue 30 Jul 2019 14:37

The issue that occured when compiling a project with the connected ZLib library has not been resolved in С++ Builder 10.3 Update 2.

markofzaaz
Posts: 7
Joined: Mon 26 Nov 2018 16:50

Re: Cannot Compile Mysqldac for Macos, ever!

Post by markofzaaz » Fri 09 Aug 2019 15:03

What exactly is the ZLib library package then? Does this exist in ios too?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Cannot Compile Mysqldac for Macos, ever!

Post by ViktorV » Tue 13 Aug 2019 09:30

We haven't identified such issue during testing on iOS platform.

Post Reply