mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] Problem using qtsql


From: André Ambrósio Boechat
Subject: Re: [Mingw-cross-env-list] Problem using qtsql
Date: Wed, 17 Aug 2011 16:02:39 -0300

  Hi, Mark!
  Everything is working now!
  Thank you very much!

--
André A. Boechat
www.das.ufsc.br/~boechat




On Wed, Aug 17, 2011 at 5:36 AM, Mark Brand <address@hidden> wrote:
Hi André,

Thanks for reporting this.


On 08/16/2011 09:17 PM, André Ambrósio Boechat wrote:
 Hi!
 I'm trying to compile a Qt application that uses the QODBC, but the compiler don't find some gnutls definitions. Using my Debian native environment, all that works fine. I post the compiling results below.

<snip>

i686-pc-mingw32-g++ -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -mthreads -Wl,-subsystem,windows -o release/smartplayer.exe release/main.o release/smart_player_qt.o release/moc_smart_player_qt.o  -L'/home/andre/ProgramasLocais/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib' -lmingw32 -lqtmain -lQtSql -lQtGui -lpq -lsecur32 -lssl -lcrypto -lcrypt32 -lodbc32 -lsybdb -liconv -L/home/andre/ProgramasLocais/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib -lsqlite3 -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -ljpeg -lmng -llcms -ltiff -lmsimg32 -lQtCore -lpng -lole32 -luuid -lws2_32 -ladvapi32 -lshell32 -luser32 -lkernel32 -lz
/home/andre/ProgramasLocais/mingw-cross-env-2.21/usr/i686-pc-mingw32/lib/libsybdb.a(net.o): In function `goodread':
/home/andre/ProgramasLocais/mingw-cross-env-2.21/tmp-freetds/freetds-0.91.dev.20110523RC2/src/tds/net.c:499: undefined reference to `_gnutls_record_recv'
<snip>

QtSql depends on sybdb (freetds) which depends on gnutls. Even though you are using only QODBC, the dependencies of all the sql drivers have to be satisfied. This is because our Qt configuration builds the sql drivers into QtSql rather than as plugins.

Some time ago the freetds configuration was changed to use gnutls instead of openssl, but I neglected to add gnutls to SYBASE_LIBS in qt.mk.

I've fixed this here:
http://hg.savannah.gnu.org/hgweb/mingw-cross-env/rev/fb7112048cbd
Also made the test program depend on QtSql so this type of linking problem will be caught.

Could you let us know if this works for you?

regards,

Mark


reply via email to

[Prev in Thread] Current Thread [Next in Thread]