Ich moechte mit QT direkt auf eine Sybase Datenbank zugreifen. Um das Qtds plugin zu installieren habe ich folgendes versucht;
http://qt.nokia.com/doc/4.0/sql-driver. ... ive-server
cd %QTDIR%\src\plugins\sqldrivers\tds
qmake -o Makefile "LIBS+=NTWDBLIB.LIB" tds.pro
nmake
Aber leider bekomme ich diese fehler;
D:\Qt\2009.03\qt\src\plugins\SQLDRI~1\tds>nmake
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
"d:\program files\Microsoft Visual Studio 9.0\VC\bin\nmake.exe" -f Makef
ile.Debug
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_S
UPPORT -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_DLL -DQT_PLUGIN -DQT_S
QL_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\..\include\QtCore" -I"..\..
\..\..\include\QtSql" -I"..\..\..\..\include" -I"..\..\..\..\include\ActiveQt" -
I"debug" -I"..\..\..\..\mkspecs\win32-g++" -o debug\main.o main.cpp
In file included from main.cpp:50:
../../../sql/drivers/tds/qsql_tds.h:53:22: sqlfront.h: No such file or directory
../../../sql/drivers/tds/qsql_tds.h:54:19: sqldb.h: No such file or directory
In file included from main.cpp:50:
../../../sql/drivers/tds/qsql_tds.h:100: error: expected `)' before '*' token
NMAKE : fatal error U1077: 'd:\Qt\2009.03\mingw\bin\g++.EXE' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"d:\program files\Microsoft Visual Studio 9.0\VC\bin
\nmake.exe"' : return code '0x2'
Stop.
was habe ich faslch gemacht. Ich finde sqldb.h und sqlfront.h niegendwo auf meine PC.
Sybase client ist installeriert (version 12.5). Ich moechte am liebsten die Native libs benutzen um eine besser performance zu haben gegen ueber ODBC.
danke im voraus,