Cant find mssql component under MAC OS lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- bobix · 2014-09-25 12:11 Is it realy missing ? I am using lazarus 1.2.4 and FPC 2.6.4 Thank you ---------------------------------------------------------------------- BigChimp · 2014-09-25 12:26 Sorry, don't know by heart. Just curious: mssql connection needs the freetds libraries - can those be installed on OSX? ---------------------------------------------------------------------- bobix · 2014-09-26 09:36 I don't know either ---------------------------------------------------------------------- BigChimp · 2014-09-26 09:47 Well, if you use it seems it is available. Looking at the current FPC source code it looks like mssqlconn is not enabled for OSX - we don't have a test machine set up for it. (So it isn't enabled in FPC 2.6.4 either) For current FPC trunk a patch is attached in http://bugs.freepascal.org/view.php?id=26787 untested, no idea if it compiles or works... and the connector would need to be enabled in Lazarus as well.. However, if somebody could run a simple test program based on http://wiki.lazarus.freepascal.org/Database_bug_reporting#FreePascal we would at least know whether it works... ---------------------------------------------------------------------- BigChimp · 2014-09-26 10:30 An alternative could be installing freetds, setting up an odbc connectiong using freetds and using the odbc connection... ---------------------------------------------------------------------- bobix · 2014-10-09 10:37 Quote from: BigChimp on September 26, 2014, 12:30:56 pmAn alternative could be installing freetds, setting up an odbc connectiong using freetds and using the odbc connection... Yes, thanks for replies! It works with freetds. I just needed cross platform compilation of project containing mssql. It wasnt need to "work" actualy ---------------------------------------------------------------------- Mike.Cornflake · 2014-10-09 15:43 Quote from: bobix on October 09, 2014, 12:37:41 pm...I just needed cross platform compilation of project containing mssql. It wasnt need to "work" actualy Now that is interesting :-)  I've never done cross-compiling before.  Am I right in saying that the IDE only shows Components that are valid for that Operating System, not for the Target Operating System? Actually, now I think about it, of course that's the situation.  Target Operating System is defined at the Project Level... Thankfully there aren't that many components that are OS dependent (I can only think of three, all video related...) ---------------------------------------------------------------------- bobix · 2014-10-27 14:59 I found the solution. Component was removed and to create it I use this: uses ... {ifndef darwin} ,mssqlconn {endif} ... below ... {ifndef darwin} mssql: tmssqlconnection; {endif} ... inside source: {ifndef darwin} MSSQL:=tMSSQLConnection.create(self); MSSQL.name:='MSSQL'; {endif}