Quantcast
Channel: Qt DevNet forums: Installation and Deployment
Viewing all articles
Browse latest Browse all 2113

[SOLVED] Why no libqsqlodbc.so?

$
0
0
Hi, I’m writing a Qt app that connects to an MS SQLServer 2005. Currently I only really need the app to work in Windows (which works fine) but because I have this fancy blog where I document how to do Qt stuff for both Windows, Mac and Linux, I decided to try having a chat with the SQLServer from OSX or from Linux. I mean, how hard could it be? Well two (2) nights and many cups of coffee later I got it working for OSX. Instead of that oneliner in Windows (.setDatabaseName(…) you have to build a libtdsodbc.0.so and write two files, odbc.ini and .freetds.conf. But now I can talk to the SQLServer from my Mac, yippee :-) Then I tried Linux (Ubuntu 13.10) (it couldn’t be worse than OSX I thought) when I discovered a showstopper: there’s no DLL included for ODBC in Qt 5.2.1 for Linux :-( I.e. I can’t find the file libqsqlodbc.so in plugins/sqldrivers. Anyone knows why? Is it because SQLServer is not so popular in Linux or?

Viewing all articles
Browse latest Browse all 2113

Trending Articles