Cant build Firebird driver



  • Hello,

    i have problem with firebird driver. I use Qt 5.1.1 and firebird2.5-superclassic, Ubuntu 13.10.

    Error code:

    bq. g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++ -I. -I/usr/include -I/opt/Qt/5.1.1/gcc_64/include -I/opt/Qt/5.1.1/gcc_64/include/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtCore -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1/QtCore -I.moc/release-shared -o .obj/release-shared/main.o main.cpp
    g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++ -I. -I/usr/include -I/opt/Qt/5.1.1/gcc_64/include -I/opt/Qt/5.1.1/gcc_64/include/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtCore -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1/QtCore -I.moc/release-shared -o .obj/release-shared/qsql_ibase.o ../../../sql/drivers/ibase/qsql_ibase.cpp
    ../../../sql/drivers/ibase/qsql_ibase.cpp: In member function ‘virtual bool QIBaseResult::gotoNext(QSqlCachedResult::ValueCache&, int)’:
    ../../../sql/drivers/ibase/qsql_ibase.cpp:1155:23: warning: enumeration value ‘LowPrecisionDouble’ not handled in switch [-Wswitch]
    switch(numericalPrecisionPolicy()) {
    ^
    ../../../sql/drivers/ibase/qsql_ibase.cpp: In member function ‘virtual bool QIBaseDriver::hasFeature(QSqlDriver::DriverFeature) const’:
    ../../../sql/drivers/ibase/qsql_ibase.cpp:1419:12: warning: enumeration value ‘CancelQuery’ not handled in switch [-Wswitch]
    switch (f) {
    ^
    /opt/Qt/5.1.1/gcc_64/bin/moc -DQT_NO_LIBUDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++ -I. -I/usr/include -I/opt/Qt/5.1.1/gcc_64/include -I/opt/Qt/5.1.1/gcc_64/include/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtCore -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1/QtCore -I.moc/release-shared ../../../sql/drivers/ibase/qsql_ibase_p.h -o .moc/release-shared/moc_qsql_ibase_p.cpp
    g++ -c -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_LIBUDEV -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../mkspecs/linux-g++ -I. -I/usr/include -I/opt/Qt/5.1.1/gcc_64/include -I/opt/Qt/5.1.1/gcc_64/include/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtSql/5.1.1/QtSql -I/opt/Qt/5.1.1/gcc_64/include/QtCore -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1 -I/opt/Qt/5.1.1/gcc_64/include/QtCore/5.1.1/QtCore -I.moc/release-shared -o .obj/release-shared/moc_qsql_ibase_p.o .moc/release-shared/moc_qsql_ibase_p.cpp
    rm -f libqsqlibase.so
    g++ -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/opt/Qt/5.1.1/gcc_64 -Wl,-rpath,/opt/Qt/5.1.1/gcc_64 -Wl,-rpath,/opt/Qt/5.1.1/gcc_64/lib -shared -o libqsqlibase.so .obj/release-shared/main.o .obj/release-shared/qsql_ibase.o .obj/release-shared/moc_qsql_ibase_p.o -L/usr/lib -lfbclient -L/opt/Qt/5.1.1/gcc_64/lib -lQt5Sql -lQt5Core -lpthread
    .obj/release-shared/main.o: In function QIBaseDriverPlugin::QIBaseDriverPlugin()': main.cpp:(.text+0x4e): undefined reference tovtable for QIBaseDriverPlugin'
    collect2: error: ld returned 1 exit status
    make: *** [../../../../plugins/sqldrivers/libqsqlibase.so] Błąd 1

    I made symlinks libfbclient.so.2->libfbclient.so and libfbclient.so->libgds.so in /usr/lib but it doesnt help



  • i have this problem two
    but in sql this say "QIBASE is not supported'

    you have tried:
    "https://code.google.com/p/qtfirebirdibppsqldriver/":https://code.google.com/p/qtfirebirdibppsqldriver/
    ?

    "Here a little more of what i tried":https://qt-project.org/forums/viewthread/35608/


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.