QDBC unter lenny64bit bauen....
Verfasst: 30. November 2009 12:58
Hi,
hab gerade versucht das QODBC Plugin zu bauen (lenny 64 bit) die unixODBC und -devel sind installiert.
Also lt. Doku sollte es ja wie folgt funtionieren:
Das qmake meckert folgendes:
Hier das Ergebnis des make:
hab gerade versucht das QODBC Plugin zu bauen (lenny 64 bit) die unixODBC und -devel sind installiert.
Also lt. Doku sollte es ja wie folgt funtionieren:
Hab ich auch so gemacht....aber:It is recommended that you use unixODBC. You can find the latest version and ODBC drivers at http://www.unixodbc.org. You need the unixODBC header files and shared libraries.
Tell qmake where to find the unixODBC header files and shared libraries (here it is assumed that unixODBC is installed in /usr/local/unixODBC) and run make:
cd $QTDIR/src/plugins/sqldrivers/odbc
qmake "INCLUDEPATH+=/usr/local/unixODBC/include" "LIBS+=-L/usr/local/unixODBC/lib -lodbc"
make
Das qmake meckert folgendes:
Das makefile existiert./opt/qtsdk-2009.04/qt/src/plugins/sqldrivers/odbc$ qmake "INCLUDEPATH+=/usr/include" "LIBS+=-L/usr/lib64/odbc -lodbc"
qpluginbase.pri:10: Unknown replace function: qtLibraryTarget
Failure to open file: /opt/qtsdk-2009.04/qt/src/plugins/sqldrivers/odbc/Makefile
Hier das Ergebnis des make:
usr:/opt/qtsdk-2009.04/qt/src/plugins/sqldrivers/odbc# ls -la
total 28
drwxr-xr-x 2 root root 4096 Nov 30 12:51 .
drwxr-xr-x 11 root root 4096 Nov 11 13:01 ..
-rwxrwxrwx 1 root root 4471 Nov 30 12:55 Makefile
-rw-r--r-- 1 root root 199 Sep 29 13:01 README
-rw-r--r-- 1 root root 2791 Sep 29 13:01 main.cpp
-rw-r--r-- 1 root root 422 Sep 29 13:01 odbc.pro
usr:/opt/qtsdk-2009.04/qt/src/plugins/sqldrivers/odbc# make
g++ -c -pipe -g -Wall -W -O2 -D_REENTRANT -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -DQT_TABLET_SUPPORT -I/usr/share/qt3/mkspecs/default -I. -I/usr/include -I/usr/include/qt3 -o main.o main.cpp
In file included from main.cpp:44:
../../../sql/drivers/odbc/qsql_odbc.h:45:30: error: QtSql/qsqldriver.h: No such file or directory
../../../sql/drivers/odbc/qsql_odbc.h:46:30: error: QtSql/qsqlresult.h: No such file or directory
In file included from main.cpp:44:
../../../sql/drivers/odbc/qsql_odbc.h:84: error: 'QT_BEGIN_HEADER' does not name a type
../../../sql/drivers/odbc/qsql_odbc.h:94: error: expected class-name before '{' token
../../../sql/drivers/odbc/qsql_odbc.h:115: error: 'QSqlRecord' does not name a type
../../../sql/drivers/odbc/qsql_odbc.h:120: error: ISO C++ forbids declaration of 'QODBCPrivate' with no type
../../../sql/drivers/odbc/qsql_odbc.h:120: error: expected ';' before '*' token
../../../sql/drivers/odbc/qsql_odbc.h:124: error: invalid use of incomplete type 'struct QSqlDriver'
/usr/include/qt3/qsqldriverplugin.h:52: error: forward declaration of 'struct QSqlDriver'
../../../sql/drivers/odbc/qsql_odbc.h:130: error: 'DriverFeature' has not been declared
../../../sql/drivers/odbc/qsql_odbc.h:132: error: ISO C++ forbids declaration of 'QSqlResult' with no type
../../../sql/drivers/odbc/qsql_odbc.h:132: error: expected ';' before '*' token
../../../sql/drivers/odbc/qsql_odbc.h:133: error: 'QSql' has not been declared
../../../sql/drivers/odbc/qsql_odbc.h:134: error: 'QSqlRecord' does not name a type
../../../sql/drivers/odbc/qsql_odbc.h:135: error: 'QSqlIndex' does not name a type
../../../sql/drivers/odbc/qsql_odbc.h:137: error: expected ',' or '...' before '&' token
../../../sql/drivers/odbc/qsql_odbc.h:138: error: ISO C++ forbids declaration of 'QSqlField' with no type
../../../sql/drivers/odbc/qsql_odbc.h:146: error: 'IdentifierType' has not been declared
../../../sql/drivers/odbc/qsql_odbc.h:160: error: 'QT_END_NAMESPACE' does not name a type
main.cpp:57: error: 'QODBCDriverPlugin' has not been declared
main.cpp:57: error: ISO C++ forbids declaration of 'QODBCDriverPlugin' with no type
main.cpp: In function 'int QODBCDriverPlugin()':
main.cpp:58: error: only constructors take base initializers
main.cpp: At global scope:
main.cpp:62: error: 'QODBCDriverPlugin' is not a class or namespace
main.cpp: In function 'QSqlDriver* create(const QString&)':
main.cpp:64: error: 'QLatin1String' was not declared in this scope
main.cpp:66: error: cannot convert 'QODBCDriver*' to 'QSqlDriver*' in return
main.cpp: At global scope:
main.cpp:71: error: 'QODBCDriverPlugin' is not a class or namespace
main.cpp:71: error: non-member function 'QStringList keys()' cannot have cv-qualifier
main.cpp: In function 'QStringList keys()':
main.cpp:74: error: 'QLatin1String' was not declared in this scope
main.cpp: At global scope:
main.cpp:79: error: expected constructor, destructor, or type conversion before '(' token
make: *** [main.o] Error 1