[Qt-interest] "cannot find -lqsqlodbc" error while compiling the qt application statically....
Mark Brand
mabrand at mabrand.nl
Mon May 16 12:14:48 CEST 2011
On 05/16/2011 11:36 AM, Muthulingam Ammaiappan wrote:
> Hi Friends,
>
> i am getting the following errors while compiling my application
> statically...
>
> errors:
> 1."cannot find -lqsqlodbc"
> 2.collect2:ld returned 1 exit status
>
> please see the attachments...
>
> i think the meaning of the above error is "-lqsqlodbc" library is not
> finding and include...
Hi,
You didn't mention whether you built static Qt. If not, you need to do
so by passing the "-static" option to configure.
For static Qt, the default is to build the SQL drivers into QtSql, not
as plugins.
Check the output of the configure step to confirm that the configuration
includes ODBC support and that this is "built-in".
regards,
Mark
More information about the Qt-interest-old
mailing list