Database Desktop on Mac not compiling lazarus / 9-Editor ---------------------------------------------------------------------- eenplus · 2021-04-11 11:23 Hallo, I'm new to Lazarus. When compiling the Database Desktop on Mac I always get confronted with the error 'frmmain.pp(333,3) Fatal: Cannot find fpddmssql used by frmmain of the Project Inspector.'. Sounds logic, as MSSql is not supported under Mac. But is there a work around for this ? Tia. /Dirk ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-11 11:30 Hey Dirk, Quote from: eenplus on April 11, 2021, 01:23:36 pmHallo, I'm new to Lazarus. When compiling the Database Desktop on Mac I always get confronted with the error 'frmmain.pp(333,3) Fatal: Cannot find fpddmssql used by frmmain of the Project Inspector.'. Sounds logic, as MSSql is not supported under Mac. But is there a work around for this ? Sounds logic, but I'm afraid has nothing to do with macOS's support or not of MSSQL. What that indicates is that the compiler doesn't know where to find the source code file that contains the unit fpddmssql. Either the file is missing, or if it exists it's not in any of the folders provided to the compiler to search for code. If you point us to where is this Database Desktop source code exists, maybe we can provide more help? Cheers, Gus ---------------------------------------------------------------------- wp · 2021-04-11 11:43 I can confirm the issue on a VM with macOS. The error appears in unit reglddfeatures of the LazDataDesktop project (it is in the tools folder of the Lazarus installation, Gus). The guilty unit is surrounded by an {$IFDEF HAVEMYSQL5657CONN} directive. So, go to the head of this unit, find the {$DEFINE HAVEMYSQL5657CONN} and undefine it by putting a space or a dot between the { and the $. There's another define, {$DEFINE HAVEMSSQLCONN} which must be handled in the same way. After these modifications, the LazDataDesktop compiles correctly. ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-11 12:03 Hey WP, Quote from: wp on April 11, 2021, 01:43:43 pmsnip (it is in the tools folder of the Lazarus installation, Gus) snip Thanks a lot WP, I'll have a look at it. Cheers, Gus ---------------------------------------------------------------------- eenplus · 2021-04-11 14:33 To Gus and WP. Thank you very much. Your suggesties did it. Regards, /Dirk ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-11 14:44 Hey Dirk, Quote from: eenplus on April 11, 2021, 04:33:04 pmTo Gus and WP. Thank you very much. Your suggesties did it. Can't really accept your thanks, I did absolutely nothing. It was WP that did all the leg work, so I relinquish my share of the thanks to him Cheers, Gus ---------------------------------------------------------------------- eenplus · 2021-04-11 15:12 Hmmm .. my hapiness was interupted by : 'Can not load default Firebird clients ("libfbclient.dylib" or "libgds.dylib" or "libfbembed.dylib"). Check your installation.' I'm running Firebird 3.x Is there a way to add the path to the Lazarus DBDesktop ? Regards, /Dirk ---------------------------------------------------------------------- Gustavo 'Gus' Carreno · 2021-04-11 15:20 Hey Dirk, Quote from: eenplus on April 11, 2021, 05:12:24 pmHmmm .. my hapiness was interupted by : 'Can not load default Firebird clients ("libfbclient.dylib" or "libgds.dylib" or "libfbembed.dylib"). Check your installation.' I'm by no means a macOS expert, WAY far from that, but I've been reading here, on the forum, about Big Sur having a new way to access dynamic libraries and this could be related to that. I'll let the more macOS inclined folk, give you a better explanation and a possible solution. Cheers, Gus ---------------------------------------------------------------------- wp · 2021-04-11 15:58 I am not a macOS expert either, but if you don't need Firebird in your evaluation you can load that "reglddfeatures" unit again, scroll to the top of the interface uses section and comment the unit "fpddfb  // Firebird". Then go to the implementation of procedure "RegisterEngines" and comment the line "RegisterFBDDEngine". Recompile the application and it should no longer try to access the firebird libs. ---------------------------------------------------------------------- eenplus · 2021-04-11 18:03 Quote from: wp on April 11, 2021, 05:58:12 pmI am not a macOS expert either, but if you don't need Firebird in your evaluation you can load that "reglddfeatures" unit again, scroll to the top of the interface uses section and comment the unit "fpddfb  // Firebird". Then go to the implementation of procedure "RegisterEngines" and comment the line "RegisterFBDDEngine". Recompile the application and it should no longer try to access the firebird libs. Thanks for pointing this out, but in my case it's Firebird I need and I'm using. I'll try to find out how to point the Firebird connection to the forementioned driver. ---------------------------------------------------------------------- trev · 2021-04-12 00:53 See this thread. It's always a good idea to first search the forum before posting as many issues have already come up and usually been solved.