Cannot Compile Mysqldac for Macos, ever!
-
- Posts: 7
- Joined: Mon 26 Nov 2018 16:50
Cannot Compile Mysqldac for Macos, ever!
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
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
Re: Cannot Compile Mysqldac for Macos, ever!
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.
You can leave comments concerning bugs in the topic via the provided link for faster issue solution.
-
- Posts: 7
- Joined: Mon 26 Nov 2018 16:50
Re: Cannot Compile Mysqldac for Macos, ever!
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
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
Re: Cannot Compile Mysqldac for Macos, ever!
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.
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.
-
- Posts: 7
- Joined: Mon 26 Nov 2018 16:50
Re: Cannot Compile Mysqldac for Macos, ever!
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.
Re: Cannot Compile Mysqldac for Macos, ever!
The issue that occured when compiling a project with the connected ZLib library has not been resolved in С++ Builder 10.3 Update 2.
-
- Posts: 7
- Joined: Mon 26 Nov 2018 16:50
Re: Cannot Compile Mysqldac for Macos, ever!
What exactly is the ZLib library package then? Does this exist in ios too?
Re: Cannot Compile Mysqldac for Macos, ever!
We haven't identified such issue during testing on iOS platform.