Page 1 of 1

Ubuntu 16.04

Posted: Tue 16 Aug 2016 12:57
by Len Jones
Hi!

I want to use MyDAC in Lazarus 1.6 (FPC 3.0) on Ubuntu 16.04 LTS working with MySQL 5.7
Is this possible?
If so how do I install it?

thanks :)

Len Jones

Re: Ubuntu 16.04

Posted: Wed 17 Aug 2016 06:57
by AlexP
Hello,

Lazarus packages are included only to MyDAC Edition with source code.
To install the source version of MyDAC to Lazarus, perform the following steps

1) Open and compile all the Lazarus packages in the following order:
dac10.lpk
dacvcl10.lpk
dcldac10.lpk
mydac10.lpk
mydacvcl10.lpk
2) Open, compile and install the dclmydac10.lpk package

Re: Ubuntu 16.04

Posted: Wed 19 Oct 2016 20:24
by jisraelpo
Component installed

IDE working at 100% but in runtime when I immediately try to connect I get this error:

Error on data writing to the connection: Invalid socket

Ubuntu 16.4, Lazarus 1.6, MyDac10

This in all mysql servers (localhost or web), I have installed a fresh ubuntu so again.
Python libraries working without any problem in the same computer.....

Please help me I am in hurry to resolve this....
I need my windows app can compile in ubuntu and IOS.

Re: Ubuntu 16.04

Posted: Fri 21 Oct 2016 09:58
by ViktorV
To resolve the problem, in the project file ( with the *.lpr extension) add the following string:

Code: Select all

{$DEFINE UseCThreads}
before

Code: Select all

{$IFDEF UNIX}{$IFDEF UseCThreads}

Re: Ubuntu 16.04

Posted: Fri 21 Oct 2016 23:05
by jisraelpo
Thanks Viktor, this resolved the problem......

Re: Ubuntu 16.04

Posted: Mon 24 Oct 2016 10:33
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.